|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PageService
Created by bpolster.
| Method Summary | |
|---|---|
Page |
addPage(Page page,
SandBox destinationSandbox)
This method is intended to be called from within the CMS admin only. |
Long |
countPages(SandBox sandBox,
org.hibernate.Criteria criteria)
|
void |
deletePage(Page page,
SandBox destinationSandbox)
If deleting and item where page.originalPageId != null then the item is deleted from the database. |
Page |
findPageById(Long pageId)
Returns the page with the passed in id. |
PageDTO |
findPageByURI(SandBox currentSandbox,
Locale locale,
String uri,
boolean secure)
Looks up the page from the backend datastore. |
Map<String,PageField> |
findPageFieldsByPageId(Long pageId)
Returns the page-fields associated with the passed in page-id. |
List<Page> |
findPages(SandBox sandBox,
org.hibernate.Criteria criteria)
|
PageTemplate |
findPageTemplateById(Long id)
Returns the page template with the passed in id. |
List<ArchivedPagePublisher> |
getArchivedPageListeners()
|
void |
removePageFromCache(String baseKey)
Call to evict both secure and non-secure pages matching the passed in key. |
void |
setArchivedPageListeners(List<ArchivedPagePublisher> archivedPageListeners)
|
Page |
updatePage(Page page,
SandBox sandbox)
This method is intended to be called from within the CMS admin only. |
| Method Detail |
|---|
Page findPageById(Long pageId)
pageId - - The id of the page.
PageTemplate findPageTemplateById(Long id)
id - - the id of the page template
Map<String,PageField> findPageFieldsByPageId(Long pageId)
pageId - - The id of the page.
Page addPage(Page page,
SandBox destinationSandbox)
Page updatePage(Page page,
SandBox sandbox)
PageDTO findPageByURI(SandBox currentSandbox,
Locale locale,
String uri,
boolean secure)
currentSandbox - - current sandboxlocale - - current localeuri - - the URI to return a page forsecure - - set to true if current request is over HTTPS
void deletePage(Page page,
SandBox destinationSandbox)
page - destinationSandbox -
List<Page> findPages(SandBox sandBox,
org.hibernate.Criteria criteria)
Long countPages(SandBox sandBox,
org.hibernate.Criteria criteria)
void removePageFromCache(String baseKey)
baseKey - List<ArchivedPagePublisher> getArchivedPageListeners()
void setArchivedPageListeners(List<ArchivedPagePublisher> archivedPageListeners)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||