Class ApplicationInstallerImpl

java.lang.Object
org.bonitasoft.engine.api.impl.application.installer.ApplicationInstallerImpl
All Implemented Interfaces:
ApplicationInstaller

@Component @ConditionalOnSingleCandidate(ApplicationInstaller.class) public class ApplicationInstallerImpl extends Object implements ApplicationInstaller
Main entry point to deploy an ApplicationArchive.
Author:
Baptiste Mesta., Danila Mazour, Haroun El Alami
  • Constructor Details

  • Method Details

    • install

      public void install(ApplicationArchive applicationArchive) throws org.bonitasoft.engine.exception.ApplicationInstallationException
      Specified by:
      install in interface ApplicationInstaller
      Throws:
      org.bonitasoft.engine.exception.ApplicationInstallationException
    • installArtifacts

      protected List<Long> installArtifacts(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws Exception
      Throws:
      Exception
    • update

      public void update(ApplicationArchive applicationArchive) throws org.bonitasoft.engine.exception.ApplicationInstallationException
      Specified by:
      update in interface ApplicationInstaller
      Throws:
      org.bonitasoft.engine.exception.ApplicationInstallationException
    • resumeTenantInSession

      public void resumeTenantInSession() throws Exception
      Throws:
      Exception
    • pauseTenantInSession

      public void pauseTenantInSession() throws Exception
      Throws:
      Exception
    • updateArtifacts

      protected List<Long> updateArtifacts(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws Exception
      Throws:
      Exception
    • updateApplicationVersion

      public void updateApplicationVersion(String version) throws org.bonitasoft.platform.exception.PlatformException
      Throws:
      org.bonitasoft.platform.exception.PlatformException
    • getPlatformUpdateBuilder

      protected SPlatformUpdateBuilder getPlatformUpdateBuilder()
    • disableOldProcesses

      public void disableOldProcesses(List<Long> installedProcessIds, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws org.bonitasoft.engine.exception.SearchException, SBonitaException, org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Throws:
      org.bonitasoft.engine.exception.SearchException
      SBonitaException
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • enableResolvedProcesses

      public void enableResolvedProcesses(List<Long> processDefinitionIds, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws org.bonitasoft.engine.bpm.process.ProcessDeployException
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDeployException
    • installOrganization

      protected void installOrganization(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws Exception
      Throws:
      Exception
    • updateOrganization

      protected void updateOrganization(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws Exception
      Throws:
      Exception
    • installBusinessDataModel

      protected void installBusinessDataModel(ApplicationArchive applicationArchive) throws Exception
      Throws:
      Exception
    • updateBusinessDataModel

      protected String updateBusinessDataModel(ApplicationArchive applicationArchive) throws org.bonitasoft.engine.business.data.InvalidBusinessDataModelException, org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
      Throws:
      org.bonitasoft.engine.business.data.InvalidBusinessDataModelException
      org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
    • uninstallBusinessDataModel

      protected void uninstallBusinessDataModel() throws org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
      Throws:
      org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
    • installBusinessDataModel

      protected String installBusinessDataModel(byte[] zip) throws org.bonitasoft.engine.business.data.InvalidBusinessDataModelException, org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
      Throws:
      org.bonitasoft.engine.business.data.InvalidBusinessDataModelException
      org.bonitasoft.engine.business.data.BusinessDataRepositoryDeploymentException
    • installLivingApplications

      protected void installLivingApplications(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult, org.bonitasoft.engine.business.application.ApplicationImportPolicy policy) throws org.bonitasoft.engine.exception.AlreadyExistsException, org.bonitasoft.engine.exception.ImportException, org.bonitasoft.engine.exception.ApplicationInstallationException
      Throws:
      org.bonitasoft.engine.exception.AlreadyExistsException
      org.bonitasoft.engine.exception.ImportException
      org.bonitasoft.engine.exception.ApplicationInstallationException
    • installOrUpdatePages

      protected void installOrUpdatePages(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws IOException, org.bonitasoft.engine.exception.BonitaException
      Throws:
      IOException
      org.bonitasoft.engine.exception.BonitaException
    • installOrUpdateLayouts

      protected void installOrUpdateLayouts(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws IOException, org.bonitasoft.engine.exception.BonitaException
      Throws:
      IOException
      org.bonitasoft.engine.exception.BonitaException
    • installOrUpdateThemes

      protected void installOrUpdateThemes(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws IOException, org.bonitasoft.engine.exception.BonitaException
      Throws:
      IOException
      org.bonitasoft.engine.exception.BonitaException
    • installOrUpdateRestApiExtensions

      protected void installOrUpdateRestApiExtensions(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws IOException, org.bonitasoft.engine.exception.BonitaException
      Throws:
      IOException
      org.bonitasoft.engine.exception.BonitaException
    • installUnitPage

      protected void installUnitPage(File pageFile, String precisePageType, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws IOException, org.bonitasoft.engine.exception.BonitaException
      From the Engine perspective, all custom pages, layouts, themes, custom Rest APIs are of type Page
      Throws:
      IOException
      org.bonitasoft.engine.exception.BonitaException
    • installProcesses

      protected List<Long> installProcesses(ApplicationArchive applicationArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws org.bonitasoft.engine.bpm.bar.InvalidBusinessArchiveFormatException, IOException, org.bonitasoft.engine.bpm.process.ProcessDeployException
      Throws:
      org.bonitasoft.engine.bpm.bar.InvalidBusinessArchiveFormatException
      IOException
      org.bonitasoft.engine.bpm.process.ProcessDeployException
    • updateConfiguration

      public void updateConfiguration(File configurationFileArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws Exception
      Update configuration with the given bconf file
      Specified by:
      updateConfiguration in interface ApplicationInstaller
      Parameters:
      configurationFileArchive - A bconf file
      executionResult -
      Throws:
      Exception
    • deployProcess

      protected Long deployProcess(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, org.bonitasoft.engine.api.result.ExecutionResult executionResult) throws org.bonitasoft.engine.bpm.process.ProcessDeployException
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDeployException
    • inSession

      public <T> T inSession(Callable<T> callable) throws Exception
      Throws:
      Exception
    • inTransaction

      protected <T> T inTransaction(Callable<T> callable) throws org.bonitasoft.engine.exception.ApplicationInstallationException
      Throws:
      org.bonitasoft.engine.exception.ApplicationInstallationException