Class ClasspathArtifactManager
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.resolver.ClasspathArtifactManager
-
- All Implemented Interfaces:
BusinessArchiveArtifactManager
public class ClasspathArtifactManager extends java.lang.Object implements BusinessArchiveArtifactManager
- Author:
- Baptiste Mesta, Matthieu Chaffotte, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description ClasspathArtifactManager(DependencyService dependencyService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.bonitasoft.engine.bpm.process.Problem>
checkResolution(SProcessDefinition processDefinition)
void
delete(SProcessDefinition processDefinition)
boolean
deploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition)
deploy a dedicated part of the process e.g.void
exportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder)
-
-
-
Constructor Detail
-
ClasspathArtifactManager
public ClasspathArtifactManager(DependencyService dependencyService)
-
-
Method Detail
-
deploy
public boolean deploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition) throws org.bonitasoft.engine.connector.ConnectorException, SBonitaException
Description copied from interface:BusinessArchiveArtifactManager
deploy a dedicated part of the process e.g. load connectors Must throw an exception is something is not resolved in the process- Specified by:
deploy
in interfaceBusinessArchiveArtifactManager
- Parameters:
businessArchive
- the business archive containing the dependencyprocessDefinition
- the process definition- Returns:
- true if the process is resolved for this deployer, false otherwise
- Throws:
org.bonitasoft.engine.connector.ConnectorException
SBonitaException
-
checkResolution
public java.util.List<org.bonitasoft.engine.bpm.process.Problem> checkResolution(SProcessDefinition processDefinition)
- Specified by:
checkResolution
in interfaceBusinessArchiveArtifactManager
- Parameters:
processDefinition
- the process definition- Returns:
- a list of resolution problems or an empty list is there is no issue for this artifact
-
delete
public void delete(SProcessDefinition processDefinition) throws SObjectModificationException
- Specified by:
delete
in interfaceBusinessArchiveArtifactManager
- Throws:
SObjectModificationException
-
exportToBusinessArchive
public void exportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder) throws SBonitaException
- Specified by:
exportToBusinessArchive
in interfaceBusinessArchiveArtifactManager
- Throws:
SBonitaException
-
-