Class BTDataCollectionTemplateStructureReleaseUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateStructureReleaseUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateStructureReleaseUpdateEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateStructureReleaseUpdateEvent>
overit.geocallapp.wfm.mobileforms.bl.template.structure.release.task.BTDataCollectionTemplateStructureReleaseUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateStructureReleaseUpdateEvent.class)
public class BTDataCollectionTemplateStructureReleaseUpdate
extends BTDataCollection<DataCollectionTemplateStructureReleaseUpdateEvent>
Business task in order to update a
When the
BODataCollectionTemplateStructureRelease. When the
DataCollectionTemplateStructureReleaseUpdateEvent is launched the BT notices the call and updates
the BODataCollectionTemplateStructureRelease basing on the event's input. Permission:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionTemplateStructureReleaseUpdateEvent event, PoolKit poolKit) Updates theBODataCollectionTemplateStructureReleasewith all its needed components.booleanChecks if is valid execution.protected voidValidates the template structure release.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
-
BTDataCollectionTemplateStructureReleaseUpdate
public BTDataCollectionTemplateStructureReleaseUpdate()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if is valid execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionTemplateStructureReleaseUpdateEvent>- Returns:
- true, if is valid execution
-
execute
protected void execute(DataCollectionTemplateStructureReleaseUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBODataCollectionTemplateStructureReleasewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateStructureReleaseUpdateEvent>- Parameters:
event- theDataCollectionTemplateStructureReleaseUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BODataCollectionTemplateStructureRelease release) throws DAValidateException Validates the template structure release. For update operations, all fields are optional, so validation is minimal.- Parameters:
release- theBODataCollectionTemplateStructureRelease- Throws:
DAValidateException- the DA validate exception
-