Class PageAPIDelegate
java.lang.Object
org.bonitasoft.engine.api.impl.page.PageAPIDelegate
- Author:
- Emmanuel Duchastenier
-
Method Summary
Modifier and TypeMethodDescriptionprotected SPageconstructPage(org.bonitasoft.engine.page.PageCreator pageCreator, long userId) protected SPageconstructPage(org.bonitasoft.engine.page.PageUpdater pageUpdater, long userId) protected org.bonitasoft.engine.page.PageconvertToPage(SPage addPage) org.bonitasoft.engine.page.PagecreatePage(String contentName, byte[] content, long userIdFromSession) org.bonitasoft.engine.page.PagecreatePage(org.bonitasoft.engine.page.PageCreator pageCreator, byte[] content, long userIdFromSession) voiddeletePage(long pageId) voiddeletePages(List<Long> pageIds) static PageAPIDelegateorg.bonitasoft.engine.page.PagegetPage(long pageId) org.bonitasoft.engine.page.PagegetPageByName(String name) org.bonitasoft.engine.page.PagegetPageByNameAndProcessDefinition(String name, long processDefinitionId) byte[]getPageContent(long pageId) getPageProperties(byte[] content, boolean checkIfItAlreadyExists) protected SPageUpdateBuilderprotected SearchPagesgetSearchPages(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.PageupdatePage(long pageId, org.bonitasoft.engine.page.PageUpdater pageUpdater, long userIdFromSession) voidupdatePageContent(long pageId, byte[] content, long userIdFromSession)
-
Method Details
-
getInstance
-
getPage
public org.bonitasoft.engine.page.Page getPage(long pageId) throws org.bonitasoft.engine.page.PageNotFoundException - Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
getPageContent
public byte[] getPageContent(long pageId) throws org.bonitasoft.engine.page.PageNotFoundException - Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
searchPages
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.page.Page> searchPages(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException - Throws:
org.bonitasoft.engine.exception.SearchException
-
getSearchPages
-
createPage
public org.bonitasoft.engine.page.Page createPage(org.bonitasoft.engine.page.PageCreator pageCreator, byte[] content, long userIdFromSession) throws org.bonitasoft.engine.exception.AlreadyExistsException, org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.exception.InvalidPageTokenException, org.bonitasoft.engine.exception.InvalidPageZipContentException - Throws:
org.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.InvalidPageZipContentException
-
createPage
public org.bonitasoft.engine.page.Page createPage(String contentName, byte[] content, long userIdFromSession) throws org.bonitasoft.engine.exception.AlreadyExistsException, org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.exception.InvalidPageTokenException, org.bonitasoft.engine.exception.InvalidPageZipContentException - Throws:
org.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.InvalidPageZipContentException
-
deletePage
public void deletePage(long pageId) throws org.bonitasoft.engine.exception.DeletionException - Throws:
org.bonitasoft.engine.exception.DeletionException
-
deletePages
public void deletePages(List<Long> pageIds) throws org.bonitasoft.engine.exception.DeletionException - Throws:
org.bonitasoft.engine.exception.DeletionException
-
getPageByName
public org.bonitasoft.engine.page.Page getPageByName(String name) throws org.bonitasoft.engine.page.PageNotFoundException - Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
updatePage
public org.bonitasoft.engine.page.Page updatePage(long pageId, org.bonitasoft.engine.page.PageUpdater pageUpdater, long userIdFromSession) throws org.bonitasoft.engine.exception.UpdateException, org.bonitasoft.engine.exception.AlreadyExistsException - Throws:
org.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
updatePageContent
public void updatePageContent(long pageId, byte[] content, long userIdFromSession) throws org.bonitasoft.engine.exception.UpdateException, org.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenException, org.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentException - Throws:
org.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentException
-
getPageProperties
public 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 - Throws:
org.bonitasoft.engine.exception.InvalidPageTokenExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingPropertiesExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingIndexExceptionorg.bonitasoft.engine.exception.InvalidPageZipInconsistentExceptionorg.bonitasoft.engine.exception.InvalidPageZipMissingAPropertyException
-
getPageUpdateBuilder
-
convertToPage
-
constructPage
-
constructPage
-
getPageByNameAndProcessDefinition
public org.bonitasoft.engine.page.Page getPageByNameAndProcessDefinition(String name, long processDefinitionId) throws org.bonitasoft.engine.page.PageNotFoundException - Throws:
org.bonitasoft.engine.page.PageNotFoundException
-