Class BTResourceSkillInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ResourceSkillInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ResourceSkillInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ResourceSkillInsertEvent>
overit.geocallapp.wfm.resources.bl.resource.skill.task.BTResourceSkillInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ResourceSkillInsertEvent.class)
public class BTResourceSkillInsert
extends ValidPermissionBusinessTask<ResourceSkillInsertEvent>
Business task to insert a
When the
BOResourceSkill object. When the
ResourceSkillInsertEvent event is launched the BT notices the
call and inserts the BOResourceSkill object basing on the event's input. Permission:
- 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(ResourceSkillInsertEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected voidnotifyInsert(BOResourceSkill input, PoolKit poolKit) Notifies that a resource skill was inserted.protected voidvalidateAssociation(BOResourceSkill input, PoolKit poolKit) Validates if already exists an association between a given scheduling user object and a given skill object.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
-
BTResourceSkillInsert
public BTResourceSkillInsert()
-
-
Method Details
-
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
-
execute
protected void execute(ResourceSkillInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ResourceSkillInsertEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
validateAssociation
protected void validateAssociation(BOResourceSkill input, PoolKit poolKit) throws DAValidateException, DAException Validates if already exists an association between a given scheduling user object and a given skill object.- Parameters:
input- theBOResourceSkillto be insertedpoolKit- thePoolKitpoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
notifyInsert
protected void notifyInsert(BOResourceSkill input, PoolKit poolKit) throws DAException, DAValidateException Notifies that a resource skill was inserted.- Parameters:
input- the insertedBOResourceSkillpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-