Class SkillDivisionSkillService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.skills.rs1.skilldivisionskill.SkillDivisionSkillService
@RestController
@RequestMapping("workforce/skills/r1/divisions/{divisionId:[0-9]+}/skills")
@Resource(logging=true)
public class SkillDivisionSkillService
extends PrivateService
Service to manage skill configuration divisions.
- Since:
- 17.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes all theDTOSkillDivisionSkillrelation related to the given skill division id and skill id.org.springframework.http.ResponseEntity<DTOSkillDivisionSkill> get(Long divisionId, Long skillId, Collection<String> fields) Retrieves the requiredDTOSkillDivisionSkillby calling from theSkillDivisionSkillGroupedRelationSearchEvent.org.springframework.http.ResponseEntity<PageResponse<DTOSkillDivisionSkill>> getCollection(Long divisionId, @Valid Page page, Collection<String> fields, String order, @Valid DTOSkillDivisionSkillFilter filter) Returns the collection of all the storedDTOSkillDivisionSkills by calling theSkillDivisionSkillGroupedRelationSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long divisionId, Long skillId, @Valid DTOSkillDivisionSkillUpdate input) Updates the requiredDTOSkillDivisionSkillrelation by calling theSkillDivisionSkillGroupedRelationUpdateEvent.org.springframework.http.ResponseEntity<Void> post(Long divisionId, @Valid DTOSkillDivisionSkillInsert input) Creates a newDTOSkillDivisionSkillrelation by calling theSkillDivisionSkillGroupedRelationInsertEvent.
-
Constructor Details
-
SkillDivisionSkillService
public SkillDivisionSkillService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOSkillDivisionSkill>> getCollection(@PathVariable("divisionId") Long divisionId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOSkillDivisionSkillFilter filter) throws DAValidateException, DAException Returns the collection of all the storedDTOSkillDivisionSkills by calling theSkillDivisionSkillGroupedRelationSearchEvent.- Parameters:
divisionId- the skill division idpage- thePagethat will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOSkillDivisionSkillFilter- Returns:
- the collection of
DTOSkillDivisionSkill - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{skillId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOSkillDivisionSkill> get(@PathVariable("divisionId") Long divisionId, @PathVariable("skillId") Long skillId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOSkillDivisionSkillby calling from theSkillDivisionSkillGroupedRelationSearchEvent.- Parameters:
divisionId- the skill division idskillId- the skill idfields- the collection of fields that will be contained in the response- Returns:
- the response response containing the loaded skill division skill
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> post(@PathVariable("divisionId") Long divisionId, @Valid @RequestBody @Valid DTOSkillDivisionSkillInsert input) throws DAValidateException, DAException Creates a newDTOSkillDivisionSkillrelation by calling theSkillDivisionSkillGroupedRelationInsertEvent.- Parameters:
divisionId- the skill division idinput- theDTOSkillDivisionSkillInsert- Returns:
- the response entity
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{skillId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("divisionId") Long divisionId, @PathVariable("skillId") Long skillId, @Valid @RequestBody @Valid DTOSkillDivisionSkillUpdate input) throws DAValidateException, DAException Updates the requiredDTOSkillDivisionSkillrelation by calling theSkillDivisionSkillGroupedRelationUpdateEvent.- Parameters:
divisionId- the skill division idskillId- the skill idinput- theDTOSkillDivisionSkillUpdate- Returns:
- the response entity
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{skillId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("divisionId") Long divisionId, @PathVariable("skillId") Long skillId) throws DAValidateException, DAException Deletes all theDTOSkillDivisionSkillrelation related to the given skill division id and skill id.- Parameters:
divisionId- the division idskillId- the skill id- Returns:
- the response entity
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-