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