public interface PageService extends TenantLifecycleService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PAGE |
static java.lang.String |
PROPERTIES_CONTENT_TYPE |
static java.lang.String |
PROPERTIES_DESCRIPTION |
static java.lang.String |
PROPERTIES_DISPLAY_NAME |
static java.lang.String |
PROPERTIES_FILE_NAME |
static java.lang.String |
PROPERTIES_NAME |
| Modifier and Type | Method and Description |
|---|---|
SPage |
addPage(byte[] content,
java.lang.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(java.lang.String pageName) |
SPage |
getPageByNameAndProcessDefinitionId(java.lang.String name,
long processDefinitionId)
get a page attached to a process
|
java.util.List<SPage> |
getPageByProcessDefinitionId(long processDefinitionId,
int fromIndex,
int numberOfResults)
get a list of page attached to a process
|
byte[] |
getPageContent(long pageId) |
java.util.Properties |
readPageZip(byte[] content)
Read the content of a page in a zip
|
java.util.List<SPage> |
searchPages(QueryOptions options) |
void |
start()
Start the service
|
SPage |
updatePage(long pageId,
EntityUpdateDescriptor updateDescriptor) |
void |
updatePageContent(long pageId,
byte[] content,
java.lang.String contentName) |
pause, resume, stopstatic final java.lang.String PROPERTIES_FILE_NAME
static final java.lang.String PROPERTIES_DISPLAY_NAME
static final java.lang.String PROPERTIES_DESCRIPTION
static final java.lang.String PROPERTIES_CONTENT_TYPE
static final java.lang.String PROPERTIES_NAME
static final java.lang.String PAGE
SPage addPage(SPage page, byte[] content) throws SObjectCreationException, SObjectAlreadyExistsException, SInvalidPageZipException, SInvalidPageTokenException
page - content - SObjectCreationExceptionSObjectAlreadyExistsExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionSPage getPage(long pageId) throws SBonitaReadException, SObjectNotFoundException
SPage getPageByName(java.lang.String pageName) throws SBonitaReadException
SBonitaReadExceptionjava.util.Properties 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 SObjectModificationException,
SObjectNotFoundException
byte[] getPageContent(long pageId)
throws SBonitaReadException,
SObjectNotFoundException
java.util.List<SPage> searchPages(QueryOptions options) throws SBonitaReadException
SBonitaReadExceptionSPage updatePage(long pageId, EntityUpdateDescriptor updateDescriptor) throws SObjectModificationException, SObjectAlreadyExistsException, SInvalidPageTokenException
void updatePageContent(long pageId,
byte[] content,
java.lang.String contentName)
throws SBonitaException
SBonitaExceptionvoid start()
throws SBonitaException
LifecycleServicestart in interface LifecycleServiceSBonitaExceptionSPage addPage(byte[] content, java.lang.String contentName, long userId) throws SObjectCreationException, SObjectAlreadyExistsException, SInvalidPageZipException, SInvalidPageTokenException
content - userId - SObjectCreationExceptionSObjectAlreadyExistsExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionSPage getPageByNameAndProcessDefinitionId(java.lang.String name, long processDefinitionId) throws SBonitaReadException
name - processDefinitionId - SBonitaReadExceptionjava.util.List<SPage> getPageByProcessDefinitionId(long processDefinitionId, int fromIndex, int numberOfResults) throws SBonitaReadException
processDefinitionId - fromIndex - numberOfResults - SBonitaReadException