Merge pull request #1038 from umbraco/temp-U4-7768

U4-7768 - Fixes validation issue with new CTs and invalid server side…
This commit is contained in:
Shannon Deminick
2016-01-20 18:08:58 +01:00
23 changed files with 210 additions and 46 deletions

View File

@@ -266,6 +266,22 @@ namespace Umbraco.Core.Services
}
}
/// <summary>
/// Gets all content type aliases
/// </summary>
/// <param name="objectTypes">
/// If this list is empty, it will return all content type aliases for media, members and content, otherwise
/// it will only return content type aliases for the object types specified
/// </param>
/// <returns></returns>
public IEnumerable<string> GetAllContentTypeAliases(params Guid[] objectTypes)
{
using (var repository = RepositoryFactory.CreateContentTypeRepository(UowProvider.GetUnitOfWork()))
{
return repository.GetAllContentTypeAliases(objectTypes);
}
}
/// <summary>
/// Copies a content type as a child under the specified parent if specified (otherwise to the root)
/// </summary>

View File

@@ -44,6 +44,16 @@ namespace Umbraco.Core.Services
/// <returns></returns>
IEnumerable<string> GetAllPropertyTypeAliases();
/// <summary>
/// Gets all content type aliases
/// </summary>
/// <param name="objectTypes">
/// If this list is empty, it will return all content type aliases for media, members and content, otherwise
/// it will only return content type aliases for the object types specified
/// </param>
/// <returns></returns>
IEnumerable<string> GetAllContentTypeAliases(params Guid[] objectTypes);
/// <summary>
/// Copies a content type as a child under the specified parent if specified (otherwise to the root)
/// </summary>