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
public class PageAPIImpl extends java.lang.Object implements org.bonitasoft.engine.api.PageAPI
-
-
Constructor Summary
Constructors Constructor Description PageAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bonitasoft.engine.page.PagecreatePage(java.lang.String contentName, byte[] content)org.bonitasoft.engine.page.PagecreatePage(org.bonitasoft.engine.page.PageCreator pageCreator, byte[] content)voiddeletePage(long pageId)voiddeletePages(java.util.List<java.lang.Long> pageIds)org.bonitasoft.engine.page.PagegetPage(long pageId)protected PageAPIDelegategetPageAPIDelegate()org.bonitasoft.engine.page.PagegetPageByName(java.lang.String name)org.bonitasoft.engine.page.PagegetPageByNameAndProcessDefinitionId(java.lang.String name, long processDefinitionId)byte[]getPageContent(long pageId)java.util.PropertiesgetPageProperties(byte[] content, boolean checkIfItAlreadyExists)protected TenantServiceAccessorgetTenantAccessor()org.bonitasoft.engine.page.PageURLresolvePageOrURL(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.PageupdatePage(long pageId, org.bonitasoft.engine.page.PageUpdater pageUpdater)voidupdatePageContent(long pageId, byte[] content)
-
-
-
Method Detail
-
getTenantAccessor
protected TenantServiceAccessor getTenantAccessor()
-
getPageAPIDelegate
protected PageAPIDelegate 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(java.lang.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(java.util.List<java.lang.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(java.lang.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(java.lang.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 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- 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(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- Specified by:
resolvePageOrURLin interfaceorg.bonitasoft.engine.api.PageAPI- Throws:
org.bonitasoft.engine.exception.NotFoundExceptionorg.bonitasoft.engine.exception.ExecutionExceptionorg.bonitasoft.engine.exception.UnauthorizedAccessException
-
-