Class PageAPIDelegate
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.page.PageAPIDelegate
-
public class PageAPIDelegate extends java.lang.Object- Author:
- Emmanuel Duchastenier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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(java.lang.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(java.util.List<java.lang.Long> pageIds)static PageAPIDelegategetInstance()org.bonitasoft.engine.page.PagegetPage(long pageId)org.bonitasoft.engine.page.PagegetPageByName(java.lang.String name)org.bonitasoft.engine.page.PagegetPageByNameAndProcessDefinition(java.lang.String name, long processDefinitionId)byte[]getPageContent(long pageId)java.util.PropertiesgetPageProperties(byte[] content, boolean checkIfItAlreadyExists)protected SPageUpdateBuildergetPageUpdateBuilder()protected 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 Detail
-
getInstance
public static PageAPIDelegate 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
protected SearchPages getSearchPages(org.bonitasoft.engine.search.SearchOptions searchOptions)
-
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(java.lang.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(java.util.List<java.lang.Long> pageIds) throws org.bonitasoft.engine.exception.DeletionException- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getPageByName
public org.bonitasoft.engine.page.Page getPageByName(java.lang.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, org.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenException, org.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentException- Throws:
org.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageTokenExceptionorg.bonitasoft.engine.exception.UpdatingWithInvalidPageZipContentException
-
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 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- 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
protected SPageUpdateBuilder getPageUpdateBuilder()
-
convertToPage
protected org.bonitasoft.engine.page.Page convertToPage(SPage addPage)
-
constructPage
protected SPage constructPage(org.bonitasoft.engine.page.PageCreator pageCreator, long userId)
-
constructPage
protected SPage constructPage(org.bonitasoft.engine.page.PageUpdater pageUpdater, long userId)
-
getPageByNameAndProcessDefinition
public org.bonitasoft.engine.page.Page getPageByNameAndProcessDefinition(java.lang.String name, long processDefinitionId) throws org.bonitasoft.engine.page.PageNotFoundException- Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
-