public class PlatformServiceImpl extends Object implements PlatformService
| Constructor and Description |
|---|
PlatformServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
PlatformRetriever platformRetriever,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.cache.PlatformCacheService platformCacheService,
org.bonitasoft.engine.platform.model.SPlatformProperties sPlatformProperties,
DataSource datasource,
List<String> sqlFolders) |
public PlatformServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
PlatformRetriever platformRetriever,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.cache.PlatformCacheService platformCacheService,
org.bonitasoft.engine.platform.model.SPlatformProperties sPlatformProperties,
DataSource datasource,
List<String> sqlFolders)
protected void executeSQLResources(List<String> sqlFiles) throws IOException, SQLException
sqlFiles - the sql files to executeSQLExceptionIOExceptionprotected void executeSQLResources(List<String> sqlFiles, Map<String,String> replacements) throws IOException, SQLException
sqlFiles - the sql files to executeSQLExceptionIOExceptionprotected void executeSQLResource(String sqlFile, Map<String,String> replacements) throws IOException, SQLException
sqlFile - the sql file to executeIOExceptionSQLExceptionpublic long createTenant(org.bonitasoft.engine.platform.model.STenant tenant) throws org.bonitasoft.engine.platform.exception.STenantCreationException, org.bonitasoft.engine.platform.exception.STenantAlreadyExistException
public void deleteTenant(long tenantId)
throws org.bonitasoft.engine.platform.exception.STenantDeletionException,
org.bonitasoft.engine.platform.exception.STenantNotFoundException,
org.bonitasoft.engine.platform.exception.SDeletingActivatedTenantException
public void deleteTenantObjects(long tenantId)
throws org.bonitasoft.engine.platform.exception.STenantDeletionException,
org.bonitasoft.engine.platform.exception.STenantNotFoundException,
org.bonitasoft.engine.platform.exception.SDeletingActivatedTenantException
public org.bonitasoft.engine.platform.model.SPlatform getPlatform() throws org.bonitasoft.engine.platform.exception.SPlatformNotFoundException
getPlatform in interface PlatformServiceorg.bonitasoft.engine.platform.exception.SPlatformNotFoundExceptionpublic org.bonitasoft.engine.platform.model.STenant getTenant(long id) throws org.bonitasoft.engine.platform.exception.STenantNotFoundException
getTenant in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantNotFoundExceptionpublic boolean isPlatformCreated()
isPlatformCreated in interface PlatformServicepublic org.bonitasoft.engine.platform.model.STenant getTenantByName(String name) throws org.bonitasoft.engine.platform.exception.STenantNotFoundException
getTenantByName in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantNotFoundExceptionpublic org.bonitasoft.engine.platform.model.STenant getDefaultTenant() throws org.bonitasoft.engine.platform.exception.STenantNotFoundException
getDefaultTenant in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantNotFoundExceptionpublic boolean isDefaultTenantCreated()
throws org.bonitasoft.engine.persistence.SBonitaReadException
isDefaultTenantCreated in interface PlatformServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.platform.model.STenant> getTenants(Collection<Long> ids, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.platform.exception.STenantNotFoundException, org.bonitasoft.engine.platform.exception.STenantException
getTenants in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantNotFoundExceptionorg.bonitasoft.engine.platform.exception.STenantExceptionpublic void updateTenant(org.bonitasoft.engine.platform.model.STenant tenant, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws org.bonitasoft.engine.platform.exception.STenantUpdateException
updateTenant in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantUpdateExceptionpublic boolean activateTenant(long tenantId)
throws org.bonitasoft.engine.platform.exception.STenantNotFoundException,
org.bonitasoft.engine.platform.exception.STenantActivationException
public void deactiveTenant(long tenantId)
throws org.bonitasoft.engine.platform.exception.STenantNotFoundException,
org.bonitasoft.engine.platform.exception.STenantDeactivationException
public List<org.bonitasoft.engine.platform.model.STenant> getTenants(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.platform.exception.STenantException
getTenants in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantExceptionpublic int getNumberOfTenants()
throws org.bonitasoft.engine.platform.exception.STenantException
getNumberOfTenants in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantExceptionpublic List<org.bonitasoft.engine.platform.model.STenant> searchTenants(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchTenants in interface PlatformServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfTenants(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfTenants in interface PlatformServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.platform.model.SPlatformProperties getSPlatformProperties()
getSPlatformProperties in interface PlatformServiceCopyright © 2017 Bonitasoft S.A.. All rights reserved.