public class PageAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.PageAPI
| Constructor and Description |
|---|
PageAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected PageAPIDelegate |
getPageAPIDelegate() |
org.bonitasoft.engine.page.Page |
getPageByName(java.lang.String name) |
org.bonitasoft.engine.page.Page |
getPageByNameAndProcessDefinitionId(java.lang.String name,
long processDefinitionId) |
byte[] |
getPageContent(long pageId) |
java.util.Properties |
getPageProperties(byte[] content,
boolean checkIfItAlreadyExists) |
protected TenantServiceAccessor |
getTenantAccessor() |
protected long |
getUserIdFromSessionInfos() |
org.bonitasoft.engine.page.PageURL |
resolvePageOrURL(java.lang.String key,
java.util.Map<java.lang.String,java.io.Serializable> context,
boolean executeAuthorizationRules) |
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) |
protected TenantServiceAccessor getTenantAccessor()
protected PageAPIDelegate getPageAPIDelegate()
public org.bonitasoft.engine.page.Page getPage(long pageId)
throws org.bonitasoft.engine.page.PageNotFoundException
getPage in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.page.PageNotFoundExceptionpublic byte[] getPageContent(long pageId)
throws org.bonitasoft.engine.page.PageNotFoundException
getPageContent in interface org.bonitasoft.engine.api.PageAPIorg.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
searchPages in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
createPage in interface org.bonitasoft.engine.api.PageAPIorg.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
createPage in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.InvalidPageZipContentExceptionprotected long getUserIdFromSessionInfos()
public void deletePage(long pageId)
throws org.bonitasoft.engine.exception.DeletionException
deletePage in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deletePages(java.util.List<java.lang.Long> pageIds)
throws org.bonitasoft.engine.exception.DeletionException
deletePages in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.page.Page getPageByName(java.lang.String name)
throws org.bonitasoft.engine.page.PageNotFoundException
getPageByName in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.page.PageNotFoundExceptionpublic org.bonitasoft.engine.page.Page getPageByNameAndProcessDefinitionId(java.lang.String name,
long processDefinitionId)
throws org.bonitasoft.engine.page.PageNotFoundException
getPageByNameAndProcessDefinitionId in interface org.bonitasoft.engine.api.PageAPIorg.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
updatePage in interface org.bonitasoft.engine.api.PageAPIorg.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
updatePageContent in interface org.bonitasoft.engine.api.PageAPIorg.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
getPageProperties in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingPropertiesExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingIndexExceptionorg.bonitasoft.engine.exception.InvalidPageZipInconsistentExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingAPropertyExceptionpublic org.bonitasoft.engine.page.PageURL resolvePageOrURL(java.lang.String key,
java.util.Map<java.lang.String,java.io.Serializable> context,
boolean executeAuthorizationRules)
throws org.bonitasoft.engine.exception.NotFoundException,
org.bonitasoft.engine.exception.ExecutionException,
org.bonitasoft.engine.exception.UnauthorizedAccessException
resolvePageOrURL in interface org.bonitasoft.engine.api.PageAPIorg.bonitasoft.engine.exception.NotFoundExceptionorg.bonitasoft.engine.exception.ExecutionExceptionorg.bonitasoft.engine.exception.UnauthorizedAccessException