Class BTDataCollectionSheetInstanceDissociateBase<I>
java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<I>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<I>
overit.geocallapp.wfm.orchestrator.documents.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceDissociateBase<I>
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTDataCollectionSheetInstanceDissociateFromAccount,BTDataCollectionSheetInstanceDissociateFromAsset,BTDataCollectionSheetInstanceDissociateFromSchedulingUser
Base class for dissociating a user , asset or account from a
BODataCollectionSheet. - Since:
- 22.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckSheet(BODataCollectionSheet sheet) Checks the sheet.protected DocumentsIntegrationServicegetIntegrationService(PoolKit poolKit) Retrieves theDocumentsIntegrationServiceinstance.booleanChecks whether the view sheet permission is activated or not.protected BODataCollectionSheetLoads the sheet.protected voidupdateSheet(BODataCollectionSheet sheet, PoolKit poolKit) Updates the sheet.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, execute, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
documentsIntegrationService
-
-
Constructor Details
-
BTDataCollectionSheetInstanceDissociateBase
public BTDataCollectionSheetInstanceDissociateBase()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the view sheet permission is activated or not.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<I>- Returns:
- true, if the view sheet permission is active, false otherwise
-
checkSheet
Checks the sheet.- 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
-
updateSheet
protected void updateSheet(BODataCollectionSheet sheet, PoolKit poolKit) throws DAValidateException, DAException Updates the sheet.- Parameters:
sheet- theBODataCollectionSheetpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getIntegrationService
protected DocumentsIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Retrieves theDocumentsIntegrationServiceinstance. If the instance hasn't been created yet, it will be created and stored for future use.- Parameters:
poolKit- ThePoolKit.- Returns:
- The
DocumentsIntegrationServiceinstance. - Throws:
DAValidateException- If any validation error occurs.
-