Interface PageStorage

All Superinterfaces:
PageService

public interface PageStorage extends PageService
  • Method Details

    • loadPage

      PageContext loadPage(PageKey key)
      Find and returns a page, if no such page exist, null is returned.
      Specified by:
      loadPage in interface PageService
      Parameters:
      key - the page key
      Returns:
      the matching page
    • loadPages

      List<PageContext> loadPages(SiteKey siteKey)
      Specified by:
      loadPages in interface PageService
    • savePage

      boolean savePage(PageContext page)
      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.
      Specified by:
      savePage in interface PageService
      Parameters:
      page - the page
      Returns:
      true if the page is not already existed, otherwise return false.
    • destroyPage

      boolean destroyPage(PageKey key)
      Destroy a page.
      Specified by:
      destroyPage in interface PageService
      Parameters:
      key - the page key
      Returns:
      true when the page was destroyed
    • destroyPages

      boolean destroyPages(SiteKey siteKey)
      Deletes Pages of a given site
      Specified by:
      destroyPages in interface PageService
      Parameters:
      siteKey - SiteKey
      Returns:
      true if deleted, else false
    • clone

      PageContext clone(PageKey src, PageKey dst)
      Clone a page.
      Specified by:
      clone in interface PageService
      Parameters:
      src - the source key
      dst - 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 the siteType, siteName, pageName and title criterions.
      Specified by:
      findPages in interface PageService
      Parameters:
      offset - the query offset
      limit - the query limit
      siteType - the site type
      siteName - the site name
      pageName - the page name
      pageTitle - the page title
      Returns:
      the query result
    • save

      void save(PageData page)
      Saves a page. If a page with the same id already exists then a merge operation will occur, otherwise it throws IllegalStateException From 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.
      Specified by:
      save in interface PageService
      Parameters:
      page - the page to save
    • getPage

      PageData getPage(PageKey key)
      Retrieves page data switch given key
      Specified by:
      getPage in interface PageService
      Parameters:
      key - PageKey
      Returns:
      PageData
    • getPage

      Page getPage(String pageKey)
      Specified by:
      getPage in interface PageService
    • getPage

      Page getPage(PageKey pageKey)
      Specified by:
      getPage in interface PageService
    • getPage

      Page getPage(long id)