Package org.bonitasoft.engine.api.impl
Class PageAPIImpl
java.lang.Object
org.bonitasoft.engine.api.impl.PageAPIImpl
- All Implemented Interfaces:
org.bonitasoft.engine.api.PageAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bonitasoft.engine.page.PagecreatePage(String contentName, byte[] content) org.bonitasoft.engine.page.PagecreatePage(org.bonitasoft.engine.page.PageCreator pageCreator, byte[] content) voiddeletePage(long pageId) voiddeletePages(List<Long> pageIds) org.bonitasoft.engine.page.PagegetPage(long pageId) protected PageAPIDelegateorg.bonitasoft.engine.page.PagegetPageByName(String name) org.bonitasoft.engine.page.PagegetPageByNameAndProcessDefinitionId(String name, long processDefinitionId) byte[]getPageContent(long pageId) getPageProperties(byte[] content, boolean checkIfItAlreadyExists) protected ServiceAccessororg.bonitasoft.engine.page.PageURLresolvePageOrURL(String key, Map<String, 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.PageupdatePage(long pageId, org.bonitasoft.engine.page.PageUpdater pageUpdater) voidupdatePageContent(long pageId, byte[] content)
-
Constructor Details
-
PageAPIImpl
public PageAPIImpl()
-
-
Method Details
-
getServiceAccessor
-
getPageAPIDelegate
-
getPage
public org.bonitasoft.engine.page.Page getPage(long pageId) throws org.bonitasoft.engine.page.PageNotFoundException - Specified by:
getPagein interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
getPageContent
public byte[] getPageContent(long pageId) throws org.bonitasoft.engine.page.PageNotFoundException - Specified by:
getPageContentin interfaceorg.bonitasoft.engine.api.PageAPI- 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 - Specified by:
searchPagesin interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
createPage
public org.bonitasoft.engine.page.Page createPage(org.bonitasoft.engine.page.PageCreator pageCreator, byte[] content) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createPagein interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createPage
public org.bonitasoft.engine.page.Page createPage(String contentName, byte[] content) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createPagein interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
deletePage
public void deletePage(long pageId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deletePagein interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deletePages
public void deletePages(List<Long> pageIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deletePagesin interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getPageByName
public org.bonitasoft.engine.page.Page getPageByName(String name) throws org.bonitasoft.engine.page.PageNotFoundException - Specified by:
getPageByNamein interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
getPageByNameAndProcessDefinitionId
public org.bonitasoft.engine.page.Page getPageByNameAndProcessDefinitionId(String name, long processDefinitionId) throws org.bonitasoft.engine.page.PageNotFoundException - Specified by:
getPageByNameAndProcessDefinitionIdin interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.page.PageNotFoundException
-
updatePage
public 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 - Specified by:
updatePagein interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
updatePageContent
public void updatePageContent(long pageId, byte[] content) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updatePageContentin interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
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 - Specified by:
getPagePropertiesin interfaceorg.bonitasoft.engine.api.PageAPI- 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
-
resolvePageOrURL
public org.bonitasoft.engine.page.PageURL resolvePageOrURL(String key, Map<String, Serializable> context, boolean executeAuthorizationRules) throws org.bonitasoft.engine.exception.NotFoundException, org.bonitasoft.engine.exception.ExecutionException, org.bonitasoft.engine.exception.UnauthorizedAccessException- Specified by:
resolvePageOrURLin interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.NotFoundExceptionorg.bonitasoft.engine.exception.ExecutionExceptionorg.bonitasoft.engine.exception.UnauthorizedAccessException
-