Class LivingApplicationImporter

java.lang.Object
org.bonitasoft.engine.business.application.importer.LivingApplicationImporter
Direct Known Subclasses:
DefaultLivingApplicationImporter, MandatoryLivingApplicationImporter

public abstract class LivingApplicationImporter extends Object
Abstract class to regroup common code used by subclasses to import living applications.
  • Field Details

  • Constructor Details

    • LivingApplicationImporter

      public LivingApplicationImporter()
  • Method Details

    • importProvidedPagesFromClasspath

      protected List<org.bonitasoft.engine.api.ImportStatus> importProvidedPagesFromClasspath(String locationPattern, boolean removable, boolean editable, boolean addIfMissing) throws IOException, org.bonitasoft.engine.exception.BonitaException
      Throws:
      IOException
      org.bonitasoft.engine.exception.BonitaException
    • importProvidedPage

      protected org.bonitasoft.engine.api.ImportStatus importProvidedPage(String pageZipName, byte[] providedPageContent, boolean removable, boolean editable, boolean addIfMissing) throws SBonitaException
      Throws:
      SBonitaException
    • importProvidedApplicationsFromClasspath

      protected List<org.bonitasoft.engine.api.ImportStatus> importProvidedApplicationsFromClasspath(String locationPattern, boolean editable, boolean addIfMissing) throws IOException, org.bonitasoft.engine.exception.ImportException
      Throws:
      IOException
      org.bonitasoft.engine.exception.ImportException
    • importProvidedApplications

      protected List<org.bonitasoft.engine.api.ImportStatus> importProvidedApplications(byte[] xmlContent, byte[] iconContent, String iconMimeType, boolean editable, boolean addIfMissing) throws org.bonitasoft.engine.exception.ImportException, org.bonitasoft.engine.exception.AlreadyExistsException
      Throws:
      org.bonitasoft.engine.exception.ImportException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • getNonSkippedImportedResources

      protected List<String> getNonSkippedImportedResources(List<org.bonitasoft.engine.api.ImportStatus> importStatuses)
      Parses the given list of import statuses of living applications resources to filter those that are marked as SKIPPED and returns the result in a readable format.
      Parameters:
      importStatuses - list of statuses that result from the import of living applications resources
      Returns:
      a list of non-skipped imported resources in a format that concatenates their name and status