public interface PageService
Modifier and Type | Method and Description |
---|---|
Page |
findPageById(Long pageId)
Returns the page with the passed in id.
|
PageDTO |
findPageByURI(Locale locale,
String uri,
Map<String,Object> ruleDTOs,
boolean secure)
Looks up the page from the backend datastore.
|
PageTemplate |
findPageTemplateById(Long id)
Returns the page template with the passed in id.
|
net.sf.ehcache.Cache |
getPageCache() |
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(SandBox sandBox,
Page p)
Call to evict a page for a sandbox
|
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 |
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
PageDTO findPageByURI(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 HTTPSList<Page> readAllPages()
Page
s configured in the systemList<PageTemplate> readAllPageTemplates()
PageTemplate
s configured in the systemvoid removePageFromCache(String baseKey)
baseKey
- void removePageFromCache(SandBox sandBox, Page p)
sandBox
- The sandbox in which the page residesp
- The page instance to evict from cachenet.sf.ehcache.Cache getPageCache()
Copyright © 2014. All rights reserved.