Class BTDataCollectionTemplateSave<I>
java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<I>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<I>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSave<I>
- Type Parameters:
I- the generic type
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTDataCollectionTemplateConversionReleaseSave,BTDataCollectionTemplateReleaseSave,BTDataCollectionTemplateWorkingCopySave
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalignExpressionsEvaluationOrder(TreeModel<DataCollectionNode> treeModel, PoolKit poolKit) Aligns the expressions evaluation order.protected voidcheckCodeUniqueness(DataCollectionTemplate template) Checks the code uniqueness.protected voidcheckNodes(DataCollectionTemplate template) Checks the nodes.protected LongexecuteSave(DataCollectionTemplate template, PoolKit poolKit) Saves the data collection template.booleanChecks if is valid execution.protected voidupdateNodesIds(DataCollectionTemplate template) Updates the nodes ids.protected Longupsert(DataCollectionTemplate template, PoolKit poolKit) Upserts the data collection template.protected voidupsertStructure(BODataCollectionTemplateStructure templateStructure, PoolKit poolKit) Upserts the structure.protected voidValidates the global expressions.protected voidValidates the node constraints.protected voidvalidateTemplateHeader(BODataCollectionTemplateHeader templateHeader) Validates the template header.protected voidvalidateTemplateStructure(BODataCollectionTemplateStructure templateStructure) Validates the template structure.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, execute, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionTemplateSave
public BTDataCollectionTemplateSave()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if is valid execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<I>- Returns:
- true, if is valid execution
-
executeSave
protected Long executeSave(DataCollectionTemplate template, PoolKit poolKit) throws DAValidateException, DAException Saves the data collection template.- Parameters:
template- theDataCollectionTemplatepoolKit- thePoolKit- Returns:
- the long
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
validateTemplateHeader
protected void validateTemplateHeader(BODataCollectionTemplateHeader templateHeader) throws DAValidateException Validates the template header.- Parameters:
templateHeader- theBODataCollectionTemplateHeader- Throws:
DAValidateException- the DA validate exception
-
validateTemplateStructure
protected void validateTemplateStructure(BODataCollectionTemplateStructure templateStructure) throws DAValidateException Validates the template structure.- Parameters:
templateStructure- theBODataCollectionTemplateStructure- Throws:
DAValidateException- the DA validate exception
-
validateGlobalExpressions
protected void validateGlobalExpressions(DataCollectionTemplate template) throws DAValidateException Validates the global expressions.- Parameters:
template- theDataCollectionTemplate- Throws:
DAValidateException- the DA validate exception
-
checkNodes
Checks the nodes.- Parameters:
template- theDataCollectionTemplate- Throws:
DAValidateException- the DA validate exception
-
checkCodeUniqueness
Checks the code uniqueness.- Parameters:
template- theDataCollectionTemplate- Throws:
DAValidateException- the DA validate exception
-
validateNodeConstraints
Validates the node constraints.- Parameters:
template- theDataCollectionTemplate- Throws:
DAValidateException- the DA validate exception
-
updateNodesIds
Updates the nodes ids.- Parameters:
template- theDataCollectionTemplate
-
upsert
protected Long upsert(DataCollectionTemplate template, PoolKit poolKit) throws DAValidateException, DAException Upserts the data collection template.- Parameters:
template- theDataCollectionTemplatepoolKit- thePoolKit- Returns:
- the long
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
upsertStructure
protected void upsertStructure(BODataCollectionTemplateStructure templateStructure, PoolKit poolKit) throws DAValidateException, DAException Upserts the structure.- Parameters:
templateStructure- theBODataCollectionTemplateStructurepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
alignExpressionsEvaluationOrder
protected void alignExpressionsEvaluationOrder(TreeModel<DataCollectionNode> treeModel, PoolKit poolKit) throws DAException, DAValidateException Aligns the expressions evaluation order.- Parameters:
treeModel- theTreeModelpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-