IPage
|
The IPageCreationRulesManager 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 | |
|---|---|---|
| AddPageCreationRule | Creates a new PageCreationRule. | |
| Count | Gets the count of all Page Creation Rules | |
| DeepCloneT, TManager |
Duplicates an object instance, not including its unique ID.
(Inherited from ITransactionalEntity) | |
| PageCreationRule | Retrieves a Page Creation Rule by its unique ID. | |
| PageCreationRules(String) | Retrieves a collection of Page Creation Rules by their unique IDs. | |
| PageCreationRules(Int32, Int32, Int32) | Retrieves the collection of all Page Creation Rules. | |
| PageCreationRules(Int32, ISchema, Int32, Int32) | Retrieves the collection of Page Creation Rules that are based on the specified Schema. | |
| PageCreationRules(Int32, IUser, Int32, Int32) | Retrieves the collection of Page Creation Rules that can be used by the specified User. | |
| PageCreationRules(Int32, IUserGroup, Int32, Int32) | Retrieves the collection of Page Creation Rules that can be used by the the specified Group. | |
| 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) | |
| RemovePageCreationRule | Permenantly removes a Page Creation Rule from the collection. |
Like all manager objects, instances of this manager are retrieved from an IUserSession object and only work within that session.
using (IUserSession session = store.OpenReadSession(currentUser))
{
IPageCreationRulesManager pcrManager = session.PageCreationRulesManager;
...
}Serialization of the Page Creation Rules Manager matches the serialization of pagecreationrules.xml in previous-generation CMS content:
<?xml version="1.0" encoding="utf-16" standalone="no"?> <PageCreationRules NextID="10"> <PageCreationRule Name="Create an Image" ID="6" Icon="PageCreationRules/211" IsDefault="false" Schema="Image" StyleSheetFileName="" wfid=""> <Users/> <Groups> <Group ID="UserGroups/54"/> <Group ID="UserGroups/1"/> </Groups> </PageCreationRule> <PageCreationRule Name="Create an Event" ID="PageCreationRules/232" Icon="16" IsDefault="false" Schema="Event Detail" StyleSheetFileName="default.xsl" wfid=""> <Users> <User ID="ingeniux\admin1"/> <User ID="ingeniux\author2"/> </Users> <Groups> <Group ID="UserGroups/234"/> <Group ID="UserGroups/42"/> <Group ID="UserGroups/1"/> </Groups> </PageCreationRule> </PageCreationRules>