| Constructor and Description |
|---|
PageAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
Page |
createPage(PageCreator pageCreator,
byte[] content) |
Page |
createPage(String contentName,
byte[] content) |
void |
deletePage(long pageId) |
void |
deletePages(List<Long> pageIds) |
Page |
getPage(long pageId) |
protected PageAPIDelegate |
getPageAPIDelegate() |
Page |
getPageByName(String name) |
Page |
getPageByNameAndProcessDefinitionId(String name,
long processDefinitionId) |
byte[] |
getPageContent(long pageId) |
Properties |
getPageProperties(byte[] content,
boolean checkIfItAlreadyExists) |
protected TenantServiceAccessor |
getTenantAccessor() |
protected long |
getUserIdFromSessionInfos() |
PageURL |
resolvePageOrURL(String key,
Map<String,Serializable> context,
boolean executeAuthorizationRules) |
SearchResult<Page> |
searchPages(SearchOptions searchOptions) |
Page |
updatePage(long pageId,
PageUpdater pageUpdater) |
void |
updatePageContent(long pageId,
byte[] content) |
protected TenantServiceAccessor getTenantAccessor()
protected PageAPIDelegate getPageAPIDelegate()
public Page getPage(long pageId) throws PageNotFoundException
getPage in interface PageAPIPageNotFoundExceptionpublic byte[] getPageContent(long pageId)
throws PageNotFoundException
getPageContent in interface PageAPIPageNotFoundExceptionpublic SearchResult<Page> searchPages(SearchOptions searchOptions) throws SearchException
searchPages in interface PageAPISearchExceptionpublic Page createPage(PageCreator pageCreator, byte[] content) throws AlreadyExistsException, CreationException, InvalidPageTokenException, InvalidPageZipContentException
createPage in interface PageAPIAlreadyExistsExceptionCreationExceptionInvalidPageTokenExceptionInvalidPageZipContentExceptionpublic Page createPage(String contentName, byte[] content) throws AlreadyExistsException, CreationException, InvalidPageTokenException, InvalidPageZipContentException
createPage in interface PageAPIAlreadyExistsExceptionCreationExceptionInvalidPageTokenExceptionInvalidPageZipContentExceptionprotected long getUserIdFromSessionInfos()
public void deletePage(long pageId)
throws DeletionException
deletePage in interface PageAPIDeletionExceptionpublic void deletePages(List<Long> pageIds) throws DeletionException
deletePages in interface PageAPIDeletionExceptionpublic Page getPageByName(String name) throws PageNotFoundException
getPageByName in interface PageAPIPageNotFoundExceptionpublic Page getPageByNameAndProcessDefinitionId(String name, long processDefinitionId) throws PageNotFoundException
getPageByNameAndProcessDefinitionId in interface PageAPIPageNotFoundExceptionpublic Page updatePage(long pageId, PageUpdater pageUpdater) throws UpdateException, AlreadyExistsException, UpdatingWithInvalidPageTokenException, UpdatingWithInvalidPageZipContentException
updatePage in interface PageAPIUpdateExceptionAlreadyExistsExceptionUpdatingWithInvalidPageTokenExceptionUpdatingWithInvalidPageZipContentExceptionpublic void updatePageContent(long pageId,
byte[] content)
throws UpdateException,
UpdatingWithInvalidPageTokenException,
UpdatingWithInvalidPageZipContentException
updatePageContent in interface PageAPIUpdateExceptionUpdatingWithInvalidPageTokenExceptionUpdatingWithInvalidPageZipContentExceptionpublic Properties getPageProperties(byte[] content, boolean checkIfItAlreadyExists) throws InvalidPageTokenException, AlreadyExistsException, InvalidPageZipMissingPropertiesException, InvalidPageZipMissingIndexException, InvalidPageZipInconsistentException, InvalidPageZipMissingAPropertyException
public PageURL resolvePageOrURL(String key, Map<String,Serializable> context, boolean executeAuthorizationRules) throws NotFoundException, ExecutionException, UnauthorizedAccessException
resolvePageOrURL in interface PageAPINotFoundExceptionExecutionExceptionUnauthorizedAccessExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.