Class LivingApplicationImporter
- java.lang.Object
-
- org.bonitasoft.engine.business.application.importer.LivingApplicationImporter
-
- Direct Known Subclasses:
DefaultLivingApplicationImporter,MandatoryLivingApplicationImporter
public abstract class LivingApplicationImporter extends java.lang.ObjectAbstract class to regroup common code used by subclasses to import living applications.
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationImporterapplicationImporterprotected PageServicepageService
-
Constructor Summary
Constructors Constructor Description 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.ImportStatusimportProvidedPage(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)
-
-
-
Field Detail
-
pageService
protected final PageService pageService
-
applicationImporter
protected final ApplicationImporter applicationImporter
-
-
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.IOExceptionorg.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.IOExceptionorg.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.ImportExceptionorg.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
-
-