Class BTMobileDataCollectionSheetUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MobileDataCollectionSheetUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MobileDataCollectionSheetUpdateEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<MobileDataCollectionSheetUpdateEvent>
overit.geocallapp.wfm.mobile.core.bl.datacollection.sheet.task.BTMobileDataCollectionSheetUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MobileDataCollectionSheetUpdateEvent.class)
public class BTMobileDataCollectionSheetUpdate
extends BTDataCollection<MobileDataCollectionSheetUpdateEvent>
Business task in order to update a
When the
BODataCollectionSheet from mobile replication. When the
MobileDataCollectionSheetUpdateEvent 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:
- 18.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(MobileDataCollectionSheetUpdateEvent 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
-
Constructor Details
-
BTMobileDataCollectionSheetUpdate
public BTMobileDataCollectionSheetUpdate()
-
-
Method Details
-
execute
protected void execute(MobileDataCollectionSheetUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBODataCollectionSheetwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<MobileDataCollectionSheetUpdateEvent>- Parameters:
event- theMobileDataCollectionSheetUpdateEventpoolKit- 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
-