public interface PageService
| Modifier and Type | Method and Description | 
|---|---|
| List<PageDTO> | buildPageDTOList(List<Page> pageList,
                boolean secure,
                String identifier,
                Locale locale) | 
| 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. | 
| Map<String,PageField> | findPageFieldMapByPageId(Long pageId)Returns the page-fields associated with a page. | 
| PageTemplate | findPageTemplateById(Long id)Returns the page template with the passed in id. | 
| javax.cache.Cache | getPageCache() | 
| javax.cache.Cache | getPageMapCache() | 
| String | getPageMapCacheKey(String uri,
                  Long site) | 
| javax.cache.Cache | getUriCachedDateCache() | 
| 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 | 
| Boolean | removePageFromCache(String key)Call to evict all known PageDTOs that are associated with the given page from cache | 
| Boolean | removeTranslationPageFromCache(String uri,
                              String localeCode,
                              boolean isSecure)Call to evict translated page from cache | 
| PageTemplate | savePageTemplate(PageTemplate template)Saves the given  PageTemplate | 
Page findPageById(Long pageId)
pageId - - The id of the page.Map<String,PageField> findPageFieldMapByPageId(Long pageId)
pageId - PageTemplate findPageTemplateById(Long id)
id - - the id of the page templatePageTemplate savePageTemplate(PageTemplate template)
PageTemplatetemplate - the PageTemplate to savePageTemplatePageDTO findPageByURI(Locale locale, String uri, Map<String,Object> ruleDTOs, boolean secure)
locale - - 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()
Pages configured in the systemList<PageTemplate> readAllPageTemplates()
PageTemplates configured in the systemBoolean removePageFromCache(String key)
key - Boolean removeTranslationPageFromCache(String uri, String localeCode, boolean isSecure)
uri - localeCode - isSecure - javax.cache.Cache getPageCache()
javax.cache.Cache getPageMapCache()
javax.cache.Cache getUriCachedDateCache()
List<PageDTO> buildPageDTOList(List<Page> pageList, boolean secure, String identifier, Locale locale)
pageList - secure - identifier - locale - Copyright © 2020. All rights reserved.