IReferencesManager Interface |
Namespace: Ingeniux.CMS
The IReferencesManager type exposes the following members.
Name | Description | |
---|---|---|
ContentStore |
Gets the Content Store.
(Inherited from ITransactionalEntity.) | |
CurrentUser |
Gets the Operating User for the Session .
(Inherited from ITransactionalEntity.) | |
Session |
Gets the User Session that this manager instance was initiated from.
(Inherited from ITransactionalEntity.) |
Name | Description | |
---|---|---|
AddReference |
Adds a new reference between two Pages.
| |
Count |
Gets the count of all Reference Entries stored on all Pages.
| |
DeepCloneT, TManager |
Duplicates an object instance, not including its unique ID.
(Inherited from ITransactionalEntity.) | |
Get |
Retrieves all References of the specified Page.
This method can query recursively on references of referenced pages, with or without cross references.
| |
QuickWrite |
Creates a temporary Write Session to quickly write something outside the current Session and transaction.
This is a way to bypass the transaction and quickly put something into the content store.
(Inherited from ITransactionalEntity.) | |
RemoveReference(IPage, IPage) | ||
RemoveReference(IPage, String) | ||
RemoveReferences |
Removes References from and/or to the specified Page.
|
Like all manager objects, instances of this manager are retrieved from an IUserSession object, and it only works within that session.
using (IUserSession session = store.OpenReadSession(currentUser))
{
IReferencesManager referencesManager = session.ReferencesManager;
...
}
<?xml version="1.0" encoding="UTF-8"?> <ReferencesMapping LastUpdatedUser="ingeniux\admin1" LastUpdated="20140714T11:24:50"> <Definitions> <Definition Description="The Reference" FullName="Reference" TagName="R" /> <Definition Description="The source page XID" FullName="SourcePage" TagName="S" /> <Definition Description="The target page XID" FullName="TargetPage" TagName="T" /> <Definition Description="Last Updated Date" FullName="LastUpdatedDate" TagName="LUD" /> <Definition Description="Last Update User" FullName="LastUpdateUser" TagName="LUU" /> </Definitions> <References> <R S="x123" T="x345" LUU="ingeniux\admin2" LUD="20140714T10.24:01" /> <R S="x6789" T="1011" LUU="ingeniux\admin3" LUD="20140714T10.41:43" /> </References> </ReferencesMapping>