public class PageServiceImpl extends Object implements org.exoplatform.portal.mop.page.PageService
PageService business methods.| Constructor and Description |
|---|
PageServiceImpl(POMSessionManager manager)
Create an instance that uses a simple data cache, such instance should be used for testing purposes.
|
PageServiceImpl(POMSessionManager manager,
org.exoplatform.portal.mop.page.DataCache dataCache)
Create an instance that will use a specified data cache instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
org.exoplatform.portal.mop.page.PageContext |
clone(org.exoplatform.portal.mop.page.PageKey src,
org.exoplatform.portal.mop.page.PageKey dst) |
boolean |
destroyPage(org.exoplatform.portal.mop.page.PageKey key) |
org.exoplatform.portal.mop.QueryResult<org.exoplatform.portal.mop.page.PageContext> |
findPages(int from,
int to,
org.exoplatform.portal.mop.SiteType siteType,
String siteName,
String pageName,
String pageTitle) |
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) |
public PageServiceImpl(POMSessionManager manager) throws NullPointerException
manager - the mop session managerNullPointerException - if the manager argument is nullpublic PageServiceImpl(POMSessionManager manager, org.exoplatform.portal.mop.page.DataCache dataCache) throws NullPointerException
manager - the mop session managerdataCache - the data cacheNullPointerException - if any argument is nullpublic org.exoplatform.portal.mop.page.PageContext loadPage(org.exoplatform.portal.mop.page.PageKey key)
loadPage in interface org.exoplatform.portal.mop.page.PageServicepublic List<org.exoplatform.portal.mop.page.PageContext> loadPages(org.exoplatform.portal.mop.SiteKey siteKey) throws NullPointerException, org.exoplatform.portal.mop.page.PageServiceException
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
PageService interface.
loadPages in interface org.exoplatform.portal.mop.page.PageServicesiteKey - the site keyNullPointerException - if the site key argument is nullPageServiceException - anything that would prevent the operation to succeedpublic boolean savePage(org.exoplatform.portal.mop.page.PageContext page)
savePage in interface org.exoplatform.portal.mop.page.PageServicepublic boolean destroyPage(org.exoplatform.portal.mop.page.PageKey key)
destroyPage in interface org.exoplatform.portal.mop.page.PageServicepublic org.exoplatform.portal.mop.page.PageContext clone(org.exoplatform.portal.mop.page.PageKey src,
org.exoplatform.portal.mop.page.PageKey dst)
clone in interface org.exoplatform.portal.mop.page.PageServicepublic org.exoplatform.portal.mop.QueryResult<org.exoplatform.portal.mop.page.PageContext> findPages(int from,
int to,
org.exoplatform.portal.mop.SiteType siteType,
String siteName,
String pageName,
String pageTitle)
findPages in interface org.exoplatform.portal.mop.page.PageServicepublic void clearCache()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.