org.bonitasoft.engine.platform.impl
public class PlatformServiceImpl extends Object implements PlatformService
| Constructor and Description |
|---|
PlatformServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
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,
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 SPlatformCreationException
createPlatformTables in interface PlatformServiceSPlatformCreationExceptionpublic void createPlatform(org.bonitasoft.engine.platform.model.SPlatform platform) throws SPlatformCreationException
createPlatform in interface PlatformServiceSPlatformCreationExceptionpublic long createTenant(org.bonitasoft.engine.platform.model.STenant tenant) throws STenantCreationException, STenantAlreadyExistException
createTenant in interface PlatformServiceSTenantCreationExceptionSTenantAlreadyExistExceptionpublic void createTenantTables()
throws STenantCreationException
createTenantTables in interface PlatformServiceSTenantCreationExceptionpublic void initializePlatformStructure()
throws SPlatformCreationException
initializePlatformStructure in interface PlatformServiceSPlatformCreationExceptionpublic void deletePlatform()
throws SPlatformDeletionException,
SPlatformNotFoundException
deletePlatform in interface PlatformServiceSPlatformDeletionExceptionSPlatformNotFoundExceptionpublic void deletePlatformTables()
throws SPlatformDeletionException
deletePlatformTables in interface PlatformServiceSPlatformDeletionExceptionpublic void deleteTenant(long tenantId)
throws STenantDeletionException,
STenantNotFoundException,
SDeletingActivatedTenantException
deleteTenant in interface PlatformServiceSTenantDeletionExceptionSTenantNotFoundExceptionSDeletingActivatedTenantExceptionpublic void deleteTenantTables()
throws STenantDeletionException
deleteTenantTables in interface PlatformServiceSTenantDeletionExceptionpublic void deleteTenantObjects(long tenantId)
throws STenantDeletionException,
STenantNotFoundException,
SDeletingActivatedTenantException
deleteTenantObjects in interface PlatformServiceSTenantDeletionExceptionSTenantNotFoundExceptionSDeletingActivatedTenantExceptionpublic org.bonitasoft.engine.platform.model.SPlatform getPlatform() throws SPlatformNotFoundException
getPlatform in interface PlatformServiceSPlatformNotFoundExceptionpublic org.bonitasoft.engine.platform.model.STenant getTenant(long id) throws STenantNotFoundException
getTenant in interface PlatformServiceSTenantNotFoundExceptionpublic boolean isPlatformCreated()
isPlatformCreated in interface PlatformServicepublic org.bonitasoft.engine.platform.model.STenant getTenantByName(String name) throws STenantNotFoundException
getTenantByName in interface PlatformServiceSTenantNotFoundExceptionpublic org.bonitasoft.engine.platform.model.STenant getDefaultTenant() throws STenantNotFoundException
getDefaultTenant in interface PlatformServiceSTenantNotFoundExceptionpublic List<org.bonitasoft.engine.platform.model.STenant> getTenants(Collection<Long> ids, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws STenantNotFoundException, STenantException
getTenants in interface PlatformServiceSTenantNotFoundExceptionSTenantExceptionpublic void updatePlatform(org.bonitasoft.engine.platform.model.SPlatform platform, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SPlatformUpdateException
updatePlatform in interface PlatformServiceSPlatformUpdateExceptionpublic void updateTenant(org.bonitasoft.engine.platform.model.STenant tenant, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws STenantUpdateException
updateTenant in interface PlatformServiceSTenantUpdateExceptionpublic boolean activateTenant(long tenantId)
throws STenantNotFoundException,
STenantActivationException
activateTenant in interface PlatformServiceSTenantNotFoundExceptionSTenantActivationExceptionpublic void deactiveTenant(long tenantId)
throws STenantNotFoundException,
STenantDeactivationException
deactiveTenant in interface PlatformServiceSTenantNotFoundExceptionSTenantDeactivationExceptionpublic List<org.bonitasoft.engine.platform.model.STenant> getTenants(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws STenantException
getTenants in interface PlatformServiceSTenantExceptionpublic int getNumberOfTenants()
throws STenantException
getNumberOfTenants in interface PlatformServiceSTenantExceptionpublic boolean isTenantActivated(org.bonitasoft.engine.platform.model.STenant sTenant)
isTenantActivated in interface PlatformServicepublic List<org.bonitasoft.engine.platform.model.STenant> searchTenants(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchTenants in interface PlatformServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfTenants(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfTenants in interface PlatformServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic void cleanTenantTables()
throws STenantUpdateException
cleanTenantTables in interface PlatformServiceSTenantUpdateExceptionpublic org.bonitasoft.engine.platform.model.SPlatformProperties getSPlatformProperties()
getSPlatformProperties in interface PlatformServiceCopyright © 2014 Bonitasoft S.A.. All rights reserved.