Class BTDataCollectionSheetConversionLoad
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetConversionLoadEvent>
overit.geocallapp.wfm.core.bl.datacollection.converter.sheet.task.load.BTDataCollectionSheetConversionLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(DataCollectionSheetConversionLoadEvent.class)
public class BTDataCollectionSheetConversionLoad
extends BusinessTask<DataCollectionSheetConversionLoadEvent>
Business task to load necessary data to start the sheet conversion.
When the
When the
DataCollectionSheetConversionLoadEvent is launched
the BT notices the call and load the SchedaTree, BODataCollectionTemplateHeader
and BODataCollectionTemplateVersionConversion basing on the event's input. - Since:
- 13.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLogprotected TeacherDuty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(DataCollectionSheetConversionLoadEvent event, PoolKit poolKit) Loads necessary data to start the sheet conversion.protected TeacherGet the Teacher.protected BODataCollectionTemplateHeaderloadConvertedTemplateHeader(PoolKit poolKit, Long oldTemplateId) Loads the new template header associated with the sheet.protected overit.geocallapp.wfm.srd.scheda.SchedaTreeloadOldSheetTree(Long oldSheetId) Loads old sheet data.protected BODataCollectionTemplateConversionloadTemplateConversionLog(PoolKit poolKit, Long oldTemplateId) Loads the template conversion log.loadTemplateVersionLog(PoolKit poolKit, Long oldTemplateId, Long oldNodeId) Loads the template structure conversion log byoldTemplateIdandoldNodeId.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
logger
protected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog logger -
teacherDuty
-
-
Constructor Details
-
BTDataCollectionSheetConversionLoad
public BTDataCollectionSheetConversionLoad()
-
-
Method Details
-
body
protected void body(DataCollectionSheetConversionLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Loads necessary data to start the sheet conversion.- Specified by:
bodyin classBusinessTask<DataCollectionSheetConversionLoadEvent>- Parameters:
event- theDataCollectionSheetConversionLoadEventpoolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
loadOldSheetTree
protected overit.geocallapp.wfm.srd.scheda.SchedaTree loadOldSheetTree(Long oldSheetId) throws DAValidateException, DAException Loads old sheet data.- Parameters:
oldSheetId- old sheet id- Returns:
- the
SchedaTree - Throws:
DAValidateExceptionDAException
-
loadConvertedTemplateHeader
protected BODataCollectionTemplateHeader loadConvertedTemplateHeader(PoolKit poolKit, Long oldTemplateId) throws DAException, DAValidateException Loads the new template header associated with the sheet.- Parameters:
poolKit- thePoolKitoldTemplateId- the old template id- Returns:
- the
BODataCollectionTemplateHeader - Throws:
DAExceptionDAValidateException
-
loadTemplateConversionLog
protected BODataCollectionTemplateConversion loadTemplateConversionLog(PoolKit poolKit, Long oldTemplateId) throws DAException, DAValidateException Loads the template conversion log. Search for a previously successfully converted template byoldTemplateIdand get the latest conversion log.- Parameters:
poolKit-oldTemplateId-- Returns:
- the latest success
BODataCollectionTemplateConversion - Throws:
DAExceptionDAValidateException
-
loadTemplateVersionLog
protected BODataCollectionTemplateVersionConversion loadTemplateVersionLog(PoolKit poolKit, Long oldTemplateId, Long oldNodeId) throws DAException, DAValidateException Loads the template structure conversion log byoldTemplateIdandoldNodeId.- Parameters:
poolKit- thePoolKitoldTemplateId- the old template idoldNodeId- the old root node id- Returns:
- the template structure conversion log
- Throws:
DAExceptionDAValidateException
-
getTeacher
Get the Teacher.- Returns:
- the
Teacher
-