View Source
Class ContentTypeService
Represents the ContentType Service, which is an easy access to operations involving IContentType
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ContentTypeService : ContentTypeServiceBase<IContentTypeRepository, IContentType>, IContentTypeService, IContentTypeBaseService<IContentType>, IContentTypeBaseService, IService
Constructors
View Source
ContentTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IContentService, IContentTypeRepository, IAuditRepository, IDocumentTypeContainerRepository, IEntityRepository, IEventAggregator)
Declaration
public ContentTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IContentService contentService, IContentTypeRepository repository, IAuditRepository auditRepository, IDocumentTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator)
Parameters
Properties
View Source
ContainedObjectType
Declaration
protected override Guid ContainedObjectType { get; }
Property Value
View Source
ReadLockIds
Declaration
protected override int[] ReadLockIds { get; }
Property Value
| Type |
Description |
| System.Int32[] |
|
View Source
WriteLockIds
Declaration
protected override int[] WriteLockIds { get; }
Property Value
| Type |
Description |
| System.Int32[] |
|
Methods
View Source
DeleteItemsOfTypes(IEnumerable<Int32>)
Declaration
protected override void DeleteItemsOfTypes(IEnumerable<int> typeIds)
Parameters
| Type |
Name |
Description |
| IEnumerable<System.Int32> |
typeIds |
|
View Source
GetAllContentTypeAliases(Guid[])
Gets all content type aliases across content, media and member types.
Declaration
public IEnumerable<string> GetAllContentTypeAliases(params Guid[] guids)
Parameters
| Type |
Name |
Description |
| Guid[] |
guids |
Optional object types guid to restrict to content, and/or media, and/or member types.
|
Returns
| Type |
Description |
| IEnumerable<System.String> |
All content type aliases.
|
View Source
GetAllContentTypeIds(String[])
Gets all content type id for aliases across content, media and member types.
Declaration
public IEnumerable<int> GetAllContentTypeIds(string[] aliases)
Parameters
| Type |
Name |
Description |
| System.String[] |
aliases |
Aliases to look for.
|
Returns
| Type |
Description |
| IEnumerable<System.Int32> |
All content type ids.
|
View Source
GetAllPropertyTypeAliases()
Gets all property type aliases across content, media and member types.
Declaration
public IEnumerable<string> GetAllPropertyTypeAliases()
Returns
| Type |
Description |
| IEnumerable<System.String> |
All property type aliases.
|
View Source
GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IContentType>>, EventMessages)
Declaration
protected override ContentTypeChangeNotification<IContentType> GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IContentType>> changes, EventMessages eventMessages)
Parameters
Returns
View Source
GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IContentType>>, EventMessages)
Declaration
protected override ContentTypeRefreshNotification<IContentType> GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IContentType>> changes, EventMessages eventMessages)
Parameters
Returns
View Source
GetDeletedNotification(IEnumerable<IContentType>, EventMessages)
Declaration
protected override DeletedNotification<IContentType> GetDeletedNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
Parameters
Returns
View Source
GetDeletingNotification(IEnumerable<IContentType>, EventMessages)
Declaration
protected override DeletingNotification<IContentType> GetDeletingNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
Parameters
Returns
View Source
GetDeletingNotification(IContentType, EventMessages)
Declaration
protected override DeletingNotification<IContentType> GetDeletingNotification(IContentType item, EventMessages eventMessages)
Parameters
Returns
View Source
GetMovedNotification(IEnumerable<MoveEventInfo<IContentType>>, EventMessages)
Declaration
protected override MovedNotification<IContentType> GetMovedNotification(IEnumerable<MoveEventInfo<IContentType>> moveInfo, EventMessages eventMessages)
Parameters
Returns
View Source
GetMovingNotification(MoveEventInfo<IContentType>, EventMessages)
Declaration
protected override MovingNotification<IContentType> GetMovingNotification(MoveEventInfo<IContentType> moveInfo, EventMessages eventMessages)
Parameters
Returns
View Source
GetSavedNotification(IEnumerable<IContentType>, EventMessages)
Declaration
protected override SavedNotification<IContentType> GetSavedNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
Parameters
Returns
View Source
GetSavedNotification(IContentType, EventMessages)
Declaration
protected override SavedNotification<IContentType> GetSavedNotification(IContentType item, EventMessages eventMessages)
Parameters
Returns
View Source
GetSavingNotification(IEnumerable<IContentType>, EventMessages)
Declaration
protected override SavingNotification<IContentType> GetSavingNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
Parameters
Returns
View Source
GetSavingNotification(IContentType, EventMessages)
Declaration
protected override SavingNotification<IContentType> GetSavingNotification(IContentType item, EventMessages eventMessages)
Parameters
Returns