Class ResourceForecastSkillService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.resource.skill.ResourceForecastSkillService
@RestController
@RequestMapping("planning/forecast-capacity/r1/resource-forecasts/{resourceForecastId:[0-9]+}/skills")
@Resource(logging=true)
public class ResourceForecastSkillService
extends PrivateService
Services to manage a
BOResourceForecastSkill object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes the requiredBOResourceForecastSkillobject from a givenBOResourceForecastHeaderobject by calling theForecastResourceSkillDeleteEventeventorg.springframework.http.ResponseEntity<DTOResourceForecastSkill> get(Long forecastHeaderId, Long id, Collection<String> fields) Retrieves the requiredBOResourceForecastSkillobject by calling theForecastResourceSkillLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOResourceForecastSkill>> getCollection(Long forecastHeaderId, @Valid Page page, String order, Collection<String> fields, @Valid DTOResourceForecastSkillSearchFilter filter) Retrieves the collection of all the storedBOResourceForecastSkillobject by calling theForecastResourceSkillSearchEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long forecastHeaderId, @Valid DTOForecastResourceInsert dto) Creates a newBOResourceForecastSkillobject by calling theForecastResourceSkillInsertEventevent
-
Constructor Details
-
ResourceForecastSkillService
public ResourceForecastSkillService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOResourceForecastSkill>> getCollection(@PathVariable("resourceForecastId") Long forecastHeaderId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOResourceForecastSkillSearchFilter filter) throws DAValidateException, DAException Retrieves the collection of all the storedBOResourceForecastSkillobject by calling theForecastResourceSkillSearchEventevent- Parameters:
forecastHeaderId- theBOResourceForecastSkillobject's forecastHeader fieldpage- the pageorder- the orderfields- the collection of fields that will be contained in the responsefilter- theDTOResourceForecastSkillSearchFilterobject- Returns:
- the collection of
DTOResourceForecastSkills - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{skillId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourceForecastSkill> get(@PathVariable("resourceForecastId") Long forecastHeaderId, @PathVariable("skillId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOResourceForecastSkillobject by calling theForecastResourceSkillLoadEventevent- Parameters:
forecastHeaderId- theBOResourceForecastSkillobject's forecastHeader fieldid- theBOResourceForecastSkillobject's id fieldfields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTOForecastResource - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@PathVariable("resourceForecastId") Long forecastHeaderId, @Valid @RequestBody @Valid DTOForecastResourceInsert dto) throws DAValidateException, DAException Creates a newBOResourceForecastSkillobject by calling theForecastResourceSkillInsertEventevent- Parameters:
forecastHeaderId- theBOResourceForecastSkillobject's forecastHeader fielddto- theDTOResourceForecastSkillInsertobject- Returns:
- the response containing the ID of the newly created
BOResourceForecastSkill - 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("resourceForecastId") Long forecastHeaderId, @PathVariable("skillId") Long id) throws DAValidateException, DAException Deletes the requiredBOResourceForecastSkillobject from a givenBOResourceForecastHeaderobject by calling theForecastResourceSkillDeleteEventevent- Parameters:
forecastHeaderId- theBOResourceForecastSkillobject's forecastHeader fieldid- the id of theBOResourceForecastSkillobject to be deleted- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-