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 voidcleanAndUninstallBusinessDataModel()org.bonitasoft.engine.tenant.TenantResourcegetBusinessDataModelResource()java.lang.StringgetBusinessDataModelVersion()byte[]getClientBDMZip()protected PlatformServiceAccessorgetPlatformAccessorNoException()protected TenantServiceAccessorgetTenantAccessor()protected longgetTenantId()protected org.bonitasoft.engine.tenant.TenantResourcegetTenantResource(org.bonitasoft.engine.tenant.TenantResourceType type)protected longgetUserId()java.lang.StringinstallBusinessDataModel(byte[] zip)Deprecated.booleanisPaused()voidpause()voidresume()voiduninstallBusinessDataModel()java.lang.StringupdateBusinessDataModel(byte[] zip)
-
-
-
Method Detail
-
getPlatformAccessorNoException
protected PlatformServiceAccessor getPlatformAccessorNoException()
-
getTenantId
protected long getTenantId()
-
isPaused
public boolean isPaused()
- Specified by:
isPausedin interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI
-
pause
public void pause() throws org.bonitasoft.engine.exception.UpdateException- Specified by:
pausein interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
resume
public void resume() throws org.bonitasoft.engine.exception.UpdateException- Specified by:
resumein interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getBusinessDataModelResource
public org.bonitasoft.engine.tenant.TenantResource getBusinessDataModelResource()
- Specified by:
getBusinessDataModelResourcein 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:
getBusinessDataModelVersionin 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.BusinessDataRepositoryDeploymentExceptionDeprecated.- Specified by:
installBusinessDataModelin interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI- Throws:
org.bonitasoft.engine.business.data.InvalidBusinessDataModelExceptionorg.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
-
uninstallBusinessDataModel
public void uninstallBusinessDataModel() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException- Specified by:
uninstallBusinessDataModelin 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:
updateBusinessDataModelin interfaceorg.bonitasoft.engine.api.TenantAdministrationAPI- Throws:
org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentExceptionorg.bonitasoft.engine.business.data.InvalidBusinessDataModelException
-
cleanAndUninstallBusinessDataModel
public void cleanAndUninstallBusinessDataModel() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException- Specified by:
cleanAndUninstallBusinessDataModelin 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:
getClientBDMZipin 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
-
-