public class ApplicationServiceImpl extends Object implements ApplicationService
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RESULTS |
APPLICATION, APPLICATION_MENU, APPLICATION_PAGE, DEFAULT_LAYOUT_NAME, DEFAULT_THEME_NAME| Constructor and Description |
|---|
ApplicationServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService) |
| Modifier and Type | Method and Description |
|---|---|
SApplication |
createApplication(SApplication application) |
SApplicationMenu |
createApplicationMenu(SApplicationMenu applicationMenu) |
SApplicationPage |
createApplicationPage(SApplicationPage applicationPage) |
void |
deleteApplication(long applicationId) |
SApplicationMenu |
deleteApplicationMenu(long applicationMenuId) |
void |
deleteApplicationMenu(SApplicationMenu applicationMenu) |
SApplicationPage |
deleteApplicationPage(long applicationPageId) |
void |
deleteApplicationPage(SApplicationPage applicationPage) |
protected Integer |
executeGetLastUsedIndexQuery(Long parentMenuId) |
List<String> |
getAllPagesForProfile(long profileId) |
SApplication |
getApplication(long applicationId) |
SApplication |
getApplicationByToken(String token) |
SApplicationPage |
getApplicationHomePage(long applicationId) |
SApplicationMenu |
getApplicationMenu(long applicationMenuId) |
SApplicationPage |
getApplicationPage(long applicationPageId) |
SApplicationPage |
getApplicationPage(long applicationId,
String applicationPageToken) |
SApplicationPage |
getApplicationPage(String applicationToken,
String applicationPageToken) |
int |
getLastUsedIndex(Long parentMenuId) |
int |
getNextAvailableIndex(Long parentMenuId) |
long |
getNumberOfApplicationMenus(org.bonitasoft.engine.persistence.QueryOptions options) |
long |
getNumberOfApplicationPages(org.bonitasoft.engine.persistence.QueryOptions options) |
long |
getNumberOfApplications(org.bonitasoft.engine.persistence.QueryOptions options) |
boolean |
hasApplicationWithToken(String name) |
List<SApplicationMenu> |
searchApplicationMenus(org.bonitasoft.engine.persistence.QueryOptions options) |
List<SApplicationPage> |
searchApplicationPages(org.bonitasoft.engine.persistence.QueryOptions options) |
List<SApplication> |
searchApplications(org.bonitasoft.engine.persistence.QueryOptions options) |
SApplication |
updateApplication(long applicationId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) |
SApplication |
updateApplication(SApplication application,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) |
SApplicationMenu |
updateApplicationMenu(long applicationMenuId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) |
SApplicationMenu |
updateApplicationMenu(SApplicationMenu applicationMenu,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor,
boolean organizeIndexes) |
public static final int MAX_RESULTS
public ApplicationServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService)
public SApplication createApplication(SApplication application) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException
createApplication in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionpublic boolean hasApplicationWithToken(String name) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SApplication getApplicationByToken(String token) throws org.bonitasoft.engine.persistence.SBonitaReadException
getApplicationByToken in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SApplication getApplication(long applicationId) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplication in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic void deleteApplication(long applicationId)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException,
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
deleteApplication in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplication updateApplication(long applicationId, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
updateApplication in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplication updateApplication(SApplication application, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException
updateApplication in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionpublic long getNumberOfApplications(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfApplications in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SApplication> searchApplications(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchApplications in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SApplicationPage createApplicationPage(SApplicationPage applicationPage) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException
createApplicationPage in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionpublic SApplicationPage getApplicationPage(long applicationId, String applicationPageToken) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SApplicationPage getApplicationPage(String applicationToken, String applicationPageToken) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationPage in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplicationPage getApplicationPage(long applicationPageId) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationPage in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplicationPage deleteApplicationPage(long applicationPageId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
deleteApplicationPage in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic void deleteApplicationPage(SApplicationPage applicationPage) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
deleteApplicationPage in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic SApplicationPage getApplicationHomePage(long applicationId) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationHomePage in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic long getNumberOfApplicationPages(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfApplicationPages in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SApplicationPage> searchApplicationPages(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchApplicationPages in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SApplicationMenu createApplicationMenu(SApplicationMenu applicationMenu) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
createApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic SApplicationMenu updateApplicationMenu(long applicationMenuId, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
updateApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplicationMenu updateApplicationMenu(SApplicationMenu applicationMenu, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor, boolean organizeIndexes) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
updateApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic SApplicationMenu getApplicationMenu(long applicationMenuId) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplicationMenu deleteApplicationMenu(long applicationMenuId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
deleteApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic void deleteApplicationMenu(SApplicationMenu applicationMenu) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
deleteApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic long getNumberOfApplicationMenus(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfApplicationMenus in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SApplicationMenu> searchApplicationMenus(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchApplicationMenus in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic int getNextAvailableIndex(Long parentMenuId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getNextAvailableIndex in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<String> getAllPagesForProfile(long profileId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getAllPagesForProfile in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionprotected Integer executeGetLastUsedIndexQuery(Long parentMenuId) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic int getLastUsedIndex(Long parentMenuId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getLastUsedIndex in interface ApplicationServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.