IContentStore Interface Ingeniux CMS Content Store API

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: 9.0.565.0 (9.0.565)
Syntax

public interface IContentStore : IDisposable, 
	IContentStoreEvents, IEntityEvents, IPublishingTargetEvents, IPublishingTaskEvents, IPageEvents, 
	ISiteEvents, 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 propertyXmlDirectoryPath
Gets the XML directory path of the ContentStore.
Top
Methods

  NameDescription
Public methodGetAttachment
Retrieves a binary attachment from the ContentStore.
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 methodPutAttachment
Saves an attachment to the ContentStore.
Public methodRemoveAttachment
Removes an attachment from the ContentStore.
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 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 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 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 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 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 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 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 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 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 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 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 occurrs 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