Package org.bonitasoft.engine.api.impl
Class TenantAdministrationAPIImpl
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.TenantAdministrationAPIImpl
-
- All Implemented Interfaces:
org.bonitasoft.engine.api.TenantAdministrationAPI
public class TenantAdministrationAPIImpl extends java.lang.Object implements org.bonitasoft.engine.api.TenantAdministrationAPI
- Author:
- Matthieu Chaffotte, Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description TenantAdministrationAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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)
Deprecated.boolean
isPaused()
void
pause()
void
resume()
void
uninstallBusinessDataModel()
java.lang.String
updateBusinessDataModel(byte[] zip)
-
-
-
Method Detail
-
getPlatformAccessorNoException
protected PlatformServiceAccessor getPlatformAccessorNoException()
-
getTenantId
protected long getTenantId()
-
isPaused
public boolean isPaused()
- Specified by:
isPaused
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
-
pause
public void pause() throws org.bonitasoft.engine.exception.UpdateException
- Specified by:
pause
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.exception.UpdateException
-
resume
public void resume() throws org.bonitasoft.engine.exception.UpdateException
- Specified by:
resume
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getBusinessDataModelResource
public org.bonitasoft.engine.tenant.TenantResource getBusinessDataModelResource()
- Specified by:
getBusinessDataModelResource
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
-
getTenantResource
protected org.bonitasoft.engine.tenant.TenantResource getTenantResource(org.bonitasoft.engine.tenant.TenantResourceType type)
-
getBusinessDataModelVersion
public java.lang.String getBusinessDataModelVersion() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryException
- Specified by:
getBusinessDataModelVersion
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.business.data.BusinessDataRepositoryException
-
installBusinessDataModel
@Deprecated public java.lang.String installBusinessDataModel(byte[] zip) throws org.bonitasoft.engine.business.data.InvalidBusinessDataModelException, org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
Deprecated.- Specified by:
installBusinessDataModel
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.business.data.InvalidBusinessDataModelException
org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
-
uninstallBusinessDataModel
public void uninstallBusinessDataModel() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
- Specified by:
uninstallBusinessDataModel
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
-
updateBusinessDataModel
public java.lang.String updateBusinessDataModel(byte[] zip) throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException, org.bonitasoft.engine.business.data.InvalidBusinessDataModelException
- Specified by:
updateBusinessDataModel
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
org.bonitasoft.engine.business.data.InvalidBusinessDataModelException
-
cleanAndUninstallBusinessDataModel
public void cleanAndUninstallBusinessDataModel() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
- Specified by:
cleanAndUninstallBusinessDataModel
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
-
getClientBDMZip
public byte[] getClientBDMZip() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryException
- Specified by:
getClientBDMZip
in interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
- Throws:
org.bonitasoft.engine.business.data.BusinessDataRepositoryException
-
getTenantAccessor
protected TenantServiceAccessor getTenantAccessor()
-
getUserId
protected long getUserId() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
-