Click or drag to resize

IContentStore Interface


Represents the object that hosts the content of a CMS instance. There should be only one instance of this object created per App Domain. For a CMS Site, this object is always stored as an application variable that persists throughout the CMS application's lifecycle. Any integration work at the CSAPI level should only use one ContentStore instance per App Domain.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
public interface IContentStore : IDisposable, 
	IContentStoreEvents, IEntityEvents, IPublishingTargetEvents, IPublishingTaskEvents, IPageEvents, 
	IAssetEvents, ISiteEvents, IAssetManagerEvents, ITaxonomyEvents, IUserEvents, 
	IUserGroupEvents, IWorkflowTransitionEvents, ICategoryEvents

The IContentStore type exposes the following members.

Properties
 NameDescription
Public propertyArchiver 
Public propertyAuditTrail Gets the AuditTrail object.
Public propertyLogger Gets the logger of CSAPI. With this object, integraters can directly write to the CMS design-time log.
Public propertyServerGuid Gets the unique IDs of the web application instance.
Public propertyUniqueId Gets the globally unique id of the content store
Public propertyXmlDirectoryPath Gets the XML directory path of the ContentStore.
Top
Methods
 NameDescription
Public methodGetStartingUser Gets a starting User object to open a session.
Public methodIsStale Returns whether a given index is stale.
Public methodLastIndexTimestamp Returns the last time a given index was indexed.
Public methodCode exampleOpenReadSession Opens a read-only session. This session doesn't track changes to objects that were retrieved within this session, nor does it track created or deleted objects. It is not in charge of saving changes, only for reading.
Public methodCode exampleOpenWriteSession Opens a read/write session. This session automatically tracks changes made to any objects that were retrieved within this session. It also tracks the newly created and to-be-deleted objects. All saves occur when the session is disposed. If any exceptions occurred before the session is closed, no changes are applied. This system makes it easy to perform transactional changes and prevents any partial changes due to errors before the session is disposed.
Public methodStartIndexing Starts indexing on the document store.
Public methodStopIndexing Stops indexing on the document store once the current indexing batch is finished.
Top
Events
 NameDescription
Public eventAfterAssetAssign This event is fired after page is assigned.
(Inherited from IAssetEvents)
Public eventAfterAssetCheckIn This event is fired after a page is checked in.
(Inherited from IAssetEvents)
Public eventAfterAssetCheckOut This event is fired after a page is checked out.
(Inherited from IAssetEvents)
Public eventAfterAssetCopy This event is fired after an Asset is copied.
(Inherited from IAssetManagerEvents)
Public eventAfterAssetCrossLocaleCopy This event is fired after an Asset is copied from one Region Root to another.
(Inherited from IAssetManagerEvents)
Public eventAfterAssetDelete This event is fired after an Asset is removed.
(Inherited from IAssetManagerEvents)
Public eventAfterAssetMarkForPublishChange This event is fired after a page had marked-for-publish changes applied to it.
(Inherited from IAssetEvents)
Public eventAfterAssetMove This event is fired after an Asset is moved.
(Inherited from IAssetManagerEvents)
Public eventAfterAssetRegionRootCopy This event is fired after a Region Root is copied.
(Inherited from IAssetManagerEvents)
Public eventAfterAssetRemoveFromWorkflow This event is fired after an asset is removed from a workflow
(Inherited from IAssetEvents)
Public eventAfterAssetRollback This event is fired after a page is rolled back.
(Inherited from IAssetEvents)
Public eventAfterAssetUndoCheckOut This event is fired after a page undo check-out.
(Inherited from IAssetEvents)
Public eventAfterCategoryDelete This event is fired after a Category Node is deleted.
(Inherited from ITaxonomyEvents)
Public eventAfterCrossLocaleCopy This event is fired after a Page is copied across Region Roots.
(Inherited from ISiteEvents)
Public eventAfterEmptyAssetRecycleFolder This event is fired before the asset recycle folder is emptied.
(Inherited from IAssetManagerEvents)
Public eventAfterEmptyRecycleFolder This event is fired after Recycle Folder is emptied.
(Inherited from ISiteEvents)
Public eventAfterEntitySave This event is fired after a Entity object is saved.
(Inherited from IEntityEvents)
Public eventAfterPageAssign This event is fired after page is assigned.
(Inherited from IPageEvents)
Public eventAfterPageCheckIn This event is fired after a page is checked in.
(Inherited from IPageEvents)
Public eventAfterPageCheckOut This event is fired after a page is checked out.
(Inherited from IPageEvents)
Public eventAfterPageCopy This event is fired after a Page is copied.
(Inherited from ISiteEvents)
Public eventAfterPageDelete This event is fired after a Page is removed.
(Inherited from ISiteEvents)
Public eventAfterPageMarkForPublishChange This event is fired after a page had marked-for-publish changes applied to it.
(Inherited from IPageEvents)
Public eventAfterPageMove This event is fired after a Page is moved.
(Inherited from ISiteEvents)
Public eventAfterPageRemoveFromWorkflow This event is fired after a page is removed from a workflow
(Inherited from IPageEvents)
Public eventAfterPageRollback This event is fired after a page is rolled back.
(Inherited from IPageEvents)
Public eventAfterPageUndoCheckOut This event is fired after a page undo check-out.
(Inherited from IPageEvents)
Public eventAfterPublishingTargetMarkForPublishChange This event is fired after any Publishing Target is marked for publish, unmarked for publish, or has its marking version changed.
(Inherited from IPublishingTargetEvents)
Public eventAfterRegionRootCopy This event is fired after a Region Root is copied.
(Inherited from ISiteEvents)
Public eventAfterTaxonomyMove This event is fired after a Category Node is moved.
(Inherited from ITaxonomyEvents)
Public eventAfterUserDelete This event is fired after a User is deleted.
(Inherited from IUserEvents)
Public eventAfterUserGroupDelete This event is fired after a Group is deleted.
(Inherited from IUserGroupEvents)
Public eventAfterWorkflowAdvance Called after all actions are executed and Transition has occured. Not called on a Bridge action.
(Inherited from IWorkflowTransitionEvents)
Public eventAfterWorkflowAdvanceAsset Called after all actions are executed and Transition has occured. Not called on a Bridge action.
(Inherited from IWorkflowTransitionEvents)
Public eventAssetCategorizationChanged This event is fired when a Asset associated, or unassociated with a Category Node.
(Inherited from IAssetEvents)
Public eventAssetCheckedInContentUpdated This event is fired when a Asset was checked with actual text/binary content change
(Inherited from IAssetEvents)
Public eventAssetCreated This event is fired when a new Asset is created.
(Inherited from IAssetManagerEvents)
Public eventAssetFileUpdated This method is invoked after an edit to an Asset File is saved.
(Inherited from IAssetManagerEvents)
Public eventAssetPublishStepUpdated This event is fired when a Publishing Task finishes publishing one Page.
(Inherited from IPublishingTaskEvents)
Public eventAssetRenamed This event is fired after a page is renamed.
(Inherited from IAssetEvents)
Public eventBeforeAssetAssign This event is fired before page is assigned.
(Inherited from IAssetEvents)
Public eventBeforeAssetCheckIn This event is fired before a page is checked in.
(Inherited from IAssetEvents)
Public eventBeforeAssetCheckOut This event is fired before a page is checked out.
(Inherited from IAssetEvents)
Public eventBeforeAssetCopy This event is fired before an Asset to be copied.
(Inherited from IAssetManagerEvents)
Public eventBeforeAssetCrossLocaleCopy This event is fired before an Asset is copied from one Region Root to another.
(Inherited from IAssetManagerEvents)
Public eventBeforeAssetDelete This event is fired before an Asset is moved to Recycle Folder.
(Inherited from IAssetManagerEvents)
Public eventBeforeAssetMarkForPublishChange This event is fired before a page has any changes marked for publish.
(Inherited from IAssetEvents)
Public eventBeforeAssetMove This event is fired before an Asset is moved.
(Inherited from IAssetManagerEvents)
Public eventBeforeAssetRegionRootCopy This event is fired before a Region Root is copied.
(Inherited from IAssetManagerEvents)
Public eventBeforeAssetRemoveFromWorkflow This event is fired before an asset is removed from a workflow
(Inherited from IAssetEvents)
Public eventBeforeAssetRollback This event is fired before a page is rolled back to previous version.
(Inherited from IAssetEvents)
Public eventBeforeAssetUndoCheckOut This event is fired before a page undo check-out.
(Inherited from IAssetEvents)
Public eventBeforeCategoryDelete This event is fired before a Category Node is deleted.
(Inherited from ITaxonomyEvents)
Public eventBeforeCrossLocaleCopy This event is fired before a Page is copied across Region Roots.
(Inherited from ISiteEvents)
Public eventBeforeEmptyAssetRecycleFolder This event is fired before the asset recycle folder is emptied.
(Inherited from IAssetManagerEvents)
Public eventBeforeEmptyRecycleFolder This event is fired before emptying the Recycle Folder.
(Inherited from ISiteEvents)
Public eventBeforeEntitySave This event is fired before any Entity object is about to be saved.
(Inherited from IEntityEvents)
Public eventBeforePageAssign This event is fired before page is assigned.
(Inherited from IPageEvents)
Public eventBeforePageCheckIn This event is fired before a page is checked in.
(Inherited from IPageEvents)
Public eventBeforePageCheckOut This event is fired before a page is checked out.
(Inherited from IPageEvents)
Public eventBeforePageCopy This event is fired before a Page to be copied.
(Inherited from ISiteEvents)
Public eventBeforePageDelete This event is fired before a Page is moved to Recycle Folder.
(Inherited from ISiteEvents)
Public eventBeforePageMarkForPublishChange This event is fired before a page has any changes marked for publish.
(Inherited from IPageEvents)
Public eventBeforePageMove This event is fired before a Page is moved.
(Inherited from ISiteEvents)
Public eventBeforePageRemoveFromWorkflow This event is fired before a page is removed from a workflow
(Inherited from IPageEvents)
Public eventBeforePageRollback This event is fired before a page is rolled back to previous version.
(Inherited from IPageEvents)
Public eventBeforePageUndoCheckOut This event is fired before a page undo check-out.
(Inherited from IPageEvents)
Public eventBeforePublish This event is fired before a Publishing Task is submitted.
(Inherited from IPublishingTargetEvents)
Public eventBeforePublishingTargetMarkForPublishChange This event is fired before any Publishing Target is marked for publish, unmarked for publish, or has its marking version changed.
(Inherited from IPublishingTargetEvents)
Public eventBeforeRegionRootCopy This event is fired before a Region Root is copied.
(Inherited from ISiteEvents)
Public eventBeforeTaxonomyMove This event is fired before a Category Node is moved.
(Inherited from ITaxonomyEvents)
Public eventBeforeUserDelete This event is fired before a User is deleted.
(Inherited from IUserEvents)
Public eventBeforeUserGroupDelete This event is fired before a Group is deleted.
(Inherited from IUserGroupEvents)
Public eventBeforeWorkflowAdvance Called before a Transition occurs.
(Inherited from IWorkflowTransitionEvents)
Public eventBeforeWorkflowAdvanceAsset Called before a Transition occurs.
(Inherited from IWorkflowTransitionEvents)
Public eventBeginPublish This event is fired when a publish starts.
(Inherited from IPublishingTaskEvents)
Public eventCategoryCreated This event is fired when a Category Node is created.
(Inherited from ITaxonomyEvents)
Public eventCategoryRenamed This event is fired when a category is renamed.
(Inherited from ICategoryEvents)
Public eventPageCategorizationChanged This event is fired when a Page associated, or unassociated with a Category Node.
(Inherited from IPageEvents)
Public eventPageCreated This event is fired when a new Page is created.
(Inherited from ISiteEvents)
Public eventPageRenamed This event is fired after a page is renamed.
(Inherited from IPageEvents)
Public eventPostProcessContentStepUpdated This event is fired when a Publishing Content Processor processed one dependency entry
(Inherited from IPublishingTaskEvents)
Public eventPublishComplete This event is fired when a Publishing Task finishes executing.
(Inherited from IPublishingTaskEvents)
Public eventPublished This event is fired after a Publishing Task is completed.
(Inherited from IPublishingTargetEvents)
Public eventPublishingErrorOccurred This event is fired when any error occurs during Publishing Task execution.
(Inherited from IPublishingTaskEvents)
Public eventPublishStepAdvanced This event is fired when Publishing Task advances to next step (e.g., when a publish task finishes copying images).
(Inherited from IPublishingTaskEvents)
Public eventPublishStepUpdated This event is fired when a Publishing Task finishes publishing one Page.
(Inherited from IPublishingTaskEvents)
Public eventUserCreated This event is fired when a User is created.
(Inherited from IUserEvents)
Public eventUserGroupCreated This event is fired when a Group is created.
(Inherited from IUserGroupEvents)
Top
Remarks
Please refers to Get Started for details of how to retrieve a ContentStore instance from ASP.NET application variables.
See Also

Reference

Ingeniux.CMS Namespace

Other Resources

Get Started