Class BTResourceSkillUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<ResourceSkillUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ResourceSkillUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ResourceSkillUpdateEvent>
overit.geocallapp.wfm.resources.bl.resource.skill.task.BTResourceSkillUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ResourceSkillUpdateEvent.class)
public class BTResourceSkillUpdate
extends ValidPermissionBusinessTask<ResourceSkillUpdateEvent>
Business task in order to update a
When the
BOResourceSkill. When the
ResourceSkillUpdateEvent is launched the BT notices the call and
updates the BOResourceSkill basing on the event's input. Required fields:
- skill Level Id
Permission:
Error Code:
Codes.PROPERTY_REQUIRED: Property skill level id is required
- Since:
- 16.0
- 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(ResourceSkillUpdateEvent event, PoolKit pk) Updates a newBOResourceSkillwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidnotifyUpdate(BOResourceSkill input, PoolKit poolKit) Notifies that a resource skill was updated.protected static voidUpdates the required resource skillprotected voidvalidate(BOResourceSkill resourceSkill, PoolKit pk) Validate 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
-
BTResourceSkillUpdate
public BTResourceSkillUpdate()
-
-
Method Details
-
execute
protected void execute(ResourceSkillUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates a newBOResourceSkillwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<ResourceSkillUpdateEvent>- Parameters:
event- theResourceSkillUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateResourceSkill
protected static void updateResourceSkill(BOResourceSkill bo, PoolKit pk) throws DAException, DAValidateException Updates the required resource skill- Parameters:
bo- the currentBOResourceSkillpk- thePoolKit- Throws:
DAExceptionDAValidateException- if the item is not update
-
validate
protected void validate(BOResourceSkill resourceSkill, PoolKit pk) throws DAValidateException, DAException Validate the data before the update.- Parameters:
resourceSkill- the currentBOResourceSkillpk- 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
-
notifyUpdate
protected void notifyUpdate(BOResourceSkill input, PoolKit poolKit) throws DAException, DAValidateException Notifies that a resource skill was updated.- Parameters:
input- the updatedBOResourceSkillpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-