Class PageStorageImpl

java.lang.Object
org.exoplatform.portal.mop.storage.AbstractPageStorage
org.exoplatform.portal.mop.storage.PageStorageImpl
All Implemented Interfaces:
org.exoplatform.portal.mop.page.PageService, org.exoplatform.portal.mop.storage.PageStorage
Direct Known Subclasses:
CachePageStorage

public class PageStorageImpl extends AbstractPageStorage
  • Field Summary

    Fields inherited from class org.exoplatform.portal.mop.storage.AbstractPageStorage

    layoutStorage, listenerService, pageDAO, siteDAO
  • Constructor Summary

    Constructors
    Constructor
    Description
    PageStorageImpl(org.exoplatform.services.listener.ListenerService listenerService, LayoutStorage layoutStorage, SiteDAO siteDAO, PageDAO pageDAO)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.portal.mop.page.PageContext
    clone(org.exoplatform.portal.mop.page.PageKey srcPageKey, org.exoplatform.portal.mop.page.PageKey dstPageKey)
     
    boolean
    destroyPage(org.exoplatform.portal.mop.page.PageKey key)
     
    boolean
    destroyPages(org.exoplatform.portal.mop.SiteKey siteKey)
     
    org.exoplatform.portal.mop.QueryResult<org.exoplatform.portal.mop.page.PageContext>
    findPages(int from, int limit, org.exoplatform.portal.mop.SiteType siteType, String siteName, String pageName, String pageTitle)
     
    org.exoplatform.portal.config.model.Page
    getPage(long id)
     
    org.exoplatform.portal.config.model.Page
    getPage(String pageKey)
     
    org.exoplatform.portal.config.model.Page
    getPage(org.exoplatform.portal.mop.page.PageKey key)
     
    protected org.exoplatform.portal.mop.page.PageKey
    getPageKey(long id)
     
    org.exoplatform.portal.mop.page.PageContext
    loadPage(org.exoplatform.portal.mop.page.PageKey key)
     
    List<org.exoplatform.portal.mop.page.PageContext>
    loadPages(org.exoplatform.portal.mop.SiteKey siteKey)
    Load all the pages of a specific site.
    boolean
    savePage(org.exoplatform.portal.mop.page.PageContext page)
     

    Methods inherited from class org.exoplatform.portal.mop.storage.AbstractPageStorage

    broadcastEvent, buildPageData, getPage, save

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PageStorageImpl

      public PageStorageImpl(org.exoplatform.services.listener.ListenerService listenerService, LayoutStorage layoutStorage, SiteDAO siteDAO, PageDAO pageDAO)
  • Method Details

    • getPage

      public org.exoplatform.portal.config.model.Page getPage(String pageKey)
    • getPage

      public org.exoplatform.portal.config.model.Page getPage(long id)
    • getPage

      public org.exoplatform.portal.config.model.Page getPage(org.exoplatform.portal.mop.page.PageKey key)
    • loadPage

      public org.exoplatform.portal.mop.page.PageContext loadPage(org.exoplatform.portal.mop.page.PageKey key)
    • loadPages

      public List<org.exoplatform.portal.mop.page.PageContext> loadPages(org.exoplatform.portal.mop.SiteKey siteKey)

      Load all the pages of a specific site. Note that this method can potentially raise performance issues if the number of pages is very large and should be used with cautions. That's the motiviation for not having this method on the PageStorage interface.

      Parameters:
      siteKey - the site key
      Returns:
      the list of pages
      Throws:
      org.exoplatform.portal.mop.page.PageServiceException - anything that would prevent the operation to succeed
    • savePage

      public boolean savePage(org.exoplatform.portal.mop.page.PageContext page)
    • destroyPage

      public boolean destroyPage(org.exoplatform.portal.mop.page.PageKey key)
    • destroyPages

      public boolean destroyPages(org.exoplatform.portal.mop.SiteKey siteKey)
    • clone

      public org.exoplatform.portal.mop.page.PageContext clone(org.exoplatform.portal.mop.page.PageKey srcPageKey, org.exoplatform.portal.mop.page.PageKey dstPageKey)
    • findPages

      public org.exoplatform.portal.mop.QueryResult<org.exoplatform.portal.mop.page.PageContext> findPages(int from, int limit, org.exoplatform.portal.mop.SiteType siteType, String siteName, String pageName, String pageTitle)
    • getPageKey

      protected org.exoplatform.portal.mop.page.PageKey getPageKey(long id)