Class BTDataCollectionSheetUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetUpdateEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetUpdateEvent>
overit.geocallapp.wfm.core.bl.datacollection.sheet.task.BTDataCollectionSheetUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetUpdateEvent.class)
public class BTDataCollectionSheetUpdate
extends BTDataCollection<DataCollectionSheetUpdateEvent>
Business task in order to update a
When the
BODataCollectionSheet. When the
DataCollectionSheetUpdateEvent is launched
the BT notices the call and updates the BODataCollectionSheet basing on the event's input. Visibility:
- sheets that belong to the same current user's operation center
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompleteDataCollectionSheetData(BODataCollectionSheet dataCollectionSheet) Completes the data collection sheet data.protected voidcompleteOffsetReferenceDate(BODataCollectionSheet dataCollectionSheet) Completes the offset reference date for a data collection sheet if certain conditions are met.protected voidexecute(DataCollectionSheetUpdateEvent event, PoolKit poolKit) Updates theBODataCollectionSheetwith all its needed components.protected voidvalidate(BODataCollectionSheet dataCollectionSheet, PoolKit poolKit) Validates the data collection sheet before update.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
-
Field Details
-
loadedSheet
-
-
Constructor Details
-
BTDataCollectionSheetUpdate
public BTDataCollectionSheetUpdate()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBODataCollectionSheetwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetUpdateEvent>- Parameters:
event- theDataCollectionSheetUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BODataCollectionSheet dataCollectionSheet, PoolKit poolKit) throws DAException, DAValidateException Validates the data collection sheet before update. Loads the existing sheet and checks that the code has not been changed.- Parameters:
dataCollectionSheet- the data collection sheet to validatepoolKit- the pool kit for database operations- Throws:
DAException- if a database error occurs while loading the sheetDAValidateException- if the code has been changed
-
completeDataCollectionSheetData
Completes the data collection sheet data.- Parameters:
dataCollectionSheet- the data collection sheet
-
completeOffsetReferenceDate
Completes the offset reference date for a data collection sheet if certain conditions are met.- Parameters:
dataCollectionSheet- the data collection sheet to update- Throws:
DAException- if a database error occurs while loading the sheetDAValidateException- if validation fails during the load operation
-