Class PageStorageImpl
java.lang.Object
org.exoplatform.portal.mop.storage.PageStorageImpl
- All Implemented Interfaces:
org.exoplatform.portal.mop.storage.PageStorage
- Direct Known Subclasses:
CachePageStorage
public class PageStorageImpl
extends Object
implements org.exoplatform.portal.mop.storage.PageStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LayoutStorageprotected org.exoplatform.services.listener.ListenerServiceprotected PageDAOprotected SiteDAO -
Constructor Summary
ConstructorsConstructorDescriptionPageStorageImpl(org.exoplatform.services.listener.ListenerService listenerService, LayoutStorage layoutStorage, SiteDAO siteDAO, PageDAO pageDAO) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbroadcastEvent(String eventName, org.exoplatform.portal.mop.page.PageKey pageKey) protected org.exoplatform.portal.pom.data.PageDatabuildPageData(PageEntity entity) org.exoplatform.portal.mop.page.PageContextclone(org.exoplatform.portal.mop.page.PageKey srcPageKey, org.exoplatform.portal.mop.page.PageKey dstPageKey) booleandestroyPage(org.exoplatform.portal.mop.page.PageKey key) booleandestroyPages(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.PagegetPage(long id) org.exoplatform.portal.config.model.Pageorg.exoplatform.portal.config.model.PagegetPage(org.exoplatform.portal.mop.page.PageKey key) org.exoplatform.portal.pom.data.PageDatagetPage(org.exoplatform.portal.pom.data.PageKey key) protected org.exoplatform.portal.mop.page.PageKeygetPageKey(long id) org.exoplatform.portal.mop.page.PageContextloadPage(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.voidsave(org.exoplatform.portal.pom.data.PageData page) booleansavePage(org.exoplatform.portal.mop.page.PageContext page)
-
Field Details
-
listenerService
protected org.exoplatform.services.listener.ListenerService listenerService -
layoutStorage
-
siteDAO
-
pageDAO
-
-
Constructor Details
-
PageStorageImpl
public PageStorageImpl(org.exoplatform.services.listener.ListenerService listenerService, LayoutStorage layoutStorage, SiteDAO siteDAO, PageDAO pageDAO)
-
-
Method Details
-
getPage
- Specified by:
getPagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
getPage
public org.exoplatform.portal.config.model.Page getPage(long id) - Specified by:
getPagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
getPage
public org.exoplatform.portal.config.model.Page getPage(org.exoplatform.portal.mop.page.PageKey key) - Specified by:
getPagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
loadPage
public org.exoplatform.portal.mop.page.PageContext loadPage(org.exoplatform.portal.mop.page.PageKey key) - Specified by:
loadPagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
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
PageStorageinterface.- Specified by:
loadPagesin interfaceorg.exoplatform.portal.mop.storage.PageStorage- 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) - Specified by:
savePagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
destroyPage
public boolean destroyPage(org.exoplatform.portal.mop.page.PageKey key) - Specified by:
destroyPagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
destroyPages
public boolean destroyPages(org.exoplatform.portal.mop.SiteKey siteKey) - Specified by:
destroyPagesin interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
clone
public org.exoplatform.portal.mop.page.PageContext clone(org.exoplatform.portal.mop.page.PageKey srcPageKey, org.exoplatform.portal.mop.page.PageKey dstPageKey) - Specified by:
clonein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
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) - Specified by:
findPagesin interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
save
public void save(org.exoplatform.portal.pom.data.PageData page) - Specified by:
savein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
getPage
public org.exoplatform.portal.pom.data.PageData getPage(org.exoplatform.portal.pom.data.PageKey key) - Specified by:
getPagein interfaceorg.exoplatform.portal.mop.storage.PageStorage
-
buildPageData
-
broadcastEvent
-
getPageKey
protected org.exoplatform.portal.mop.page.PageKey getPageKey(long id)
-