Class LivingApplicationImporter
java.lang.Object
org.bonitasoft.engine.business.application.importer.LivingApplicationImporter
- Direct Known Subclasses:
DefaultLivingApplicationImporter,MandatoryLivingApplicationImporter
Abstract class to regroup common code used by subclasses to import living applications.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNonSkippedImportedResources(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 List<org.bonitasoft.engine.api.ImportStatus>importProvidedApplications(byte[] xmlContent, byte[] iconContent, String iconMimeType, boolean editable, boolean addIfMissing) protected List<org.bonitasoft.engine.api.ImportStatus>importProvidedApplicationsFromClasspath(String locationPattern, boolean editable, boolean addIfMissing) protected org.bonitasoft.engine.api.ImportStatusimportProvidedPage(String pageZipName, byte[] providedPageContent, boolean removable, boolean editable, boolean addIfMissing) protected List<org.bonitasoft.engine.api.ImportStatus>importProvidedPagesFromClasspath(String locationPattern, boolean removable, boolean editable, boolean addIfMissing)
-
Field Details
-
pageService
-
applicationImporter
-
-
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:
IOExceptionorg.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:
IOExceptionorg.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.ImportExceptionorg.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
-