public class PlatformServiceImpl extends Object implements PlatformService
| Constructor and Description |
|---|
PlatformServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
List<org.bonitasoft.engine.services.TenantPersistenceService> tenantPersistenceServices,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.cache.PlatformCacheService platformCacheService,
org.bonitasoft.engine.platform.model.SPlatformProperties sPlatformProperties) |
public PlatformServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
List<org.bonitasoft.engine.services.TenantPersistenceService> tenantPersistenceServices,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.cache.PlatformCacheService platformCacheService,
org.bonitasoft.engine.platform.model.SPlatformProperties sPlatformProperties)
public void createPlatformTables()
throws org.bonitasoft.engine.platform.exception.SPlatformCreationException
createPlatformTables in interface PlatformServiceorg.bonitasoft.engine.platform.exception.SPlatformCreationExceptionpublic void createPlatform(org.bonitasoft.engine.platform.model.SPlatform platform) throws org.bonitasoft.engine.platform.exception.SPlatformCreationException
createPlatform in interface PlatformServiceorg.bonitasoft.engine.platform.exception.SPlatformCreationExceptionpublic long createTenant(org.bonitasoft.engine.platform.model.STenant tenant) throws org.bonitasoft.engine.platform.exception.STenantCreationException, org.bonitasoft.engine.platform.exception.STenantAlreadyExistException
public void createTenantTables()
throws org.bonitasoft.engine.platform.exception.STenantCreationException
createTenantTables in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantCreationExceptionpublic void initializePlatformStructure()
throws org.bonitasoft.engine.platform.exception.SPlatformCreationException
initializePlatformStructure in interface PlatformServiceorg.bonitasoft.engine.platform.exception.SPlatformCreationExceptionpublic void deletePlatform()
throws org.bonitasoft.engine.platform.exception.SPlatformDeletionException,
org.bonitasoft.engine.platform.exception.SPlatformNotFoundException
public void deletePlatformTables()
throws org.bonitasoft.engine.platform.exception.SPlatformDeletionException
deletePlatformTables in interface PlatformServiceorg.bonitasoft.engine.platform.exception.SPlatformDeletionExceptionpublic 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 deleteTenantTables()
throws org.bonitasoft.engine.platform.exception.STenantDeletionException
deleteTenantTables in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantDeletionExceptionpublic 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 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 updatePlatform(org.bonitasoft.engine.platform.model.SPlatform platform, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws org.bonitasoft.engine.platform.exception.SPlatformUpdateException
updatePlatform in interface PlatformServiceorg.bonitasoft.engine.platform.exception.SPlatformUpdateExceptionpublic 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 void cleanTenantTables()
throws org.bonitasoft.engine.platform.exception.STenantUpdateException
cleanTenantTables in interface PlatformServiceorg.bonitasoft.engine.platform.exception.STenantUpdateExceptionpublic org.bonitasoft.engine.platform.model.SPlatformProperties getSPlatformProperties()
getSPlatformProperties in interface PlatformServiceCopyright © 2014 Bonitasoft S.A.. All rights reserved.