public interface PageService
extends org.bonitasoft.engine.commons.TenantLifecycleService
| Modifier and Type | Field and Description |
|---|---|
static String |
PAGE |
static String |
PROPERTIES_CONTENT_TYPE |
static String |
PROPERTIES_DESCRIPTION |
static String |
PROPERTIES_DISPLAY_NAME |
static String |
PROPERTIES_FILE_NAME |
static String |
PROPERTIES_NAME |
| Modifier and Type | Method and Description |
|---|---|
SPage |
addPage(byte[] content,
String contentName,
long userId)
add a page using the zip in parameters, it get all informations from the page.properties file contain inside the zip
|
SPage |
addPage(SPage page,
byte[] content)
add a page using the zip in parameters and the given properties
|
void |
deletePage(long pageId) |
long |
getNumberOfPages(QueryOptions options) |
SPage |
getPage(long pageId) |
SPage |
getPageByName(String pageName) |
SPage |
getPageByNameAndProcessDefinitionId(String name,
long processDefinitionId)
get a page attached to a process
|
List<SPage> |
getPageByProcessDefinitionId(long processDefinitionId,
int fromIndex,
int numberOfResults)
get a list of page attached to a process
|
byte[] |
getPageContent(long pageId) |
Properties |
readPageZip(byte[] content)
Read the content of a page in a zip
|
List<SPage> |
searchPages(QueryOptions options) |
void |
start() |
SPage |
updatePage(long pageId,
EntityUpdateDescriptor updateDescriptor) |
void |
updatePageContent(long pageId,
byte[] content,
String contentName) |
static final String PROPERTIES_FILE_NAME
static final String PROPERTIES_DISPLAY_NAME
static final String PROPERTIES_DESCRIPTION
static final String PROPERTIES_CONTENT_TYPE
static final String PROPERTIES_NAME
static final String PAGE
SPage addPage(SPage page, byte[] content) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, SInvalidPageZipException, SInvalidPageTokenException
page - content - org.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionSPage getPage(long pageId) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionSPage getPageByName(String pageName) throws SBonitaReadException
SBonitaReadExceptionProperties readPageZip(byte[] content) throws SInvalidPageZipMissingIndexException, SInvalidPageZipMissingAPropertyException, SInvalidPageZipInconsistentException, SInvalidPageZipMissingPropertiesException, SInvalidPageTokenException
content - the page contentSInvalidPageZipMissingIndexException - if the page is missing an index.html or Index.groovySInvalidPageZipMissingAPropertyException - if the page is missing mandatory field in the page.propertiesSInvalidPageZipInconsistentException - if the zip is not a valid zip file or unreadableSInvalidPageZipMissingPropertiesExceptionSInvalidPageTokenExceptionlong getNumberOfPages(QueryOptions options) throws SBonitaReadException
SBonitaReadExceptionvoid deletePage(long pageId)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException,
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
org.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionbyte[] getPageContent(long pageId)
throws SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionList<SPage> searchPages(QueryOptions options) throws SBonitaReadException
SBonitaReadExceptionSPage updatePage(long pageId, EntityUpdateDescriptor updateDescriptor) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, SInvalidPageTokenException
org.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionSInvalidPageTokenExceptionvoid updatePageContent(long pageId,
byte[] content,
String contentName)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionvoid start()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
start in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionSPage addPage(byte[] content, String contentName, long userId) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, SInvalidPageZipException, SInvalidPageTokenException
content - userId - org.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionSPage getPageByNameAndProcessDefinitionId(String name, long processDefinitionId) throws SBonitaReadException
name - processDefinitionId - SBonitaReadExceptionList<SPage> getPageByProcessDefinitionId(long processDefinitionId, int fromIndex, int numberOfResults) throws SBonitaReadException
processDefinitionId - fromIndex - numberOfResults - SBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.