Class BTSchedulingUserUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulingUserUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SchedulingUserUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SchedulingUserUpdateEvent>
overit.geocallapp.wfm.core.bl.schedule.schedulingresource.user.task.BTSchedulingUserUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SchedulingUserUpdateEvent.class)
public class BTSchedulingUserUpdate
extends ValidPermissionBusinessTask<SchedulingUserUpdateEvent>
Business task in order to update a
When the
BOSchedulingUser. When the
SchedulingUserUpdateEvent is launched the BT notices the
call and updates the BOSchedulingUser basing on the event's input.
Error Code:
Codes.C270_1365: User Type not definedCodes.C270_1016: Scheduling resource to update not definedCodes.C270_0695: Operation center not definedCodes.C270_0722: Surname not definedCodes.C270_0245: Name not definedCodes.C270_0766: Value of filed {0} is invalid. Enter Email of type name@domain.comCodes.C270_1368: Username not definedCodes.C270_0363: Serial number not definedCodes.C270_0048: Secondary serial number not definedCodes.C270_0537: Gender value not validCodes.C270_0054: Can not update scheduling resources. There is another scheduling resource with the same usernameCodes.C270_0441: Can not insert scheduling resource. There is another scheduling resource with the same serial number
Permission:
- Since:
- 9.2
- 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 voidafterUpdate(BOSchedulingUser bo, PoolKit pk) Actions to perform after the insertionprotected voidexecute(SchedulingUserUpdateEvent event, PoolKit pk) Updates theBOSchedulingUserwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidupdate(BOSchedulingUser boSchedulingResource, PoolKit pk) Performs theBOSchedulingUserupdateprotected voidvalidate(BOSchedulingUser boSchedulingResource, PoolKit pk) Checks if the update is possible by performing some validations on the givenBOSchedulingUserMethods 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
-
operationCenterAddresses
-
resourceAddresses
-
-
Constructor Details
-
BTSchedulingUserUpdate
public BTSchedulingUserUpdate()
-
-
Method Details
-
execute
protected void execute(SchedulingUserUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOSchedulingUserwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<SchedulingUserUpdateEvent>- Parameters:
event- theSchedulingUserUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOSchedulingUser boSchedulingResource, PoolKit pk) throws DAValidateException, DAException Checks if the update is possible by performing some validations on the givenBOSchedulingUser- Parameters:
boSchedulingResource- the scheduling resourcepk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
update
protected void update(BOSchedulingUser boSchedulingResource, PoolKit pk) throws DAException, DAValidateException Performs theBOSchedulingUserupdate- Parameters:
boSchedulingResource- the scheduling resourcepk- 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
-
afterUpdate
Actions to perform after the insertion- Parameters:
bo- the scheduling userpk- thePoolKit
-