Class ForecastActivityDetailService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.activity.detail.ForecastActivityDetailService
@RestController
@RequestMapping("planning/forecast-capacity/r1/activity-forecasts/{activityForecastId:[0-9]+}/details")
@Resource(logging=true)
public class ForecastActivityDetailService
extends PrivateService
Services to manage a
BOForecastActivityDetail object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes the requiredBOForecastActivityDetailobject from a givenBOActivityForecastHeaderobject by calling theForecastActivityDetailDeleteEventeventorg.springframework.http.ResponseEntity<DTOForecastActivityDetail> get(Long forecastHeaderId, Long detailId, Collection<String> fields) Retrieves the requiredBOForecastActivityDetailobject by calling theForecastActivityDetailLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOForecastActivityDetail>> getCollection(@Valid Page page, String order, Collection<String> fields, Long forecastHeaderId, @Valid DTOForecastActivityDetailSearchFilter filter) Returns the collection of all the storedBOForecastActivityDetailobjects by calling theForecastActivityDetailLoadEventeventorg.springframework.http.ResponseEntity<Void> patch(Long forecastHeaderId, Long detailId, @Valid DTOForecastActivityDetailUpdate dto) Updates the requiredBOForecastActivityDetailobject by calling theForecastActivityDetailUpdateEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long forecastHeaderId, @Valid DTOForecastActivityDetailInsert dto) Create a newBOForecastActivityDetailobject by calling theForecastActivityDetailInsertEventevent
-
Constructor Details
-
ForecastActivityDetailService
public ForecastActivityDetailService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOForecastActivityDetail>> 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 DTOForecastActivityDetailSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOForecastActivityDetailobjects by calling theForecastActivityDetailLoadEventevent- Parameters:
forecastHeaderId- theBOForecastActivityDetail's forecastHeader fieldfilter- theDTOForecastActivityDetailSearchFilterobject- Returns:
- the collection of
DTOForecastActivityDetails - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{detailId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOForecastActivityDetail> get(@PathVariable("activityForecastId") Long forecastHeaderId, @PathVariable("detailId") Long detailId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastActivityDetailobject by calling theForecastActivityDetailLoadEventevent- Parameters:
forecastHeaderId- theBOForecastActivityDetail's forecastHeader fielddetailId- theBOForecastActivityDetail's id field- Returns:
- the response containing the loaded
DTOCapacityPlanningScenario - 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 DTOForecastActivityDetailInsert dto) throws DAValidateException, DAException Create a newBOForecastActivityDetailobject by calling theForecastActivityDetailInsertEventevent- Parameters:
forecastHeaderId- theBOForecastActivityDetail's forecastHeader fielddto- theDTOForecastActivityDetailInsertobject- Returns:
- the response containing the ID of the newly created
BOForecastActivityDetail - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{detailId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("activityForecastId") Long forecastHeaderId, @PathVariable("detailId") Long detailId, @Valid @RequestBody @Valid DTOForecastActivityDetailUpdate dto) throws DAValidateException, DAException Updates the requiredBOForecastActivityDetailobject by calling theForecastActivityDetailUpdateEventevent- Parameters:
forecastHeaderId- theBOForecastActivityobject's forecastHeader fielddetailId- id of theBOForecastActivityDetailobject to updatedto- theDTOForecastActivityDetailUpdateobject- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{detailId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("activityForecastId") Long forecastHeaderId, @PathVariable("detailId") Long detailId) throws DAValidateException, DAException Deletes the requiredBOForecastActivityDetailobject from a givenBOActivityForecastHeaderobject by calling theForecastActivityDetailDeleteEventevent- Parameters:
forecastHeaderId- theBOForecastActivityDetail's forecastHeader fielddetailId- the id of theBOForecastActivityDetailobject to be deleted- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-