Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeService

    Represents the ContentType Service, which is an easy access to operations involving IContentType

    Inheritance
    System.Object
    RepositoryService
    ContentTypeServiceBase
    ContentTypeServiceBase<IContentTypeRepository, IContentType>
    Namespace: Umbraco.Cms.Core.Services
    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
    Type Name Description
    ICoreScopeProvider provider
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    IContentService contentService
    IContentTypeRepository repository
    IAuditRepository auditRepository
    IDocumentTypeContainerRepository entityContainerRepository
    IEntityRepository entityRepository
    IEventAggregator eventAggregator
    View Source

    ContentTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IContentService, IContentTypeRepository, IAuditRepository, IDocumentTypeContainerRepository, IEntityRepository, IEventAggregator, IUserIdKeyResolver)

    Declaration
    public ContentTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IContentService contentService, IContentTypeRepository repository, IAuditRepository auditRepository, IDocumentTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator, IUserIdKeyResolver userIdKeyResolver)
    Parameters
    Type Name Description
    ICoreScopeProvider provider
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    IContentService contentService
    IContentTypeRepository repository
    IAuditRepository auditRepository
    IDocumentTypeContainerRepository entityContainerRepository
    IEntityRepository entityRepository
    IEventAggregator eventAggregator
    IUserIdKeyResolver userIdKeyResolver

    Properties

    View Source

    ContainedObjectType

    Declaration
    protected override Guid ContainedObjectType { get; }
    Property Value
    Type Description
    Guid
    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.

    Remarks

    Beware! Works across content, media and member types.

    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.

    Remarks

    Beware! Works across content, media and member types.

    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.

    Remarks

    Beware! Works across content, media and member types.

    View Source

    GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IContentType>>, EventMessages)

    Declaration
    protected override ContentTypeChangeNotification<IContentType> GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IContentType>> changes, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<ContentTypeChange<IContentType>> changes
    EventMessages eventMessages
    Returns
    Type Description
    ContentTypeChangeNotification<IContentType>
    View Source

    GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IContentType>>, EventMessages)

    Declaration
    protected override ContentTypeRefreshNotification<IContentType> GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IContentType>> changes, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<ContentTypeChange<IContentType>> changes
    EventMessages eventMessages
    Returns
    Type Description
    ContentTypeRefreshNotification<IContentType>
    View Source

    GetDeletedNotification(IEnumerable<IContentType>, EventMessages)

    Declaration
    protected override DeletedNotification<IContentType> GetDeletedNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<IContentType> items
    EventMessages eventMessages
    Returns
    Type Description
    DeletedNotification<IContentType>
    View Source

    GetDeletingNotification(IEnumerable<IContentType>, EventMessages)

    Declaration
    protected override DeletingNotification<IContentType> GetDeletingNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<IContentType> items
    EventMessages eventMessages
    Returns
    Type Description
    DeletingNotification<IContentType>
    View Source

    GetDeletingNotification(IContentType, EventMessages)

    Declaration
    protected override DeletingNotification<IContentType> GetDeletingNotification(IContentType item, EventMessages eventMessages)
    Parameters
    Type Name Description
    IContentType item
    EventMessages eventMessages
    Returns
    Type Description
    DeletingNotification<IContentType>
    View Source

    GetMovedNotification(IEnumerable<MoveEventInfo<IContentType>>, EventMessages)

    Declaration
    protected override MovedNotification<IContentType> GetMovedNotification(IEnumerable<MoveEventInfo<IContentType>> moveInfo, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<MoveEventInfo<IContentType>> moveInfo
    EventMessages eventMessages
    Returns
    Type Description
    MovedNotification<IContentType>
    View Source

    GetMovingNotification(MoveEventInfo<IContentType>, EventMessages)

    Declaration
    protected override MovingNotification<IContentType> GetMovingNotification(MoveEventInfo<IContentType> moveInfo, EventMessages eventMessages)
    Parameters
    Type Name Description
    MoveEventInfo<IContentType> moveInfo
    EventMessages eventMessages
    Returns
    Type Description
    MovingNotification<IContentType>
    View Source

    GetSavedNotification(IEnumerable<IContentType>, EventMessages)

    Declaration
    protected override SavedNotification<IContentType> GetSavedNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<IContentType> items
    EventMessages eventMessages
    Returns
    Type Description
    SavedNotification<IContentType>
    View Source

    GetSavedNotification(IContentType, EventMessages)

    Declaration
    protected override SavedNotification<IContentType> GetSavedNotification(IContentType item, EventMessages eventMessages)
    Parameters
    Type Name Description
    IContentType item
    EventMessages eventMessages
    Returns
    Type Description
    SavedNotification<IContentType>
    View Source

    GetSavingNotification(IEnumerable<IContentType>, EventMessages)

    Declaration
    protected override SavingNotification<IContentType> GetSavingNotification(IEnumerable<IContentType> items, EventMessages eventMessages)
    Parameters
    Type Name Description
    IEnumerable<IContentType> items
    EventMessages eventMessages
    Returns
    Type Description
    SavingNotification<IContentType>
    View Source

    GetSavingNotification(IContentType, EventMessages)

    Declaration
    protected override SavingNotification<IContentType> GetSavingNotification(IContentType item, EventMessages eventMessages)
    Parameters
    Type Name Description
    IContentType item
    EventMessages eventMessages
    Returns
    Type Description
    SavingNotification<IContentType>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IContentService, IContentTypeRepository, IAuditRepository, IDocumentTypeContainerRepository, IEntityRepository, IEventAggregator)
      • ContentTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IContentService, IContentTypeRepository, IAuditRepository, IDocumentTypeContainerRepository, IEntityRepository, IEventAggregator, IUserIdKeyResolver)
    • Properties
      • ContainedObjectType
      • ReadLockIds
      • WriteLockIds
    • Methods
      • DeleteItemsOfTypes(IEnumerable<Int32>)
      • GetAllContentTypeAliases(Guid[])
      • GetAllContentTypeIds(String[])
      • GetAllPropertyTypeAliases()
      • GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IContentType>>, EventMessages)
      • GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IContentType>>, EventMessages)
      • GetDeletedNotification(IEnumerable<IContentType>, EventMessages)
      • GetDeletingNotification(IEnumerable<IContentType>, EventMessages)
      • GetDeletingNotification(IContentType, EventMessages)
      • GetMovedNotification(IEnumerable<MoveEventInfo<IContentType>>, EventMessages)
      • GetMovingNotification(MoveEventInfo<IContentType>, EventMessages)
      • GetSavedNotification(IEnumerable<IContentType>, EventMessages)
      • GetSavedNotification(IContentType, EventMessages)
      • GetSavingNotification(IEnumerable<IContentType>, EventMessages)
      • GetSavingNotification(IContentType, EventMessages)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX