public interface PageService
Modifier and Type | Method and Description |
---|---|
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,
Map<String,Object> ruleDTOs,
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() |
boolean |
isAutomaticallyApproveAndPromotePages() |
List<Page> |
readAllPages()
Returns all pages, regardless of any sandbox they are apart of
|
List<PageTemplate> |
readAllPageTemplates()
Returns all page templates, regardless of any sandbox they are apart of
|
void |
removePageFromCache(String baseKey)
Call to evict both secure and non-secure pages matching
the passed in key.
|
PageTemplate |
savePageTemplate(PageTemplate template)
Saves the given
PageTemplate |
void |
setArchivedPageListeners(List<ArchivedPagePublisher> archivedPageListeners) |
void |
setAutomaticallyApproveAndPromotePages(boolean automaticallyApproveAndPromotePages) |
Page |
updatePage(Page page,
SandBox sandbox)
This method is intended to be called from within the CMS
admin only.
|
Page findPageById(Long pageId)
pageId
- - The id of the page.PageTemplate findPageTemplateById(Long id)
id
- - the id of the page templatePageTemplate savePageTemplate(PageTemplate template)
PageTemplate
template
- the PageTemplate
to savePageTemplate
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, Map<String,Object> ruleDTOs, boolean secure)
currentSandbox
- - current sandboxlocale
- - current localeuri
- - the URI to return a page forruleDTOs
- - ruleDTOs that are used as the data to process page rulessecure
- - set to true if current request is over HTTPSvoid deletePage(Page page, SandBox destinationSandbox)
page
- destinationSandbox
- List<Page> readAllPages()
Page
s configured in the systemList<PageTemplate> readAllPageTemplates()
PageTemplate
s configured in the systemvoid removePageFromCache(String baseKey)
baseKey
- List<ArchivedPagePublisher> getArchivedPageListeners()
void setArchivedPageListeners(List<ArchivedPagePublisher> archivedPageListeners)
boolean isAutomaticallyApproveAndPromotePages()
void setAutomaticallyApproveAndPromotePages(boolean automaticallyApproveAndPromotePages)
Copyright © 2014. All rights reserved.