Class ForecastResourceDetailService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.resource.detail.ForecastResourceDetailService
@RestController
@RequestMapping("planning/forecast-capacity/r1/resource-forecasts/{resourceForecastId:[0-9]+}/details")
@Resource(logging=true)
public class ForecastResourceDetailService
extends PrivateService
Services to manage a
BOForecastResourceDetail object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes the requiredBOForecastResourceDetailobject by calling theForecastResourceDetailDeleteEventeventorg.springframework.http.ResponseEntity<DTOForecastResourceDetail> get(Long forecastHeaderId, Long id, Collection<String> fields) Retrieves the requiredBOForecastResourceDetailobject by calling theForecastResourceDetailLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOForecastResourceDetail>> getCollection(Long forecastHeaderId, @Valid Page page, String order, Collection<String> fields, @Valid DTOForecastResourceDetailSearchFilter filter) Returns the collection of all the storedBOForecastResourceDetailobjects by calling theForecastResourceDetailSearchEventeventorg.springframework.http.ResponseEntity<Void> patch(Long forecastHeaderId, Long id, @Valid DTOForecastResourceDetailUpdate dto) Updates the requiredBOForecastResourceDetailobject by calling theForecastResourceDetailUpdateEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long forecastHeaderId, @Valid DTOForecastResourceDetailInsert dto) Creates a newBOForecastResourceDetailobject by calling theForecastResourceDetailInsertEventevent
-
Constructor Details
-
ForecastResourceDetailService
public ForecastResourceDetailService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOForecastResourceDetail>> 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 DTOForecastResourceDetailSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOForecastResourceDetailobjects by calling theForecastResourceDetailSearchEventevent- Parameters:
forecastHeaderId- theBOForecastResourceobject's forecastHeader fieldpage- the pageorder- the orderfields- the collection of fields that will be contained in the responsefilter- theDTOForecastResourceDetailSearchFilterobject- Returns:
- the collection of
DTOForecastResourceDetails - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{detailId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOForecastResourceDetail> get(@PathVariable("resourceForecastId") Long forecastHeaderId, @PathVariable("detailId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastResourceDetailobject by calling theForecastResourceDetailLoadEventevent- Parameters:
forecastHeaderId- theBOForecastResourceDetail's forecastHeader fieldid- theBOForecastResourceDetail's id fieldfields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTOForecastResourceDetail - 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 DTOForecastResourceDetailInsert dto) throws DAValidateException, DAException Creates a newBOForecastResourceDetailobject by calling theForecastResourceDetailInsertEventevent- Parameters:
forecastHeaderId- theBOForecastResourceDetail's forecastHeader fielddto- theDTOForecastResourceDetailInsertobject- Returns:
- the response containing the ID of the newly created
BOForecastResourceDetail - 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("resourceForecastId") Long forecastHeaderId, @PathVariable("detailId") Long id, @Valid @RequestBody @Valid DTOForecastResourceDetailUpdate dto) throws DAValidateException, DAException Updates the requiredBOForecastResourceDetailobject by calling theForecastResourceDetailUpdateEventevent- Parameters:
forecastHeaderId- theBOForecastActivityobject's forecastHeader fieldid- id of theBOForecastResourceDetailobject to updatedto- theDTOForecastResourceDetailUpdateobject- 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("resourceForecastId") Long forecastHeaderId, @PathVariable("detailId") Long id) throws DAValidateException, DAException Deletes the requiredBOForecastResourceDetailobject by calling theForecastResourceDetailDeleteEventevent- Parameters:
forecastHeaderId- theBOForecastResourceDetail's forecastHeader fieldid- the id of theBOForecastResourceDetailobject to be deleted- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-