Class ActivityForecastSkillService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.activity.skill.ActivityForecastSkillService
@RestController
@RequestMapping("planning/forecast-capacity/r1/activity-forecasts/{activityForecastId:[0-9]+}/skills")
@Resource(logging=true)
public class ActivityForecastSkillService
extends PrivateService
Services to manage a
BOForecastActivitySkill object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes the requiredBOForecastActivitySkillobject from a givenBOActivityForecastHeaderobject by calling theForecastActivitySkillDeleteEventeventorg.springframework.http.ResponseEntity<DTOActivityForecastSkill> get(Long forecastHeaderId, Long id, Collection<String> fields) Retrieves the requiredBOForecastActivitySkillobject by calling theForecastActivitySkillLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOActivityForecastSkill>> getCollection(@Valid Page page, String order, Collection<String> fields, Long forecastHeaderId, @Valid DTOActivityForecastSkillSearchFilter filter) Retrieves the collection of all the storedBOForecastActivitySkillobjects by calling theForecastActivitySkillSearchEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long forecastHeaderId, @Valid DTOActivityForecastSkillInsert dto) Creates a newBOForecastActivitySkillobject by calling theForecastActivitySkillInsertEventevent
-
Constructor Details
-
ActivityForecastSkillService
public ActivityForecastSkillService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOActivityForecastSkill>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @PathVariable("activityForecastId") Long forecastHeaderId, @Valid @Valid DTOActivityForecastSkillSearchFilter filter) throws DAValidateException, DAException Retrieves the collection of all the storedBOForecastActivitySkillobjects by calling theForecastActivitySkillSearchEventevent- Parameters:
forecastHeaderId- theBOForecastActivitySkillobject 's forecastHeader fieldfilter- theDTOActivityForecastSkillSearchFilterobject- 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<DTOActivityForecastSkill> get(@PathVariable("activityForecastId") Long forecastHeaderId, @PathVariable("skillId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastActivitySkillobject by calling theForecastActivitySkillLoadEventevent- Parameters:
forecastHeaderId- theBOForecastActivitySkill's forecastHeader fieldid- theBOForecastActivitySkillobject's id field- Returns:
- the response containing the loaded
DTOActivityForecastSkill - 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("activityForecastId") Long forecastHeaderId, @Valid @RequestBody @Valid DTOActivityForecastSkillInsert dto) throws DAValidateException, DAException Creates a newBOForecastActivitySkillobject by calling theForecastActivitySkillInsertEventevent- Parameters:
forecastHeaderId- theBOForecastActivitySkillobject 's forecastHeader fielddto- theDTOActivityForecastSkillInsertobject- Returns:
- the response containing the ID of the newly created
BOForecastActivitySkill - 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("activityForecastId") Long forecastHeaderId, @PathVariable("skillId") Long id) throws DAValidateException, DAException Deletes the requiredBOForecastActivitySkillobject from a givenBOActivityForecastHeaderobject by calling theForecastActivitySkillDeleteEventevent- Parameters:
forecastHeaderId- theBOForecastActivitySkillobject 's forecastHeader fieldid- the id of theBOForecastActivitySkillobject to delete- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-