Class BTSkillDivisionSkillGroupedRelationDelete
java.lang.Object
overit.geocall.bl.BusinessTask<SkillDivisionSkillGroupedRelationDeleteEvent>
overit.geocallapp.wfm.skills.bl.division.skill.task.BTSkillDivisionSkillGroupedRelationDelete
- All Implemented Interfaces:
Serializable,Tool
@Event(SkillDivisionSkillGroupedRelationDeleteEvent.class)
@Permission("fsm.core.skill.edit")
public class BTSkillDivisionSkillGroupedRelationDelete
extends BusinessTask<SkillDivisionSkillGroupedRelationDeleteEvent>
Business task used in order to delete all the
.
SkillDivisionSkillGroupedRelation
that corresponds to the BOSkillDivisionSkill given as input. .
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SkillDivisionSkillGroupedRelationDeleteEvent event, PoolKit poolKit) Deletes theBOSkillDivisionSkills related to the given input.protected voiddeleteRelations(List<BOSkillDivisionSkill> existingRelations, PoolKit poolKit) Delete all the givenBOSkillDivisionSkillrelations.protected voidinsertHistory(Long skillDivision, PoolKit poolKit) Insert the history for all the currently savedBOSkillDivisionSkillfor the specificBOSkillDivision.protected List<BOSkillDivisionSkill> loadExistingRelations(BOSkillDivisionSkill relation, PoolKit poolKit) Loads all the existingBOSkillDivisionSkillrelations related to the given skill and skill division.protected voidvalidate(BOSkillDivisionSkill relation, PoolKit poolKit) Validates the data before the delete.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSkillDivisionSkillGroupedRelationDelete
public BTSkillDivisionSkillGroupedRelationDelete()
-
-
Method Details
-
body
protected void body(SkillDivisionSkillGroupedRelationDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes theBOSkillDivisionSkills related to the given input.- Specified by:
bodyin classBusinessTask<SkillDivisionSkillGroupedRelationDeleteEvent>- Parameters:
event- theSkillDivisionSkillGroupedRelationDeleteEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOSkillDivisionSkill relation, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the delete.- Parameters:
relation- theBOSkillDivisionSkillgiven as inputpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadExistingRelations
protected List<BOSkillDivisionSkill> loadExistingRelations(BOSkillDivisionSkill 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
-
deleteRelations
protected void deleteRelations(List<BOSkillDivisionSkill> existingRelations, PoolKit poolKit) throws DAException, DAValidateException Delete all the givenBOSkillDivisionSkillrelations.- Parameters:
existingRelations- list ofBOSkillDivisionSkillpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate 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
-