Class BTMeterBrandUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MeterBrandUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MeterBrandUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MeterBrandUpdateEvent>
overit.geocallapp.wfm.accounts.bl.meter.brand.task.BTMeterBrandUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MeterBrandUpdateEvent.class)
public class BTMeterBrandUpdate
extends ValidPermissionBusinessTask<MeterBrandUpdateEvent>
Business task in order to update a
When the
BOMeterBrand. When the
MeterBrandUpdateEvent is launched
the BT notices the call and updates the BOMeterBrand basing on the event's input. Required fields:
- meter brand id
Permission:
Error Code:
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(MeterBrandUpdateEvent event, PoolKit pk) Updates a newBOMeterBrandwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOMeterBrand meterBrand, PoolKit pk) 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
-
BTMeterBrandUpdate
public BTMeterBrandUpdate()
-
-
Method Details
-
execute
protected void execute(MeterBrandUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates a newBOMeterBrandwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<MeterBrandUpdateEvent>- Parameters:
event- theMeterBrandUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOMeterBrand meterBrand, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
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
-