Class FormMappingAndPageArtifactManager
java.lang.Object
org.bonitasoft.engine.api.impl.resolver.FormMappingAndPageArtifactManager
- All Implemented Interfaces:
BusinessArchiveArtifactManager
public class FormMappingAndPageArtifactManager
extends Object
implements BusinessArchiveArtifactManager
- Author:
- Laurent Leseigneur
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormMappingAndPageArtifactManager(SessionService sessionService, SessionAccessor sessionAccessor, PageService pageService, FormMappingService formMappingService, ProcessDefinitionService processDefinitionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckFormMappingResolution(SFormMapping formMapping, List<org.bonitasoft.engine.bpm.process.Problem> problems) protected List<org.bonitasoft.engine.bpm.process.Problem>checkPageProcessResolution(SProcessDefinition sProcessDefinition) List<org.bonitasoft.engine.bpm.process.Problem>checkResolution(SProcessDefinition processDefinition) voiddelete(SProcessDefinition processDefinition) protected voiddeleteFormMapping(Long processDefinitionId) booleandeploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition) deploy a dedicated part of the process e.g.voiddeployFormMappings(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, long processDefinitionId) voiddeployProcessPages(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, Long processDefinitionId, long userId) voidexportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder) getPageResources(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive)
-
Field Details
-
ERROR_MESSAGE_FORM_NOT_SET
- See Also:
-
ERROR_MESSAGE_FORM_NOT_FOUND
- See Also:
-
ERROR_MESSAGE_FORM_UNDEFINED
- See Also:
-
NUMBER_OF_RESULTS
public static final int NUMBER_OF_RESULTS- See Also:
-
-
Constructor Details
-
FormMappingAndPageArtifactManager
public FormMappingAndPageArtifactManager(SessionService sessionService, SessionAccessor sessionAccessor, PageService pageService, FormMappingService formMappingService, ProcessDefinitionService processDefinitionService)
-
-
Method Details
-
deploy
public boolean deploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition) throws org.bonitasoft.engine.bpm.process.ProcessDeployException Description copied from interface:BusinessArchiveArtifactManagerdeploy a dedicated part of the process e.g. load connectors Must throw an exception is something is not resolved in the process- Specified by:
deployin 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.bpm.process.ProcessDeployException
-
deployProcessPages
public void deployProcessPages(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, Long processDefinitionId, long userId) -
getPageResources
-
checkResolution
public List<org.bonitasoft.engine.bpm.process.Problem> checkResolution(SProcessDefinition processDefinition) - Specified by:
checkResolutionin 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
- Specified by:
deletein interfaceBusinessArchiveArtifactManager- Throws:
SObjectModificationException
-
exportToBusinessArchive
public void exportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder) throws SBonitaException - Specified by:
exportToBusinessArchivein interfaceBusinessArchiveArtifactManager- Throws:
SBonitaException
-
deleteFormMapping
protected void deleteFormMapping(Long processDefinitionId) throws SBonitaReadException, SObjectModificationException -
checkPageProcessResolution
protected List<org.bonitasoft.engine.bpm.process.Problem> checkPageProcessResolution(SProcessDefinition sProcessDefinition) throws SBonitaReadException, SObjectNotFoundException -
checkFormMappingResolution
protected void checkFormMappingResolution(SFormMapping formMapping, List<org.bonitasoft.engine.bpm.process.Problem> problems) throws SBonitaReadException, SObjectNotFoundException -
deployFormMappings
public void deployFormMappings(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDeployException - Throws:
org.bonitasoft.engine.bpm.process.ProcessDeployException
-