Class BTDataCollectionTemplateStructureConversionCreateTreeStructure
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateStructureConversionCreateTreeStructureEvent>
overit.geocallapp.wfm.core.bl.datacollection.converter.template.structure.task.BTDataCollectionTemplateStructureConversionCreateTreeStructure
- All Implemented Interfaces:
Serializable,Tool
@Event(DataCollectionTemplateStructureConversionCreateTreeStructureEvent.class)
public class BTDataCollectionTemplateStructureConversionCreateTreeStructure
extends BusinessTask<DataCollectionTemplateStructureConversionCreateTreeStructureEvent>
Business task that convert an old Data Collection Template Tree Structure into a new one.
When the
When the
DataCollectionTemplateStructureConversionCreateTreeStructureEvent is launched
the BT notices the call and create the new tree structure. - Since:
- 13.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidTake the old tree template structureTemplateTreeand convert it into aTreeModel<DataCollectionNode>.protected TreeModel<DataCollectionNode> makeNewTreeStructure(overit.geocallapp.wfm.survey.template.TemplateTree currentOldNode, DataCollectionTemplateConversionMap nodeConversionMap) Navigate node by node the old tree structure and creates the new one.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
nodeConverterBucket
-
-
Constructor Details
-
BTDataCollectionTemplateStructureConversionCreateTreeStructure
public BTDataCollectionTemplateStructureConversionCreateTreeStructure()
-
-
Method Details
-
body
protected void body(DataCollectionTemplateStructureConversionCreateTreeStructureEvent event, PoolKit poolKit) throws DAException, DAValidateException Take the old tree template structureTemplateTreeand convert it into aTreeModel<DataCollectionNode>.- Specified by:
bodyin classBusinessTask<DataCollectionTemplateStructureConversionCreateTreeStructureEvent>- Parameters:
event- theDataCollectionTemplateStructureReleaseInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
makeNewTreeStructure
protected TreeModel<DataCollectionNode> makeNewTreeStructure(overit.geocallapp.wfm.survey.template.TemplateTree currentOldNode, DataCollectionTemplateConversionMap nodeConversionMap) throws DAException, DAValidateException Navigate node by node the old tree structure and creates the new one.
The conversion of each node is delegated to the specificDataCollectionNodeConverter.- Parameters:
currentOldNode- old nodenodeConversionMap- the conversion map- Returns:
- the new tree structure
- Throws:
DAExceptionDAValidateException
-