Class BTDataCollectionSheetInstanceAssociateToAsset
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceAssociateToAssetEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceAssociateToAssetEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceAssociateToAssetEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToAssetEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociateToAsset
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceAssociateToAssetEvent.class)
public class BTDataCollectionSheetInstanceAssociateToAsset
extends BTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToAssetEvent>
Business task in order to associate an asset to a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceAssociateToAssetEvent is launched
the BT notices the call and associates the asset to the DataCollectionSheetInstance basing on the event's input. - Since:
- 22.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAssetVisibility(Long assetId, Long operationCenter, PoolKit poolKit) Checks the asset visibility.protected voidexecute(DataCollectionSheetInstanceAssociateToAssetEvent event, PoolKit poolKit) Associates the asset to the data collection sheet instance.Returns the valid sheet scopes.protected voidValidates the input.Methods inherited from class overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociate
checkSheet, isValidExecution, loadSheetInstance, saveSheetInstance, saveSheetInstanceMethods 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, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionSheetInstanceAssociateToAsset
public BTDataCollectionSheetInstanceAssociateToAsset()
-
-
Method Details
-
getValidSheetScopes
Returns the valid sheet scopes.- Specified by:
getValidSheetScopesin classBTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToAssetEvent>- Returns:
- the valid sheet scopes
-
execute
protected void execute(DataCollectionSheetInstanceAssociateToAssetEvent event, PoolKit poolKit) throws DAException, DAValidateException Associates the asset to the data collection sheet instance.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceAssociateToAssetEvent>- Parameters:
event- theDataCollectionSheetInstanceAssociateToAssetEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkAssetVisibility
protected void checkAssetVisibility(Long assetId, Long operationCenter, PoolKit poolKit) throws DAException, DAValidateException Checks the asset visibility.- Parameters:
assetId- the asset idoperationCenter- the operation centerpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(DataCollectionSheetInstanceAssociateToAssetInput input) throws DAValidateException Validates the input.- Parameters:
input- theDataCollectionSheetInstanceAssociateToAssetInput- Throws:
DAValidateException- the DA validate exception
-