Class 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 Detail

      • TenantAdministrationAPIImpl

        public TenantAdministrationAPIImpl()
    • Method Detail

      • getTenantId

        protected long getTenantId()
      • 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 java.lang.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
      • 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 interface org.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 interface org.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 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
      • getUserId

        protected long getUserId()
                          throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException