Class BTDataCollectionOptionsGroupUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionOptionsGroupUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionOptionsGroupUpdateEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionOptionsGroupUpdateEvent>
overit.geocallapp.wfm.mobileforms.bl.optionsgroup.task.BTDataCollectionOptionsGroupUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionOptionsGroupUpdateEvent.class)
public class BTDataCollectionOptionsGroupUpdate
extends BTDataCollection<DataCollectionOptionsGroupUpdateEvent>
Business task in order to update a
When the
BODataCollectionOptionsGroup. When the
DataCollectionOptionsGroupUpdateEvent is launched the BT notices the call and updates the
BODataCollectionOptionsGroup basing on the event's input. Required fields:
- data collection options group id
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionOptionsGroupUpdateEvent event, PoolKit poolKit) Updates theBODataCollectionOptionsGroupwith all its needed components.protected voidvalidateInput(BODataCollectionOptionsGroup dataCollectionOptionsGroup, PoolKit poolKit) Validates the input data for the data collection options group before updating.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, 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
-
BTDataCollectionOptionsGroupUpdate
public BTDataCollectionOptionsGroupUpdate()
-
-
Method Details
-
execute
protected void execute(DataCollectionOptionsGroupUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBODataCollectionOptionsGroupwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionOptionsGroupUpdateEvent>- Parameters:
event- theDataCollectionOptionsGroupUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateInput
protected void validateInput(BODataCollectionOptionsGroup dataCollectionOptionsGroup, PoolKit poolKit) throws DAValidateException, DAException Validates the input data for the data collection options group before updating.- Parameters:
dataCollectionOptionsGroup- theBODataCollectionOptionsGroupto validatepoolKit- thePoolKitfor database operations- Throws:
DAValidateException- if validation fails (e.g., missing required multilanguage values or null model)DAException- if a database access error occurs during validation
-