Interface PageStorage
public interface PageStorage
-
Method Summary
Modifier and TypeMethodDescriptionClone a page.booleandestroyPage(PageKey key) Destroy a page.booleandestroyPages(SiteKey siteKey) Deletes Pages of a given sitefindPages(int offset, int limit, SiteType siteType, String siteName, String pageName, String pageTitle) Query the page service to find pages that match thesiteType,siteName,pageNameandtitlecriterions.getPage(long id) Retrieves page data switch given keyFind and returns a page, if no such page exist, null is returned.voidSaves a page.booleansavePage(PageContext page) Create, update a page.
-
Method Details
-
loadPage
Find and returns a page, if no such page exist, null is returned.- Parameters:
key- the page key- Returns:
- the matching page
-
loadPages
-
savePage
Create, update a page. When the page state is not null, the page will be created or updated depending on whether or not the page already exists.- Parameters:
page- the page- Returns:
- true if the page is not already existed, otherwise return false.
-
destroyPage
Destroy a page.- Parameters:
key- the page key- Returns:
- true when the page was destroyed
-
destroyPages
Deletes Pages of a given site- Parameters:
siteKey-SiteKey- Returns:
- true if deleted, else false
-
clone
Clone a page.- Parameters:
src- the source keydst- the destination key- Returns:
- the cloned page
-
findPages
QueryResult<PageContext> findPages(int offset, int limit, SiteType siteType, String siteName, String pageName, String pageTitle) Query the page service to find pages that match thesiteType,siteName,pageNameandtitlecriterions.- Parameters:
offset- the query offsetlimit- the query limitsiteType- the site typesiteName- the site namepageName- the page namepageTitle- the page title- Returns:
- the query result
-
save
Saves a page. If a page with the same id already exists then a merge operation will occur, otherwise it throwsIllegalStateExceptionFrom PLF 5.3.x (RDBMS implementation) we drop support return the change list as it's not used any where. So the method always return the empty list.- Parameters:
page- the page to save
-
getPage
Retrieves page data switch given key -
getPage
-
getPage
-
getPage
-