Class ApplicationImporter
- java.lang.Object
-
- org.bonitasoft.engine.business.application.importer.ApplicationImporter
-
- All Implemented Interfaces:
LifecycleService,TenantLifecycleService
@Component @Order(5) public class ApplicationImporter extends java.lang.Object implements TenantLifecycleService
- Author:
- Elias Ricken de Medeiros
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROVIDED_APPLICATIONS_PATHstatic java.lang.StringPROVIDED_FINAL_APPLICATIONS_PATH
-
Constructor Summary
Constructors Constructor Description ApplicationImporter(ApplicationService applicationService, NodeToApplicationConverter nodeToApplicationConverter, ApplicationPageImporter applicationPageImporter, ApplicationMenuImporter applicationMenuImporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.bonitasoft.engine.api.ImportStatus>importApplications(byte[] xmlContent, byte[] iconContent, java.lang.String iconMimeType, long createdBy, ApplicationImportStrategy strategy)voidinit()This method performs actions to initialize a TenantLifecycleService This method is called when creating a new tenant and when starting the platform.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stop
-
-
-
-
Field Detail
-
PROVIDED_FINAL_APPLICATIONS_PATH
public static final java.lang.String PROVIDED_FINAL_APPLICATIONS_PATH
- See Also:
- Constant Field Values
-
PROVIDED_APPLICATIONS_PATH
public static final java.lang.String PROVIDED_APPLICATIONS_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApplicationImporter
public ApplicationImporter(ApplicationService applicationService, NodeToApplicationConverter nodeToApplicationConverter, ApplicationPageImporter applicationPageImporter, ApplicationMenuImporter applicationMenuImporter)
-
-
Method Detail
-
importApplications
public java.util.List<org.bonitasoft.engine.api.ImportStatus> importApplications(byte[] xmlContent, byte[] iconContent, java.lang.String iconMimeType, long createdBy, ApplicationImportStrategy strategy) throws org.bonitasoft.engine.exception.ImportException, org.bonitasoft.engine.exception.AlreadyExistsException- Throws:
org.bonitasoft.engine.exception.ImportExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
init
public void init() throws SBonitaExceptionDescription copied from interface:TenantLifecycleServiceThis method performs actions to initialize a TenantLifecycleService This method is called when creating a new tenant and when starting the platform.- Specified by:
initin interfaceTenantLifecycleService- Throws:
SBonitaException
-
-