Class BTDataCollectionSheetInstanceAssociateToAccount
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceAssociateToAccountEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceAssociateToAccountEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceAssociateToAccountEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToAccountEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociateToAccount
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceAssociateToAccountEvent.class)
public class BTDataCollectionSheetInstanceAssociateToAccount
extends BTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToAccountEvent>
Business task in order to associate an account to a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceAssociateToAccountEvent is launched
the BT notices the call and associates the account to the DataCollectionSheetInstance basing on the event's input. - Since:
- 22.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionSheetInstanceAssociateToAccountEvent event, PoolKit poolKit) Associates the account to the data collection sheet instance.protected voidexistsAccount(Long accountId, PoolKit poolKit) Checks if the account exists.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
-
BTDataCollectionSheetInstanceAssociateToAccount
public BTDataCollectionSheetInstanceAssociateToAccount()
-
-
Method Details
-
getValidSheetScopes
Returns the valid sheet scopes.- Specified by:
getValidSheetScopesin classBTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToAccountEvent>- Returns:
- the valid sheet scopes
-
execute
protected void execute(DataCollectionSheetInstanceAssociateToAccountEvent event, PoolKit poolKit) throws DAException, DAValidateException Associates the account to the data collection sheet instance.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceAssociateToAccountEvent>- Parameters:
event- theDataCollectionSheetInstanceAssociateToAccountEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
existsAccount
protected void existsAccount(Long accountId, PoolKit poolKit) throws DAException, DAValidateException Checks if the account exists.- Parameters:
accountId- the account idpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(DataCollectionSheetInstanceAssociateToAccountInput input) throws DAValidateException Validates the input.- Parameters:
input- theDataCollectionSheetInstanceAssociateToAccountInput- Throws:
DAValidateException- the DA validate exception
-