Class FormMappingAndPageArtifactManager
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.resolver.FormMappingAndPageArtifactManager
-
- All Implemented Interfaces:
BusinessArchiveArtifactManager
public class FormMappingAndPageArtifactManager extends java.lang.Object implements BusinessArchiveArtifactManager
- Author:
- Laurent Leseigneur
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_MESSAGE_FORM_NOT_FOUNDstatic java.lang.StringERROR_MESSAGE_FORM_NOT_SETstatic java.lang.StringERROR_MESSAGE_FORM_UNDEFINEDstatic intNUMBER_OF_RESULTS
-
Constructor Summary
Constructors Constructor Description FormMappingAndPageArtifactManager(SessionService sessionService, SessionAccessor sessionAccessor, PageService pageService, TechnicalLoggerService technicalLoggerService, FormMappingService formMappingService, ProcessDefinitionService processDefinitionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckFormMappingResolution(SFormMapping formMapping, java.util.List<org.bonitasoft.engine.bpm.process.Problem> problems)protected java.util.List<org.bonitasoft.engine.bpm.process.Problem>checkPageProcessResolution(SProcessDefinition sProcessDefinition)java.util.List<org.bonitasoft.engine.bpm.process.Problem>checkResolution(SProcessDefinition processDefinition)voiddelete(SProcessDefinition processDefinition)protected voiddeleteFormMapping(java.lang.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, java.lang.Long processDefinitionId, long userId)voidexportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder)protected java.util.Map<java.lang.String,byte[]>getPageResources(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive)
-
-
-
Field Detail
-
ERROR_MESSAGE_FORM_NOT_SET
public static final java.lang.String ERROR_MESSAGE_FORM_NOT_SET
- See Also:
- Constant Field Values
-
ERROR_MESSAGE_FORM_NOT_FOUND
public static final java.lang.String ERROR_MESSAGE_FORM_NOT_FOUND
- See Also:
- Constant Field Values
-
ERROR_MESSAGE_FORM_UNDEFINED
public static final java.lang.String ERROR_MESSAGE_FORM_UNDEFINED
- See Also:
- Constant Field Values
-
NUMBER_OF_RESULTS
public static final int NUMBER_OF_RESULTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormMappingAndPageArtifactManager
public FormMappingAndPageArtifactManager(SessionService sessionService, SessionAccessor sessionAccessor, PageService pageService, TechnicalLoggerService technicalLoggerService, FormMappingService formMappingService, ProcessDefinitionService processDefinitionService)
-
-
Method Detail
-
deploy
public boolean deploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition) throws org.bonitasoft.engine.bpm.process.ProcessDeployExceptionDescription 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, java.lang.Long processDefinitionId, long userId)
-
getPageResources
protected java.util.Map<java.lang.String,byte[]> getPageResources(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive)
-
checkResolution
public java.util.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
public void delete(SProcessDefinition processDefinition) throws SObjectModificationException
- 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(java.lang.Long processDefinitionId) throws SBonitaReadException, SObjectModificationException
-
checkPageProcessResolution
protected java.util.List<org.bonitasoft.engine.bpm.process.Problem> checkPageProcessResolution(SProcessDefinition sProcessDefinition) throws SBonitaReadException, SObjectNotFoundException
-
checkFormMappingResolution
protected void checkFormMappingResolution(SFormMapping formMapping, java.util.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
-
-