public class PageAPIDelegate extends Object
| Constructor and Description |
|---|
PageAPIDelegate(TenantServiceAccessor tenantAccessor,
long userIdFromSession) |
| Modifier and Type | Method and Description |
|---|---|
protected SPage |
constructPage(PageCreator pageCreator,
long userId) |
protected SPage |
constructPage(PageUpdater pageUpdater,
long userId) |
protected Page |
convertToPage(SPage addPage) |
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) |
Page |
getPageByName(String name) |
Page |
getPageByNameAndProcessDefinition(String name,
long processDefinitionId) |
byte[] |
getPageContent(long pageId) |
Properties |
getPageProperties(byte[] content,
boolean checkIfItAlreadyExists) |
protected SPageUpdateBuilder |
getPageUpdateBuilder() |
protected SPageUpdateContentBuilder |
getPageUpdateContentBuilder() |
protected SearchPages |
getSearchPages(SearchOptions searchOptions) |
SearchResult<Page> |
searchPages(SearchOptions searchOptions) |
Page |
updatePage(long pageId,
PageUpdater pageUpdater) |
void |
updatePageContent(long pageId,
byte[] content) |
public PageAPIDelegate(TenantServiceAccessor tenantAccessor, long userIdFromSession)
public Page getPage(long pageId) throws PageNotFoundException
PageNotFoundExceptionpublic byte[] getPageContent(long pageId)
throws PageNotFoundException
PageNotFoundExceptionpublic SearchResult<Page> searchPages(SearchOptions searchOptions) throws SearchException
SearchExceptionprotected SearchPages getSearchPages(SearchOptions searchOptions)
public Page createPage(PageCreator pageCreator, byte[] content) throws AlreadyExistsException, CreationException, InvalidPageTokenException, InvalidPageZipContentException
public Page createPage(String contentName, byte[] content) throws AlreadyExistsException, CreationException, InvalidPageTokenException, InvalidPageZipContentException
public void deletePage(long pageId)
throws DeletionException
DeletionExceptionpublic void deletePages(List<Long> pageIds) throws DeletionException
DeletionExceptionpublic Page getPageByName(String name) throws PageNotFoundException
PageNotFoundExceptionpublic Page updatePage(long pageId, PageUpdater pageUpdater) throws UpdateException, AlreadyExistsException, UpdatingWithInvalidPageTokenException, UpdatingWithInvalidPageZipContentException
public void updatePageContent(long pageId,
byte[] content)
throws UpdateException,
UpdatingWithInvalidPageTokenException,
UpdatingWithInvalidPageZipContentException
public Properties getPageProperties(byte[] content, boolean checkIfItAlreadyExists) throws InvalidPageTokenException, AlreadyExistsException, InvalidPageZipMissingPropertiesException, InvalidPageZipMissingIndexException, InvalidPageZipInconsistentException, InvalidPageZipMissingAPropertyException
protected SPageUpdateBuilder getPageUpdateBuilder()
protected SPage constructPage(PageCreator pageCreator, long userId)
protected SPageUpdateContentBuilder getPageUpdateContentBuilder()
protected SPage constructPage(PageUpdater pageUpdater, long userId)
public Page getPageByNameAndProcessDefinition(String name, long processDefinitionId) throws PageNotFoundException
PageNotFoundExceptionCopyright © 2017 Bonitasoft S.A.. All rights reserved.