Class BTDataCollectionSheetInstanceResetUnlock
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceResetUnlockEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceResetUnlockEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceResetUnlockEvent>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceResetUnlock
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceResetUnlockEvent.class)
public class BTDataCollectionSheetInstanceResetUnlock
extends BTDataCollection<DataCollectionSheetInstanceResetUnlockEvent>
Business task for resetting the unlock request flag on a data collection sheet.
This task processes DataCollectionSheetInstanceResetUnlockEvent events and
sets the unlock request flag to false after an unlock request has been processed.
The reset workflow involves:
- Loading the sheet from the database
- Setting the unlock request flag to false
- Updating the sheet in the database
- Since:
- 22.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionSheetInstanceResetUnlockEvent event, PoolKit poolKit) Executes the reset unlock workflow.protected BODataCollectionSheetLoads a data collection sheet by its ID.protected voidresetSheet(BODataCollectionSheet sheet, PoolKit poolKit) Resets the unlock request flag on the sheet to false.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
-
BTDataCollectionSheetInstanceResetUnlock
public BTDataCollectionSheetInstanceResetUnlock()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInstanceResetUnlockEvent event, PoolKit poolKit) throws DAException, DAValidateException Executes the reset unlock workflow.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceResetUnlockEvent>- Parameters:
event- the reset unlock event containing the sheet IDpoolKit- the database connection pool kit for database operations- Throws:
DAException- if a database error occursDAValidateException- if the sheet ID is null or invalid
-
loadSheet
protected BODataCollectionSheet loadSheet(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads a data collection sheet by its ID.- Parameters:
sheetId- the unique identifier of the sheet to loadpoolKit- the database connection pool kit for database operations- Returns:
- the loaded data collection sheet
- Throws:
DAValidateException- if the sheet ID is invalid or sheet not foundDAException- if a database error occurs during loading
-
resetSheet
protected void resetSheet(BODataCollectionSheet sheet, PoolKit poolKit) throws DAValidateException, DAException Resets the unlock request flag on the sheet to false.- Parameters:
sheet- the data collection sheet to resetpoolKit- the database connection pool kit for database operations- Throws:
DAValidateException- if validation fails during updateDAException- if a database error occurs during update
-