public class PageServiceImpl extends Object implements PageService
| Modifier and Type | Field and Description |
|---|---|
static String |
INDEX_GROOVY |
static String |
INDEX_HTML |
static String |
PAGE_CONTENT_DOES_NOT_CONTAINS_A_INDEX_GROOVY_OR_INDEX_HTML_FILE |
static String |
PAGE_TOKEN_PREFIX |
static String |
RESOURCES_INDEX_HTML |
PAGE, PROPERTIES_CONTENT_TYPE, PROPERTIES_DESCRIPTION, PROPERTIES_DISPLAY_NAME, PROPERTIES_FILE_NAME, PROPERTIES_NAME| Constructor and Description |
|---|
PageServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
ProfileService profileService) |
| Modifier and Type | Method and Description |
|---|---|
SPage |
addPage(byte[] content,
String contentName,
long userId) |
SPage |
addPage(SPage page,
byte[] content) |
protected void |
checkPageDuplicate(SPage sPage,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor entityUpdateDescriptor,
SPageLogBuilder logBuilder,
String logMethodName) |
void |
deletePage(long pageId) |
long |
getNumberOfPages(org.bonitasoft.engine.persistence.QueryOptions options) |
SPage |
getPage(long pageId) |
SPage |
getPageByName(String pageName) |
SPage |
getPageByNameAndProcessDefinitionId(String name,
long processDefinitionId) |
List<SPage> |
getPageByProcessDefinitionId(long processDefinitionId,
int fromIndex,
int numberOfResults) |
byte[] |
getPageContent(long pageId) |
List<PageServiceListener> |
getPageServiceListeners() |
List<String> |
getProvidedPages() |
void |
pause() |
Properties |
readPageZip(byte[] content) |
void |
resume() |
List<SPage> |
searchPages(org.bonitasoft.engine.persistence.QueryOptions options) |
void |
setPageServiceListeners(List<PageServiceListener> pageServiceListeners) |
void |
setProvidedPages(List<String> providedPages) |
void |
start() |
void |
stop() |
SPage |
updatePage(long pageId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor entityUpdateDescriptor) |
void |
updatePageContent(long pageId,
byte[] content,
String contentName) |
protected void |
updatePageNameInProfileEntry(org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor entityUpdateDescriptor,
String oldPageName) |
public static final String PAGE_CONTENT_DOES_NOT_CONTAINS_A_INDEX_GROOVY_OR_INDEX_HTML_FILE
public static final String PAGE_TOKEN_PREFIX
public static final String INDEX_GROOVY
public static final String INDEX_HTML
public static final String RESOURCES_INDEX_HTML
public PageServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
ProfileService profileService)
public SPage addPage(SPage page, byte[] content) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, SInvalidPageZipException, SInvalidPageTokenException
addPage in interface PageServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionpublic SPage addPage(byte[] content, String contentName, long userId) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, SInvalidPageZipException, SInvalidPageTokenException
addPage in interface PageServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionpublic SPage getPageByNameAndProcessDefinitionId(String name, long processDefinitionId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getPageByNameAndProcessDefinitionId in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SPage> getPageByProcessDefinitionId(long processDefinitionId, int fromIndex, int numberOfResults) throws org.bonitasoft.engine.persistence.SBonitaReadException
getPageByProcessDefinitionId in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic Properties readPageZip(byte[] content) throws SInvalidPageZipMissingIndexException, SInvalidPageZipMissingAPropertyException, SInvalidPageZipInconsistentException, SInvalidPageZipMissingPropertiesException, SInvalidPageTokenException
public SPage getPage(long pageId) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getPage in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SPage getPageByName(String pageName) throws org.bonitasoft.engine.persistence.SBonitaReadException
getPageByName in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfPages(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfPages in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SPage> searchPages(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchPages in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deletePage(long pageId)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException,
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
deletePage in interface PageServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic byte[] getPageContent(long pageId)
throws org.bonitasoft.engine.persistence.SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getPageContent in interface PageServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SPage updatePage(long pageId, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor entityUpdateDescriptor) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, SInvalidPageTokenException
updatePage in interface PageServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionSInvalidPageTokenExceptionprotected void updatePageNameInProfileEntry(org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor entityUpdateDescriptor,
String oldPageName)
throws SInvalidPageTokenException,
org.bonitasoft.engine.persistence.SBonitaReadException,
org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryUpdateException
SInvalidPageTokenExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryUpdateExceptionprotected void checkPageDuplicate(SPage sPage, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor entityUpdateDescriptor, SPageLogBuilder logBuilder, String logMethodName) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException
org.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionpublic void updatePageContent(long pageId,
byte[] content,
String contentName)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException,
SInvalidPageZipException,
SInvalidPageTokenException,
org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException
updatePageContent in interface PageServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionSInvalidPageZipExceptionSInvalidPageTokenExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionpublic void start()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
start in interface org.bonitasoft.engine.commons.LifecycleServicestart in interface PageServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void stop()
stop in interface org.bonitasoft.engine.commons.LifecycleServicepublic void pause()
pause in interface org.bonitasoft.engine.commons.LifecycleServicepublic void resume()
resume in interface org.bonitasoft.engine.commons.LifecycleServicepublic List<PageServiceListener> getPageServiceListeners()
public void setPageServiceListeners(List<PageServiceListener> pageServiceListeners)
Copyright © 2015 Bonitasoft S.A.. All rights reserved.