Interface IPageObjectRepository
Interface for a page object repository
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public interface IPageObjectRepository
Methods
Delete(PageObject[])
Delete the page objects passed
Declaration
void Delete(params PageObject[] pageObjects)
Parameters
Type | Name | Description |
---|---|---|
Page |
pageObjects | An array of Page |
DeleteAllForPage(Guid)
Delete all page objects for the page identified by pageGuid
Declaration
void DeleteAllForPage(Guid pageGuid)
Parameters
Type | Name | Description |
---|---|---|
System. |
pageGuid | The unique id of the page |
DeleteAllLanguageBranchOwnedForPage(Guid, String)
Delete all page objects that have PagepageGuid
Declaration
void DeleteAllLanguageBranchOwnedForPage(Guid pageGuid, string pageLanguageBranch)
Parameters
Type | Name | Description |
---|---|---|
System. |
pageGuid | The unique id of the page |
System. |
pageLanguageBranch | The language to delete objectd for |
DeleteAllPageVersionOwnedForPage(Guid, Int32)
Delete all page objects that have PagepageGuid
Declaration
void DeleteAllPageVersionOwnedForPage(Guid pageGuid, int workPageId)
Parameters
Type | Name | Description |
---|---|---|
System. |
pageGuid | The unique id of the page |
System. |
workPageId | The id of the page version to delete objectd for |
LoadAllForPage(Guid, String, Int32)
Load all page objects for the page identified by the parameters passed
Declaration
IEnumerable<PageObject> LoadAllForPage(Guid pageGuid, string pageLanguageBranch, int workPageId)
Parameters
Type | Name | Description |
---|---|---|
System. |
pageGuid | The System. |
System. |
pageLanguageBranch | The page language branch string of the page to load for |
System. |
workPageId | The work page id of the page to load for |
Returns
Type | Description |
---|---|
System. |
A Page |
LoadOneForPage(Guid, String, Int32, String)
Load a single page object for the page identified by the parameters passed
Declaration
PageObject LoadOneForPage(Guid pageGuid, string pageLanguageBranch, int workPageId, string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
pageGuid | The System. |
System. |
pageLanguageBranch | The page language branch string of the page to load for |
System. |
workPageId | The work page id of the page to load for |
System. |
name | The name of the page object to load |
Returns
Type | Description |
---|---|
Page |
A Page |
LoadValueObject(PageObject)
Load the page object value for the Page
Declaration
object LoadValueObject(PageObject pageObject)
Parameters
Type | Name | Description |
---|---|---|
Page |
pageObject | The page object to load the object for |
Returns
Type | Description |
---|---|
System. |
An object instance or null if not found |
Save(PageObject[])
Save the page objects passed
Declaration
void Save(params PageObject[] pageObjects)
Parameters
Type | Name | Description |
---|---|---|
Page |
pageObjects | An array of Page |