public class TenantAdministrationAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.TenantAdministrationAPI
| Constructor and Description |
|---|
TenantAdministrationAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanAndUninstallBusinessDataModel() |
org.bonitasoft.engine.tenant.TenantResource |
getBusinessDataModelResource() |
java.lang.String |
getBusinessDataModelVersion() |
byte[] |
getClientBDMZip() |
protected PlatformServiceAccessor |
getPlatformAccessorNoException() |
protected TenantServiceAccessor |
getTenantAccessor() |
protected long |
getTenantId() |
protected org.bonitasoft.engine.tenant.TenantResource |
getTenantResource(org.bonitasoft.engine.tenant.TenantResourceType type) |
protected long |
getUserId() |
java.lang.String |
installBusinessDataModel(byte[] zip) |
boolean |
isPaused() |
void |
pause() |
protected void |
pauseServicesForTenant(PlatformServiceAccessor platformServiceAccessor,
long tenantId) |
void |
resume() |
void |
uninstallBusinessDataModel() |
protected void |
updateTenant(PlatformService platformService,
STenantUpdateBuilder descriptor,
STenant tenant) |
protected PlatformServiceAccessor getPlatformAccessorNoException()
protected long getTenantId()
public boolean isPaused()
isPaused in interface org.bonitasoft.engine.api.TenantAdministrationAPIpublic void pause()
throws org.bonitasoft.engine.exception.UpdateException
pause in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void resume()
throws org.bonitasoft.engine.exception.UpdateException
resume in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.exception.UpdateExceptionprotected void pauseServicesForTenant(PlatformServiceAccessor platformServiceAccessor, long tenantId) throws org.bonitasoft.engine.exception.UpdateException
org.bonitasoft.engine.exception.UpdateExceptionprotected void updateTenant(PlatformService platformService, STenantUpdateBuilder descriptor, STenant tenant) throws org.bonitasoft.engine.exception.UpdateException
org.bonitasoft.engine.exception.UpdateExceptionpublic org.bonitasoft.engine.tenant.TenantResource getBusinessDataModelResource()
getBusinessDataModelResource in interface org.bonitasoft.engine.api.TenantAdministrationAPIprotected org.bonitasoft.engine.tenant.TenantResource getTenantResource(org.bonitasoft.engine.tenant.TenantResourceType type)
public java.lang.String getBusinessDataModelVersion()
throws org.bonitasoft.engine.business.data.BusinessDataRepositoryException
getBusinessDataModelVersion in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.business.data.BusinessDataRepositoryExceptionpublic java.lang.String installBusinessDataModel(byte[] zip)
throws org.bonitasoft.engine.business.data.InvalidBusinessDataModelException,
org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
installBusinessDataModel in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.business.data.InvalidBusinessDataModelExceptionorg.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentExceptionpublic void uninstallBusinessDataModel()
throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
uninstallBusinessDataModel in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentExceptionpublic void cleanAndUninstallBusinessDataModel()
throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
cleanAndUninstallBusinessDataModel in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentExceptionpublic byte[] getClientBDMZip()
throws org.bonitasoft.engine.business.data.BusinessDataRepositoryException
getClientBDMZip in interface org.bonitasoft.engine.api.TenantAdministrationAPIorg.bonitasoft.engine.business.data.BusinessDataRepositoryExceptionprotected TenantServiceAccessor getTenantAccessor()
protected long getUserId()
throws java.lang.IllegalStateException
java.lang.IllegalStateException