public class PlatformServiceImpl extends Object implements PlatformService
ACTIVATED, DEACTIVATED
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 PlatformService
SPlatformCreationException
public void createPlatform(org.bonitasoft.engine.platform.model.SPlatform platform) throws SPlatformCreationException
createPlatform
in interface PlatformService
SPlatformCreationException
public long createTenant(org.bonitasoft.engine.platform.model.STenant tenant) throws STenantCreationException, STenantAlreadyExistException
createTenant
in interface PlatformService
STenantCreationException
STenantAlreadyExistException
public void createTenantTables() throws STenantCreationException
createTenantTables
in interface PlatformService
STenantCreationException
public void initializePlatformStructure() throws SPlatformCreationException
initializePlatformStructure
in interface PlatformService
SPlatformCreationException
public void deletePlatform() throws SPlatformDeletionException, SPlatformNotFoundException
deletePlatform
in interface PlatformService
SPlatformDeletionException
SPlatformNotFoundException
public void deletePlatformTables() throws SPlatformDeletionException
deletePlatformTables
in interface PlatformService
SPlatformDeletionException
public void deleteTenant(long tenantId) throws STenantDeletionException, STenantNotFoundException, SDeletingActivatedTenantException
deleteTenant
in interface PlatformService
STenantDeletionException
STenantNotFoundException
SDeletingActivatedTenantException
public void deleteTenantTables() throws STenantDeletionException
deleteTenantTables
in interface PlatformService
STenantDeletionException
public void deleteTenantObjects(long tenantId) throws STenantDeletionException, STenantNotFoundException, SDeletingActivatedTenantException
deleteTenantObjects
in interface PlatformService
STenantDeletionException
STenantNotFoundException
SDeletingActivatedTenantException
public org.bonitasoft.engine.platform.model.SPlatform getPlatform() throws SPlatformNotFoundException
getPlatform
in interface PlatformService
SPlatformNotFoundException
public org.bonitasoft.engine.platform.model.STenant getTenant(long id) throws STenantNotFoundException
getTenant
in interface PlatformService
STenantNotFoundException
public boolean isPlatformCreated()
isPlatformCreated
in interface PlatformService
public org.bonitasoft.engine.platform.model.STenant getTenantByName(String name) throws STenantNotFoundException
getTenantByName
in interface PlatformService
STenantNotFoundException
public org.bonitasoft.engine.platform.model.STenant getDefaultTenant() throws STenantNotFoundException
getDefaultTenant
in interface PlatformService
STenantNotFoundException
public List<org.bonitasoft.engine.platform.model.STenant> getTenants(Collection<Long> ids, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws STenantNotFoundException, STenantException
getTenants
in interface PlatformService
STenantNotFoundException
STenantException
public void updatePlatform(org.bonitasoft.engine.platform.model.SPlatform platform, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SPlatformUpdateException
updatePlatform
in interface PlatformService
SPlatformUpdateException
public void updateTenant(org.bonitasoft.engine.platform.model.STenant tenant, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws STenantUpdateException
updateTenant
in interface PlatformService
STenantUpdateException
public boolean activateTenant(long tenantId) throws STenantNotFoundException, STenantActivationException
activateTenant
in interface PlatformService
STenantNotFoundException
STenantActivationException
public void deactiveTenant(long tenantId) throws STenantNotFoundException, STenantDeactivationException
deactiveTenant
in interface PlatformService
STenantNotFoundException
STenantDeactivationException
public List<org.bonitasoft.engine.platform.model.STenant> getTenants(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws STenantException
getTenants
in interface PlatformService
STenantException
public int getNumberOfTenants() throws STenantException
getNumberOfTenants
in interface PlatformService
STenantException
public boolean isTenantActivated(org.bonitasoft.engine.platform.model.STenant sTenant)
isTenantActivated
in interface PlatformService
public List<org.bonitasoft.engine.platform.model.STenant> searchTenants(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchTenants
in interface PlatformService
org.bonitasoft.engine.persistence.SBonitaSearchException
public long getNumberOfTenants(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfTenants
in interface PlatformService
org.bonitasoft.engine.persistence.SBonitaSearchException
public void cleanTenantTables() throws STenantUpdateException
cleanTenantTables
in interface PlatformService
STenantUpdateException
public org.bonitasoft.engine.platform.model.SPlatformProperties getSPlatformProperties()
getSPlatformProperties
in interface PlatformService
Copyright © 2013 BonitaSoft. All Rights Reserved.