Class LivingApplicationImporter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<java.lang.String> getNonSkippedImportedResources​(java.util.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.
      protected java.util.List<org.bonitasoft.engine.api.ImportStatus> importProvidedApplications​(byte[] xmlContent, byte[] iconContent, java.lang.String iconMimeType, boolean editable, boolean addIfMissing)  
      protected java.util.List<org.bonitasoft.engine.api.ImportStatus> importProvidedApplicationsFromClasspath​(java.lang.String locationPattern, boolean editable, boolean addIfMissing)  
      protected org.bonitasoft.engine.api.ImportStatus importProvidedPage​(java.lang.String pageZipName, byte[] providedPageContent, boolean removable, boolean editable, boolean addIfMissing)  
      protected java.util.List<org.bonitasoft.engine.api.ImportStatus> importProvidedPagesFromClasspath​(java.lang.String locationPattern, boolean removable, boolean editable, boolean addIfMissing)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LivingApplicationImporter

        public LivingApplicationImporter()
    • Method Detail

      • importProvidedPagesFromClasspath

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

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

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

        protected java.util.List<org.bonitasoft.engine.api.ImportStatus> importProvidedApplications​(byte[] xmlContent,
                                                                                                    byte[] iconContent,
                                                                                                    java.lang.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 java.util.List<java.lang.String> getNonSkippedImportedResources​(java.util.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