Class BTDataCollectionSheetInstanceFillIn
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceFillInEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceFillInEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceFillInEvent>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceFillIn
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceFillInEvent.class)
public class BTDataCollectionSheetInstanceFillIn
extends BTDataCollection<DataCollectionSheetInstanceFillInEvent>
Business task in order to fill in a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceFillInEvent is launched
the BT notices the call and fills in the DataCollectionSheetInstance basing on the event's input. Permission:
DataCollectionPermission.FSM_DATACOLLECTION_SHEET_EDIT
orDataCollectionPermission.FSM_DATACOLLECTION_SUPERUSER_EXECUTE
Errors:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckNodesConstraints(TreeModel<DataCollectionNode> treeModel, PoolKit poolKit) Checks the nodes constraints.protected voidexecute(DataCollectionSheetInstanceFillInEvent event, PoolKit poolKit) Fills in the data collection sheet instance.booleanChecks whether the view sheet permission is activated or not.protected DataCollectionSheetInstanceloadSheetInstance(Long sheetId, PoolKit poolKit) Loads the sheet instance.protected voidsaveSheetInstance(DataCollectionSheetInstance sheetInstance, PoolKit poolKit) Saves the sheet instance.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionSheetInstanceFillIn
public BTDataCollectionSheetInstanceFillIn()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the view sheet permission is activated or not.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionSheetInstanceFillInEvent>- Returns:
- true, if the view sheet permission is active, false otherwise
-
execute
protected void execute(DataCollectionSheetInstanceFillInEvent event, PoolKit poolKit) throws DAException, DAValidateException Fills in the data collection sheet instance.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceFillInEvent>- Parameters:
event- theDataCollectionSheetInstanceFillInEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadSheetInstance
protected DataCollectionSheetInstance loadSheetInstance(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet instance.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the data collection sheet instance
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkNodesConstraints
protected void checkNodesConstraints(TreeModel<DataCollectionNode> treeModel, PoolKit poolKit) throws DAValidateException, DAException Checks the nodes constraints.- Parameters:
treeModel- theTreeModel<DataCollectionNode>poolKit- the pool kit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
saveSheetInstance
protected void saveSheetInstance(DataCollectionSheetInstance sheetInstance, PoolKit poolKit) throws DAException, DAValidateException Saves the sheet instance.- Parameters:
sheetInstance- theDataCollectionSheetInstancepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-