Class BTDataCollectionSheetInstanceAssociate<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.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociate<I>
- Type Parameters:
I- the generic type
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTDataCollectionSheetInstanceAssociateToAccount,BTDataCollectionSheetInstanceAssociateToAsset,BTDataCollectionSheetInstanceAssociateToSchedulingUser,BTDataCollectionSheetInstanceAssociateToWOOperation
Business task in order to associate a
DataCollectionSheetInstance. Permission:
WfmPermissions.FSM_DATACOLLECTION_SHEET_EDIT
Errors:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckSheet(BODataCollectionSheet sheet, Long operationCenter) Checks the sheet.Returns the valid sheet scopes.booleanChecks whether the view sheet permission is activated or not.protected DataCollectionSheetInstanceloadSheetInstance(Long sheetId, PoolKit poolKit) Loads the sheet instance.protected voidsaveSheetInstance(DataCollectionSheetInstance sheetInstance, boolean skipExpressionsEvaluation, boolean calculateInitialValue, PoolKit poolKit) Saves the sheet instance.protected voidsaveSheetInstance(DataCollectionSheetInstance sheetInstance, PoolKit poolKit) Saves the sheet instance.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
-
Constructor Details
-
BTDataCollectionSheetInstanceAssociate
public BTDataCollectionSheetInstanceAssociate()
-
-
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
-
getValidSheetScopes
Returns the valid sheet scopes.- Returns:
- the valid sheet scopes
-
checkSheet
protected void checkSheet(BODataCollectionSheet sheet, Long operationCenter) throws DAValidateException, DAException Checks the sheet.- Parameters:
sheet- theBODataCollectionSheetoperationCenter- theBOOperationCenter- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadSheetInstance
protected DataCollectionSheetInstance loadSheetInstance(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet instance.- Parameters:
sheetId- theBODataCollectionSheetidpoolKit- thePoolKit- Returns:
- the data collection sheet instance
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
saveSheetInstance
protected void saveSheetInstance(DataCollectionSheetInstance sheetInstance, PoolKit poolKit) throws DAException, DAValidateException Saves the sheet instance.- Parameters:
sheetInstance- theDataCollectionSheetInstancepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
saveSheetInstance
protected void saveSheetInstance(DataCollectionSheetInstance sheetInstance, boolean skipExpressionsEvaluation, boolean calculateInitialValue, PoolKit poolKit) throws DAException, DAValidateException Saves the sheet instance.- Parameters:
sheetInstance- theDataCollectionSheetInstanceskipExpressionsEvaluation- the skip expressions evaluationcalculateInitialValue- the calculate initial valuepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-