Class BTDataCollectionSheetInstanceCloseSchedulingResourceSheet
java.lang.Object
overit.geocall.bl.BusinessTask<CheckableEvent<Long,Void>>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask<Long,Void>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask<Long,Void>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable<Long,Void>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceCloseSchedulingResourceSheet
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceCloseSchedulingResourceSheetEvent.class)
public class BTDataCollectionSheetInstanceCloseSchedulingResourceSheet
extends BTDataCollectionCheckable<Long,Void>
Business task in order to close a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceCloseSchedulingResourceSheetEvent is launched
the BT notices the call and closes the DataCollectionSheetInstance basing on the event's input. Permission:
Errors:
Codes.DATACOLLECTION_SHEET_MUST_BE_IN_FIXED_STATECodes.DATACOLLECTION_SHEET_MUST_BE_ASSOCIATE_TO_SCHED_USER
Visibility:
- scheduling users that belong to the same current user's operation center
- sheets that belong to the same current user's operation center
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks whether the closing operation is permitted.protected List<CheckerEvent<?>> defineCheckerEvents(Long sheetId, PoolKit poolKit) Defines the checker events.protected VoidexecuteProcess(Long sheetId, PoolKit poolKit) Closes the data collection sheet instance.booleanChecks whether the view sheet permission is activated or not.protected BODataCollectionSheetLoads the sheet.protected DataCollectionSheetInstanceloadSheetInstance(Long sheetId, PoolKit poolKit) Loads the sheet instance.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable
getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask
buildOutputCheckResult, launchCheckerEvents, throwExceptionIfNecessary, validateMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionSheetInstanceCloseSchedulingResourceSheet
public BTDataCollectionSheetInstanceCloseSchedulingResourceSheet()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the view sheet permission is activated or not.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollectionCheckable<Long,Void> - Returns:
- true, if the view sheet permission is active, false otherwise
-
executeProcess
protected Void executeProcess(Long sheetId, PoolKit poolKit) throws DAException, DAValidateException Closes the data collection sheet instance.- Specified by:
executeProcessin classAbstractCheckableBusinessTask<Long,Void> - Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the void
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkCanClose
Checks whether the closing operation is permitted.- Parameters:
sheet- theBODataCollectionSheet- Throws:
DAValidateException- the DA validate exception
-
loadSheet
protected BODataCollectionSheet loadSheet(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the BO data collection sheet
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
defineCheckerEvents
protected List<CheckerEvent<?>> defineCheckerEvents(Long sheetId, PoolKit poolKit) throws DAException, DAValidateException Defines the checker events.- Specified by:
defineCheckerEventsin classAbstractCheckableBusinessTask<Long,Void> - Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- a list of checker event elements of type CheckerEvent
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
loadSheetInstance
protected DataCollectionSheetInstance loadSheetInstance(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet instance.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the data collection sheet instance
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-