Class BTOperationCenterMainAddress
java.lang.Object
overit.geocall.bl.BusinessTask<OperationCenterMainAddressEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OperationCenterMainAddressEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OperationCenterMainAddressEvent>
overit.geocallapp.wfm.core.bl.base.operationcenter.address.task.BTOperationCenterMainAddress
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OperationCenterMainAddressEvent.class)
public class BTOperationCenterMainAddress
extends ValidPermissionBusinessTask<OperationCenterMainAddressEvent>
Business task in order to set the main address for an operation center
When the
When the
OperationCenterMainAddressEvent is launched the BT notices the call and updates the
main operation center address basing on the event's input. Permission:
WfmPermissions.FSM_CORE_STRUCTURE_VIEWORWfmPermissions.FSM_CORE_STRUCTURE_EDIT
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property {0}Codes.C270_0239: Element not found
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(OperationCenterMainAddressEvent event, PoolKit pk) Update the main operation center addressbooleanDetermines whether the current state is valid for execution.protected voidvalidate(OperationCenterMainAddressInput input, 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
-
Field Details
-
daoOCAddress
-
-
Constructor Details
-
BTOperationCenterMainAddress
public BTOperationCenterMainAddress()
-
-
Method Details
-
execute
protected void execute(OperationCenterMainAddressEvent event, PoolKit pk) throws DAException, DAValidateException Update the main operation center address- Specified by:
executein classValidExecutionBusinessTask<OperationCenterMainAddressEvent>- Parameters:
event- theOperationCenterMainAddressEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate 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
-
validate
protected void validate(OperationCenterMainAddressInput input, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-