public class PageController extends Object
| Constructor and Description |
|---|
PageController() |
| Modifier and Type | Method and Description |
|---|---|
protected UidListData |
convertToUidListData(List<String> pageIds) |
AbstractPageData |
createPage(AbstractPageData pageData,
HttpServletRequest request,
HttpServletResponse response)
Create a new page.
|
PageListData |
findAllPages()
Find all pages.
|
UidListData |
findFallbackPages(String pageId)
Get all fallback pages uid for a given page.
|
PageListData |
findPagesByIds(List<String> uids)
Find specific pages.
|
PageListData |
findPagesByType(String typeCode,
Boolean isDefaultPage)
Get all default or variation pages that matches the given page type.
|
UidListData |
findVariationPages(String pageId)
Get all variation pages uid for a given page.
|
protected PageFacade |
getCmsPageFacade() |
protected LocationHeaderResource |
getLocationHeaderResource() |
AbstractPageData |
getPageByUid(String pageId)
Get the page that matches the given page uid.
|
void |
setCmsPageFacade(PageFacade pageFacade) |
void |
setLocationHeaderResource(LocationHeaderResource locationHeaderResource) |
AbstractPageData |
updatePage(String pageId,
AbstractPageData pageData)
Update a page.
|
public PageListData findAllPages()
public PageListData findPagesByIds(List<String> uids)
uids - a list of identifier of the pages that we are looking forPageListDatapublic AbstractPageData getPageByUid(String pageId) throws CMSItemNotFoundException
AbstractPageDataCMSItemNotFoundException - when the page cannot be foundpublic PageListData findPagesByType(String typeCode, Boolean isDefaultPage)
public UidListData findVariationPages(String pageId) throws CMSItemNotFoundException
CMSItemNotFoundException - when the pageId is invalidpublic UidListData findFallbackPages(String pageId) throws CMSItemNotFoundException
CMSItemNotFoundException - when the pageId is invalidprotected UidListData convertToUidListData(List<String> pageIds)
public AbstractPageData createPage(AbstractPageData pageData, HttpServletRequest request, HttpServletResponse response)
request - the HttpServletRequestresponse - the HttpServletResponseAbstractPageDatapublic AbstractPageData updatePage(String pageId, AbstractPageData pageData)
AbstractPageDataprotected LocationHeaderResource getLocationHeaderResource()
public void setLocationHeaderResource(LocationHeaderResource locationHeaderResource)
protected PageFacade getCmsPageFacade()
public void setCmsPageFacade(PageFacade pageFacade)
Copyright © 2000-2016 SAP SE. All Rights Reserved.