Class DdsPageObjectRepository
A repository for EPiServer CMS page objects This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IPageObjectRepository))]
public class DdsPageObjectRepository : IPageObjectRepository
Constructors
DdsPageObjectRepository()
Default constructor. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public DdsPageObjectRepository()
Remarks
The DynamicDataStoreFactory member will be set to the default instance
DdsPageObjectRepository(DynamicDataStoreFactory, IRuntimeCache)
Construct using the DynamicDataStoreFactory passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public DdsPageObjectRepository(DynamicDataStoreFactory storeFactory, IRuntimeCache cache)
Parameters
Type | Name | Description |
---|---|---|
DynamicDataStoreFactory | storeFactory | The Dynamic Data Store factory to use when working for stores |
IRuntimeCache | cache | The Runtime cache to use when saving. |
Properties
StoreFactory
The DynamicDataStoreFactory being used by this instance This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
protected virtual DynamicDataStoreFactory StoreFactory { get; }
Property Value
Type | Description |
---|---|
DynamicDataStoreFactory |
Methods
Delete(PageObject[])
Delete the page objects passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void Delete(params PageObject[] pageObjects)
Parameters
Type | Name | Description |
---|---|---|
PageObject[] | pageObjects | An array of PageObject to delete |
Delete(DynamicDataStore, PageObject[])
Delete the page object array passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
protected virtual void Delete(DynamicDataStore metaStore, params PageObject[] pageObjects)
Parameters
Type | Name | Description |
---|---|---|
DynamicDataStore | metaStore | The store to remove the page objects from |
PageObject[] | pageObjects | An array of PageObject to delete |
DeleteAllForPage(Guid)
Delete all page objects for the page identified by pageGuid
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void DeleteAllForPage(Guid pageGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | pageGuid | The unique id of the page |
DeleteAllLanguageBranchOwnedForPage(Guid, String)
Delete all page objects that have PageLanguageBranch ownership for the page identified by pageGuid
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void DeleteAllLanguageBranchOwnedForPage(Guid pageGuid, string pageLanguageBranch)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | pageGuid | The unique id of the page |
System.String | pageLanguageBranch | The language to delete objectd for |
DeleteAllPageVersionOwnedForPage(Guid, Int32)
Delete all page objects that have PageVersion ownership for the page identified by pageGuid
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void DeleteAllPageVersionOwnedForPage(Guid pageGuid, int workPageId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | pageGuid | The unique id of the page |
System.Int32 | workPageId | The id of the page version to delete objectd for |
GenerateStoreName(PageObject)
Generate a store name for the page object passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
protected virtual string GenerateStoreName(PageObject pageObject)
Parameters
Type | Name | Description |
---|---|---|
PageObject | pageObject | A PageObject to generate the store name for |
Returns
Type | Description |
---|---|
System.String | A System.String |
LoadAllForPage(Guid, String, Int32)
Load all page objects for the page identified by the parameters passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual IEnumerable<PageObject> LoadAllForPage(Guid pageGuid, string pageLanguageBranch, int workPageId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | pageGuid | The System.Guid of the page to load for |
System.String | pageLanguageBranch | The page language branch string of the page to load for |
System.Int32 | workPageId | The work page id of the page to load for |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PageObject> | A PageObject instance or null if not found |
LoadOneForPage(Guid, String, Int32, String)
Load a single page object for the page identified by the parameters passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual PageObject LoadOneForPage(Guid pageGuid, string pageLanguageBranch, int workPageId, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | pageGuid | The System.Guid of the page to load for |
System.String | pageLanguageBranch | The page language branch string of the page to load for |
System.Int32 | workPageId | The work page id of the page to load for |
System.String | name | The name of the page object to load |
Returns
Type | Description |
---|---|
PageObject | A PageObject instance or null if not found |
LoadValueObject(PageObject)
Load the page object value for the PageObject passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual object LoadValueObject(PageObject pageObject)
Parameters
Type | Name | Description |
---|---|---|
PageObject | pageObject | The page object to load the object for |
Returns
Type | Description |
---|---|
System.Object | An object instance or null if not found |
Save(PageObject[])
Save the page objects passed This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void Save(params PageObject[] pageObjects)
Parameters
Type | Name | Description |
---|---|---|
PageObject[] | pageObjects | An array of PageObject to save |
ToPageObject(PropertyBag)
Converts the property bag to a page object This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
protected virtual PageObject ToPageObject(PropertyBag bag)
Parameters
Type | Name | Description |
---|---|---|
PropertyBag | bag | A PropertyBag to convert |
Returns
Type | Description |
---|---|
PageObject | A PageObject instance |