Links

ContentTypeService Notifications

The ContentTypeService class implements IContentTypeService. It provides access to operations involving IContentType
Notification
Members
Description
ContentTypeSavingNotification
  • IEnumerable<IContentType> SavedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
  • bool Cancel
Published when ContentTypeService.Save is called in the API. SavedEntities: Gets the collection of IContentType objects being saved.
ContentTypeSavedNotification
  • IEnumerable<IContentType> SavedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
Published when ContentTypeService.Save is called in the API, after the entities has been saved. NOTE: See here on how to determine if the entity is brand new SavedEntities: Gets the collection of saved IContentType objects.
ContentTypeDeletingNotification
  • IEnumerable<IContentType> DeletedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
  • bool Cancel
Published when ContentTypeService.Delete is called in the API. DeletedEntities: Gets the collection of IContentType objects being deleted.
ContentTypeDeletedNotification
  • IEnumerable<IContentType> DeletedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
Published when ContentTypeService.Delete is called in the API, after the entities has been deleted. DeletedEntities: Gets the collection of deleted IContentType objects.
ContentTypeMovingNotification
  • IEnumerable<MoveEventInfo<IContentType>> MoveInfoCollection
  • EventMessages Messages
  • IDictionary<string,object> State
  • bool Cancel
Published when ContentTypeService.Move is called in the API MoveInfoCollection will for each moving entity provide:
  1. 1.
    Entity: Gets the IContentType object being moved
  2. 2.
    OriginalPath: The original path the entity is moved from
  3. 3.
    NewParentId: Gets the Id of the parent the entity will have after it has been moved
ContentTypeMovedNotification
  • IEnumerable<MoveEventInfo<IContentType>> MoveInfoCollection
  • EventMessages Messages
  • IDictionary<string,object> State
Published when ContentTypeService.Move is called in the API, after the entities has been moved. MoveInfoCollection will for each moving entity provide:
  1. 1.
    Entity: Gets the IContentType object being moved
  2. 2.
    OriginalPath: The original path the entity is moved from
  3. 3.
    NewParentId: Gets the Id of the parent the entity will have after it has been moved
ContentTypeChangedNotification
  • IEnumerable<ContentTypeChange<IContentType>> Changes
  • EventMessages Messages
  • IDictionary<string,object> State
Published when a ContentType is saved or deleted, after the transaction has completed. This is mainly used for caching purposes, and generally not recommended, use Saved and Deleted notifications instead. Changes will for each item affected by the change prove:
  1. 1.
    Item: The IContentType affected by the change.
  2. 2.
    ChangeTypes: The type of change: Create, Remove, RefreshMain, etc.