Try our conversational search powered by Generative AI!

Interface IPageObjectRepository

Interface for a page object repository

Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public interface IPageObjectRepository

Methods

Delete(PageObject[])

Delete the page objects passed

Declaration
void Delete(params PageObject[] pageObjects)
Parameters
Type Name Description
PageObject[] pageObjects

An array of PageObject to delete

DeleteAllForPage(Guid)

Delete all page objects for the page identified by pageGuid

Declaration
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

Declaration
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

Declaration
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

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.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

Declaration
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

Declaration
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

Declaration
void Save(params PageObject[] pageObjects)
Parameters
Type Name Description
PageObject[] pageObjects

An array of PageObject to save

Extension Methods