Class BTMeterUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MeterUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MeterUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MeterUpdateEvent>
overit.geocallapp.wfm.accounts.bl.meter.task.BTMeterUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MeterUpdateEvent.class)
public class BTMeterUpdate
extends ValidPermissionBusinessTask<MeterUpdateEvent>
Business task in order to update a
When the
Permission: Error Code:
BOMeter. When the
MeterUpdateEvent is launched
the BT notices the call and updates the BOMeter basing on the event's input. Permission: Error Code:
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(MeterUpdateEvent event, PoolKit poolKit) Updates theBOMeterwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidValidates the data before the update.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTMeterUpdate
public BTMeterUpdate()
-
-
Method Details
-
execute
protected void execute(MeterUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOMeterwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<MeterUpdateEvent>- Parameters:
event- theMeterUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data before the update.- Parameters:
meter- theBOMeterto updatepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-