Class SkillConfigurationDivisionService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.skills.rs1.skillconfigurationdivision.SkillConfigurationDivisionService
@RestController
@RequestMapping("workforce/skills/r1/configurations/{configurationId:[0-9]+}/divisions")
@Resource(logging=true)
public class SkillConfigurationDivisionService
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<DTOSkillConfigurationDivision> get(Long configurationId, Long divisionId, Collection<String> fields) Retrieves the required skill configuration division by calling theSkillConfigurationDivisionLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOSkillConfigurationDivision>> getCollection(Long configurationId, @Valid Page page, Collection<String> fields, String order, @Valid DTOSkillConfigurationDivisionFilter filter) Returns the collection of all the stored skill configuration divisions by calling theSkillConfigurationDivisionSearchEvent.org.springframework.http.ResponseEntity<Void> post(Long configurationId, @Valid DTOSkillConfigurationDivisionInsert input) Creates a new skill configuration division by calling theSkillConfigurationDivisionInsertEvent.
-
Constructor Details
-
SkillConfigurationDivisionService
public SkillConfigurationDivisionService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOSkillConfigurationDivision>> 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 DTOSkillConfigurationDivisionFilter filter) throws DAValidateException, DAException Returns the collection of all the stored skill configuration divisions by calling theSkillConfigurationDivisionSearchEvent.- Parameters:
configurationId- the ID of the skill division related to the skill configuration divisions to be searchedpage- the page that will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOSkillConfigurationDivisionFilter- Returns:
- the collection of
DTOSkillConfigurationDivisions - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
get
@GetMapping(value="{divisionId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOSkillConfigurationDivision> get(@PathVariable("configurationId") Long configurationId, @PathVariable("divisionId") Long divisionId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required skill configuration division by calling theSkillConfigurationDivisionLoadEvent.- Parameters:
configurationId- the ID of the skill division related to the skill configuration division to be loadeddivisionId- the ID of the skill configuration division to be loadedfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded skill configuration division
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> post(@PathVariable("configurationId") Long configurationId, @Valid @RequestBody @Valid DTOSkillConfigurationDivisionInsert input) throws DAValidateException, DAException Creates a new skill configuration division by calling theSkillConfigurationDivisionInsertEvent.- Parameters:
configurationId- the ID of the skill division related to the skill configuration division to be insertedinput- theDTOSkillConfigurationDivisionInsert- Returns:
- the response containing the ID of the newly created skill configuration division
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
delete
@DeleteMapping(value="{divisionId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("configurationId") Long configurationId, @PathVariable("divisionId") Long divisionId) throws DAValidateException, DAException Deletes all theDTOSkillDivisionSkillrelation related to the given skill division id and skill id.- Parameters:
configurationId- the skill configuration iddivisionId- the division id- Returns:
- the response entity
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-