public class PageAPIDelegate
extends java.lang.Object
| Constructor and Description |
|---|
PageAPIDelegate(TenantServiceAccessor tenantAccessor,
long userIdFromSession) |
| Modifier and Type | Method and Description |
|---|---|
protected SPage |
constructPage(org.bonitasoft.engine.page.PageCreator pageCreator,
long userId) |
protected SPage |
constructPage(org.bonitasoft.engine.page.PageUpdater pageUpdater,
long userId) |
protected org.bonitasoft.engine.page.Page |
convertToPage(SPage addPage) |
org.bonitasoft.engine.page.Page |
createPage(org.bonitasoft.engine.page.PageCreator pageCreator,
byte[] content) |
org.bonitasoft.engine.page.Page |
createPage(java.lang.String contentName,
byte[] content) |
void |
deletePage(long pageId) |
void |
deletePages(java.util.List<java.lang.Long> pageIds) |
org.bonitasoft.engine.page.Page |
getPage(long pageId) |
org.bonitasoft.engine.page.Page |
getPageByName(java.lang.String name) |
org.bonitasoft.engine.page.Page |
getPageByNameAndProcessDefinition(java.lang.String name,
long processDefinitionId) |
byte[] |
getPageContent(long pageId) |
java.util.Properties |
getPageProperties(byte[] content,
boolean checkIfItAlreadyExists) |
protected SPageUpdateBuilder |
getPageUpdateBuilder() |
protected SPageUpdateContentBuilder |
getPageUpdateContentBuilder() |
protected SearchPages |
getSearchPages(org.bonitasoft.engine.search.SearchOptions searchOptions) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.page.Page> |
searchPages(org.bonitasoft.engine.search.SearchOptions searchOptions) |
org.bonitasoft.engine.page.Page |
updatePage(long pageId,
org.bonitasoft.engine.page.PageUpdater pageUpdater) |
void |
updatePageContent(long pageId,
byte[] content) |
public PageAPIDelegate(TenantServiceAccessor tenantAccessor, long userIdFromSession)
public org.bonitasoft.engine.page.Page getPage(long pageId)
throws org.bonitasoft.engine.page.PageNotFoundException
org.bonitasoft.engine.page.PageNotFoundExceptionpublic byte[] getPageContent(long pageId)
throws org.bonitasoft.engine.page.PageNotFoundException
org.bonitasoft.engine.page.PageNotFoundExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.page.Page> searchPages(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
org.bonitasoft.engine.exception.SearchExceptionprotected SearchPages getSearchPages(org.bonitasoft.engine.search.SearchOptions searchOptions)
public org.bonitasoft.engine.page.Page createPage(org.bonitasoft.engine.page.PageCreator pageCreator,
byte[] content)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.InvalidPageTokenException,
org.bonitasoft.engine.exception.InvalidPageZipContentException
org.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.InvalidPageZipContentExceptionpublic org.bonitasoft.engine.page.Page createPage(java.lang.String contentName,
byte[] content)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.InvalidPageTokenException,
org.bonitasoft.engine.exception.InvalidPageZipContentException
org.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.InvalidPageZipContentExceptionpublic void deletePage(long pageId)
throws org.bonitasoft.engine.exception.DeletionException
org.bonitasoft.engine.exception.DeletionExceptionpublic void deletePages(java.util.List<java.lang.Long> pageIds)
throws org.bonitasoft.engine.exception.DeletionException
org.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.page.Page getPageByName(java.lang.String name)
throws org.bonitasoft.engine.page.PageNotFoundException
org.bonitasoft.engine.page.PageNotFoundExceptionpublic org.bonitasoft.engine.page.Page updatePage(long pageId,
org.bonitasoft.engine.page.PageUpdater pageUpdater)
throws org.bonitasoft.engine.exception.UpdateException,
org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenException,
org.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentException
org.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentExceptionpublic void updatePageContent(long pageId,
byte[] content)
throws org.bonitasoft.engine.exception.UpdateException,
org.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenException,
org.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentException
org.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentExceptionpublic java.util.Properties getPageProperties(byte[] content,
boolean checkIfItAlreadyExists)
throws org.bonitasoft.engine.exception.InvalidPageTokenException,
org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.InvalidPageZipMissingPropertiesException,
org.bonitasoft.engine.exception.InvalidPageZipMissingIndexException,
org.bonitasoft.engine.exception.InvalidPageZipInconsistentException,
org.bonitasoft.engine.exception.InvalidPageZipMissingAPropertyException
org.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingPropertiesExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingIndexExceptionorg.bonitasoft.engine.exception.InvalidPageZipInconsistentExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingAPropertyExceptionprotected SPageUpdateBuilder getPageUpdateBuilder()
protected org.bonitasoft.engine.page.Page convertToPage(SPage addPage)
protected SPage constructPage(org.bonitasoft.engine.page.PageCreator pageCreator, long userId)
protected SPageUpdateContentBuilder getPageUpdateContentBuilder()
protected SPage constructPage(org.bonitasoft.engine.page.PageUpdater pageUpdater, long userId)
public org.bonitasoft.engine.page.Page getPageByNameAndProcessDefinition(java.lang.String name,
long processDefinitionId)
throws org.bonitasoft.engine.page.PageNotFoundException
org.bonitasoft.engine.page.PageNotFoundException