Class BTSkillConfigurationSkillInsert
java.lang.Object
overit.geocall.bl.BusinessTask<SkillConfigurationSkillInsertEvent>
overit.geocallapp.wfm.skills.bl.configuration.skill.task.BTSkillConfigurationSkillInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(SkillConfigurationSkillInsertEvent.class)
public class BTSkillConfigurationSkillInsert
extends BusinessTask<SkillConfigurationSkillInsertEvent>
- Since:
- 17
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SkillConfigurationSkillInsertEvent event, PoolKit poolKit) Inserts the givenBOSkillConfigurationSkilland writes the newly generated id into the event journal.protected voidinsertHistory(Long skillConfigurationSkill, PoolKit poolKit) Insert the history for all the currently savedSkillConfigurationSkillHistoryEventfor the specificBOSkillConfigurationSkill.protected List<BOSkillConfigurationSkill> loadExistingRelations(BOSkillConfigurationSkill relation, PoolKit poolKit) Loads all the existingBOSkillConfigurationSkillrelations related to the given skill and skill configuration.protected voidvalidate(BOSkillConfigurationSkill relation, PoolKit poolKit) Validates the data before the insert.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSkillConfigurationSkillInsert
public BTSkillConfigurationSkillInsert()
-
-
Method Details
-
body
protected void body(SkillConfigurationSkillInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOSkillConfigurationSkilland writes the newly generated id into the event journal.- Specified by:
bodyin classBusinessTask<SkillConfigurationSkillInsertEvent>- Parameters:
event- theSkillConfigurationSkillInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadExistingRelations
protected List<BOSkillConfigurationSkill> loadExistingRelations(BOSkillConfigurationSkill relation, PoolKit poolKit) throws DAValidateException, DAException Loads all the existingBOSkillConfigurationSkillrelations related to the given skill and skill configuration.- Parameters:
relation- theBOSkillConfigurationSkillcontaining the skill and skill configurationpoolKit- thePoolKit- Returns:
- a list of loaded
BOSkillConfigurationSkill - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
validate
protected void validate(BOSkillConfigurationSkill relation, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the insert.- Parameters:
relation- theBOSkillConfigurationSkillrelationpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
insertHistory
protected void insertHistory(Long skillConfigurationSkill, PoolKit poolKit) throws DAValidateException, DAException Insert the history for all the currently savedSkillConfigurationSkillHistoryEventfor the specificBOSkillConfigurationSkill.- Parameters:
skillConfigurationSkill- the skill configuration skillpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-