Class SkillConfigurationSkillService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.skills.rs1.skillconfigurationskill.SkillConfigurationSkillService
@RestController
@RequestMapping("workforce/skills/r1/configurations/{configurationId:[0-9]+}/skills")
@Resource(logging=true)
public class SkillConfigurationSkillService
extends PrivateService
Service to manage skill configuration skills.
- Since:
- 17.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes all theDTOSkillConfigurationSkillrelation related to the given skill configuration id and skill id.org.springframework.http.ResponseEntity<DTOSkillConfigurationSkill> get(Long configurationId, Long skillId, Collection<String> fields) Retrieves the requiredDTOSkillConfigurationSkillby calling from theSkillConfigurationSkillSearchEvent.org.springframework.http.ResponseEntity<PageResponse<DTOSkillConfigurationSkill>> getCollection(Long configurationId, @Valid Page page, Collection<String> fields, String order, @Valid DTOSkillConfigurationSkillFilter filter) Returns the collection of all the storedDTOSkillConfigurationSkills by calling theSkillConfigurationSkillSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long configurationId, Long skillId, @Valid DTOSkillConfigurationSkillUpdate input) Updates the requiredDTOSkillConfigurationSkillrelation by calling theSkillConfigurationSkillUpdateEvent.org.springframework.http.ResponseEntity<Void> post(Long configurationId, @Valid DTOSkillConfigurationSkillInsert input) Creates a newDTOSkillConfigurationSkillrelation by calling theDTOSkillConfigurationSkillInsert.
-
Constructor Details
-
SkillConfigurationSkillService
public SkillConfigurationSkillService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOSkillConfigurationSkill>> getCollection(@PathVariable("configurationId") Long configurationId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOSkillConfigurationSkillFilter filter) throws DAValidateException, DAException Returns the collection of all the storedDTOSkillConfigurationSkills by calling theSkillConfigurationSkillSearchEvent.- Parameters:
configurationId- the skill configuration idpage- thePagethat will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOSkillConfigurationSkillFilter- Returns:
- the collection of
DTOSkillConfigurationSkill - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{skillId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOSkillConfigurationSkill> get(@PathVariable("configurationId") Long configurationId, @PathVariable("skillId") Long skillId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOSkillConfigurationSkillby calling from theSkillConfigurationSkillSearchEvent.- Parameters:
configurationId- the skill configuration idskillId- the skill idfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded skill configuration 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("configurationId") Long configurationId, @Valid @RequestBody @Valid DTOSkillConfigurationSkillInsert input) throws DAValidateException, DAException Creates a newDTOSkillConfigurationSkillrelation by calling theDTOSkillConfigurationSkillInsert.- Parameters:
configurationId- the skill configuration idinput- theDTOSkillConfigurationSkillInsert- 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("configurationId") Long configurationId, @PathVariable("skillId") Long skillId, @Valid @RequestBody @Valid DTOSkillConfigurationSkillUpdate input) throws DAValidateException, DAException Updates the requiredDTOSkillConfigurationSkillrelation by calling theSkillConfigurationSkillUpdateEvent.- Parameters:
configurationId- the skill configuration idskillId- the skill idinput- theDTOSkillConfigurationSkillUpdate- 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("configurationId") Long configurationId, @PathVariable("skillId") Long skillId) throws DAValidateException, DAException Deletes all theDTOSkillConfigurationSkillrelation related to the given skill configuration id and skill id.- Parameters:
configurationId- the configuration idskillId- the skill id- Returns:
- the response entity
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-