Table of Contents

Interface IPageRepository

Namespace
Dynamicweb.Content.Data
Assembly
Dynamicweb.dll
The IPageRepository interface defines persistence operations for the Page Aggregate
[Obsolete("Use PageRepository instead.")]
public interface IPageRepository

Methods

Delete(int)

Deletes the page with the specified id
void Delete(int pageId)

Parameters

pageId int
The id of the page to delete

DeleteAll(IEnumerable<int>)

Deletes the pages with the specified ids
void DeleteAll(IEnumerable<int> pageIds)

Parameters

pageIds IEnumerable<int>
The ids of the pages to delete

DeleteAllPages(int)

Deletes all pages in the specified area
IEnumerable<int> DeleteAllPages(int areaId)

Parameters

areaId int
The id of the area for which to delete all pages

Returns

IEnumerable<int>

GetNextAvailableSortValue(int, int)

Gets the next available sort value in the list of siblings for this page
int GetNextAvailableSortValue(int areaId, int parentPageId)

Parameters

areaId int
The id of the area where the pages are located
parentPageId int
The id of the page that is the parent of the children for which to get the next available sort value

Returns

int

GetPage(int)

Gets the Page with the specified id
Page GetPage(int id)

Parameters

id int
The id of the page to get

Returns

Page
The page with the specified id

GetPageIdByItemInformation(Dictionary<string, string>)

Gets the page ID by Item Type and Item ID.
IDictionary<string, int> GetPageIdByItemInformation(Dictionary<string, string> itemInformation)

Parameters

itemInformation Dictionary<string, string>
The pairs of Item Type and Item ID.

Returns

IDictionary<string, int>
The pairs of cache ID and Page ID.

GetPageIdByNavigationTagForArea(IDictionary<int, string>)

Gets the page ID by Area ID and Navigation tag.
IDictionary<string, int> GetPageIdByNavigationTagForArea(IDictionary<int, string> pairsForSearch)

Parameters

pairsForSearch IDictionary<int, string>
The pairs of Area ID and Navigation tag.

Returns

IDictionary<string, int>
The pairs of cache ID and Page ID.

GetPages()

Gets all pages in the system
PageCollection GetPages()

Returns

PageCollection
A PageCollection with all the pages in the system

GetPages(IEnumerable<int>)

Gets pages by IDs.
IDictionary<int, Page> GetPages(IEnumerable<int> ids)

Parameters

ids IEnumerable<int>
The page IDs.

Returns

IDictionary<int, Page>
Found pages.

GetSolutionInfo()

Gets a SolutionInfo instance having general information about the entire solution
[Obsolete("Don't use this")]
SolutionInfo GetSolutionInfo()

Returns

SolutionInfo
A SolutionInfo instance having information about the entire solution

RestorePage(Page)

Re-inserts the specified page
Page RestorePage(Page page)

Parameters

page Page
The page to reinsert into persistence

Returns

Page
The newly inserted page

Save(Page)

Saves the pages and other objects that are part of the Page Aggregate
Page Save(Page page)

Parameters

page Page
The page to save

Returns

Page
The newly save page aggregate

UpdateSortIndex(int, int)

Updates the page sorting index
void UpdateSortIndex(int pageID, int sortIndex)

Parameters

pageID int
The page for which to update sorting
sortIndex int
The index used for sorting pages

UpdateTemplateFolderSortIndex(int)

Updates the template folder sorting index
void UpdateTemplateFolderSortIndex(int areaID)

Parameters

areaID int
The id of the area where the template folder is located
To top