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(Recorder recorder,
ReadPersistenceService persistenceService,
QueriableLoggerService queriableLoggerService) |
public static final int MAX_RESULTS
public ApplicationServiceImpl(Recorder recorder, ReadPersistenceService persistenceService, 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 SBonitaReadException
SBonitaReadExceptionpublic SApplication getApplicationByToken(String token) throws SBonitaReadException
getApplicationByToken in interface ApplicationServiceSBonitaReadExceptionpublic SApplication getApplication(long applicationId) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplication in interface ApplicationServiceSBonitaReadExceptionorg.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, 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, 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(QueryOptions options) throws SBonitaReadException
getNumberOfApplications in interface ApplicationServiceSBonitaReadExceptionpublic List<SApplication> searchApplications(QueryOptions options) throws SBonitaReadException
searchApplications in interface ApplicationServiceSBonitaReadExceptionpublic 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 SBonitaReadException
SBonitaReadExceptionpublic SApplicationPage getApplicationPage(String applicationToken, String applicationPageToken) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationPage in interface ApplicationServiceSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SApplicationPage getApplicationPage(long applicationPageId) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationPage in interface ApplicationServiceSBonitaReadExceptionorg.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 SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationHomePage in interface ApplicationServiceSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic long getNumberOfApplicationPages(QueryOptions options) throws SBonitaReadException
getNumberOfApplicationPages in interface ApplicationServiceSBonitaReadExceptionpublic List<SApplicationPage> searchApplicationPages(QueryOptions options) throws SBonitaReadException
searchApplicationPages in interface ApplicationServiceSBonitaReadExceptionpublic SApplicationMenu createApplicationMenu(SApplicationMenu applicationMenu) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
createApplicationMenu in interface ApplicationServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic SApplicationMenu updateApplicationMenu(long applicationMenuId, 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, 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 SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getApplicationMenu in interface ApplicationServiceSBonitaReadExceptionorg.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(QueryOptions options) throws SBonitaReadException
getNumberOfApplicationMenus in interface ApplicationServiceSBonitaReadExceptionpublic List<SApplicationMenu> searchApplicationMenus(QueryOptions options) throws SBonitaReadException
searchApplicationMenus in interface ApplicationServiceSBonitaReadExceptionpublic int getNextAvailableIndex(Long parentMenuId) throws SBonitaReadException
getNextAvailableIndex in interface ApplicationServiceSBonitaReadExceptionpublic List<String> getAllPagesForProfile(long profileId) throws SBonitaReadException
getAllPagesForProfile in interface ApplicationServiceSBonitaReadExceptionprotected Integer executeGetLastUsedIndexQuery(Long parentMenuId) throws SBonitaReadException
SBonitaReadExceptionpublic int getLastUsedIndex(Long parentMenuId) throws SBonitaReadException
getLastUsedIndex in interface ApplicationServiceSBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.