Class BTSkillDivisionSkillGroupedRelationInsert
java.lang.Object
overit.geocall.bl.BusinessTask<SkillDivisionSkillGroupedRelationInsertEvent>
overit.geocallapp.wfm.skills.bl.division.skill.task.BTSkillDivisionSkillGroupedRelationInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(SkillDivisionSkillGroupedRelationInsertEvent.class)
@Permission("fsm.core.skill.edit")
public class BTSkillDivisionSkillGroupedRelationInsert
extends BusinessTask<SkillDivisionSkillGroupedRelationInsertEvent>
Business task in order to insert a
When the
SkillDivisionSkillGroupedRelation, i.e. a group of BOSkillDivisionSkill. When the
SkillDivisionSkillGroupedRelationInsertEvent is launched
the BT notices the call and inserts as many BOSkillDivisionSkill as indicated in the given SkillDivisionSkillGroupedRelation. Error Code:
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SkillDivisionSkillGroupedRelationInsertEvent event, PoolKit poolKit) Inserts the given group ofBOSkillDivisionSkill.protected voidinsertHistory(Long skillDivision, PoolKit poolKit) Insert the history for all the currently savedBOSkillDivisionSkillfor the specificBOSkillDivision.protected List<BOSkillDivisionSkill> loadExistingRelations(SkillDivisionSkillGroupedRelation relation, PoolKit poolKit) Loads all the existingBOSkillDivisionSkillrelations related to the given skill and skill division.protected voidvalidate(SkillDivisionSkillGroupedRelation relation, PoolKit poolKit) Validates the data before the insert.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSkillDivisionSkillGroupedRelationInsert
public BTSkillDivisionSkillGroupedRelationInsert()
-
-
Method Details
-
body
protected void body(SkillDivisionSkillGroupedRelationInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the given group ofBOSkillDivisionSkill.- Specified by:
bodyin classBusinessTask<SkillDivisionSkillGroupedRelationInsertEvent>- Parameters:
event- theSkillDivisionSkillGroupedRelationInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadExistingRelations
protected List<BOSkillDivisionSkill> loadExistingRelations(SkillDivisionSkillGroupedRelation relation, PoolKit poolKit) throws DAValidateException, DAException Loads all the existingBOSkillDivisionSkillrelations related to the given skill and skill division.- Parameters:
relation- theSkillDivisionSkillGroupedRelationcontaining the skill and skill divisionpoolKit- thePoolKit- Returns:
- a list of loaded
BOSkillDivisionSkill - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
validate
protected void validate(SkillDivisionSkillGroupedRelation relation, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the insert.- Parameters:
relation- theBOSkillDivisionSkillrelationpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
insertHistory
protected void insertHistory(Long skillDivision, PoolKit poolKit) throws DAValidateException, DAException Insert the history for all the currently savedBOSkillDivisionSkillfor the specificBOSkillDivision.- Parameters:
skillDivision- the skill divisionpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-