Class TenantAdministrationAPIImpl

java.lang.Object
org.bonitasoft.engine.api.impl.TenantAdministrationAPIImpl
All Implemented Interfaces:
org.bonitasoft.engine.api.TenantAdministrationAPI

public class TenantAdministrationAPIImpl extends Object implements org.bonitasoft.engine.api.TenantAdministrationAPI
Author:
Matthieu Chaffotte, Baptiste Mesta
  • Constructor Details

    • TenantAdministrationAPIImpl

      public TenantAdministrationAPIImpl()
  • Method Details

    • getServiceAccessorNoException

      protected ServiceAccessor getServiceAccessorNoException()
    • isPaused

      public boolean isPaused()
      Specified by:
      isPaused in interface org.bonitasoft.engine.api.TenantAdministrationAPI
    • pause

      public void pause() throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      pause in interface org.bonitasoft.engine.api.TenantAdministrationAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • resume

      public void resume() throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      resume in interface org.bonitasoft.engine.api.TenantAdministrationAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • getBusinessDataModelResource

      public org.bonitasoft.engine.tenant.TenantResource getBusinessDataModelResource()
      Specified by:
      getBusinessDataModelResource in interface org.bonitasoft.engine.api.TenantAdministrationAPI
    • getTenantResource

      protected org.bonitasoft.engine.tenant.TenantResource getTenantResource(org.bonitasoft.engine.tenant.TenantResourceType type)
    • getBusinessDataModelVersion

      public String getBusinessDataModelVersion() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryException
      Specified by:
      getBusinessDataModelVersion in interface org.bonitasoft.engine.api.TenantAdministrationAPI
      Throws:
      org.bonitasoft.engine.business.data.BusinessDataRepositoryException
    • uninstallBusinessDataModel

      public void uninstallBusinessDataModel() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
      Specified by:
      uninstallBusinessDataModel in interface org.bonitasoft.engine.api.TenantAdministrationAPI
      Throws:
      org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
    • updateBusinessDataModel

      @Deprecated(since="9.0.0") public String updateBusinessDataModel(byte[] zip) throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException, org.bonitasoft.engine.business.data.InvalidBusinessDataModelException
      Deprecated.
      Specified by:
      updateBusinessDataModel in interface org.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 interface org.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 interface org.bonitasoft.engine.api.TenantAdministrationAPI
      Throws:
      org.bonitasoft.engine.business.data.BusinessDataRepositoryException
    • getServiceAccessor

      protected ServiceAccessor getServiceAccessor()
    • getUserId

      protected long getUserId() throws IllegalStateException
      Throws:
      IllegalStateException