Class BTUserUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<UpdateUserEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<UpdateUserEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<UpdateUserEvent>
overit.geocallapp.wfm.core.bl.user.task.BTUserUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(value=UpdateUserEvent.class,
priority=-10)
public class BTUserUpdate
extends ValidPermissionBusinessTask<UpdateUserEvent>
Task that validate the
This task also provide some default values.
BOUser passed as event input before call the
update task on foundation layer. This task also provide some default values.
Required fields:
- user id
Permission:
BasePermissions.FOUNDATION_BASE_USER_EDIT
Error Code:
Codes.C270_0766: Value of filed email is invalid. Enter Email of type name@domain.comCodes.C270_0706: User to update not definedCodes.C270_1365: User Type not definedCodes.C270_0722: Surname not definedCodes.C270_0245: Name not definedCodes.C270_1368: Username not definedCodes.C270_0537: Gender value not validCodes.C270_0139: Can not update user. There is more than one user with the same usernameCodes.C270_1218: Can not insert user. There is a scheduling resource with the same username
Visibility:
- the user required must be associated to the same current user's operation
- Since:
- 10.1
- 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 voidaddDefaultValues(BOUser boUser) protected voidcheckUserVisibility(BOUser user, PoolKit pk) protected voidexecute(UpdateUserEvent event, PoolKit pk) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected voidMethods 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
-
BTUserUpdate
public BTUserUpdate()
-
-
Method Details
-
execute
Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<UpdateUserEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
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
- Throws:
DAValidateExceptionDAException
-
checkUserVisibility
- Throws:
DAValidateExceptionDAException
-
addDefaultValues
-