Class ForecastShiftModelDetailService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.resource.shiftmodel.detail.ForecastShiftModelDetailService
@RestController
@RequestMapping("planning/forecast-capacity/r1/resource-forecasts/shift-models/{modelId:[0-9]+}/details")
@Resource(logging=true)
public class ForecastShiftModelDetailService
extends PrivateService
Services to manage a
BOForecastShiftModelDetail object, i.e., a row of an existing BOForecastShiftModel object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOForecastShiftModelDetail> get(Long forecastShiftModelId, Long id, Collection<String> fields) Retrieves the requiredBOForecastShiftModelDetailobject (i.e., the row of an existing shift model) by calling theForecastShiftModelDetailLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOForecastShiftModelDetail>> getCollection(Long forecastShiftModelId, @Valid Page page, String order, Collection<String> fields, @Valid DTOForecastShiftModelDetailSearchFilter filter) Returns the collection of all the storedBOForecastShiftModelDetailobjects (i.e., the rows of an existing shift model) by calling theForecastShiftModelDetailSearchEventeventorg.springframework.http.ResponseEntity<Void> patch(Long forecastShiftModelId, Long id, @Valid DTOForecastShiftModelDetailUpdate dto) Updates the required rowBOForecastShiftModelDetailobject (i.e., the row of an existing shift model) by calling theForecastShiftModelDetailUpdateEventevent
-
Constructor Details
-
ForecastShiftModelDetailService
public ForecastShiftModelDetailService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOForecastShiftModelDetail>> getCollection(@PathVariable("modelId") Long forecastShiftModelId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOForecastShiftModelDetailSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOForecastShiftModelDetailobjects (i.e., the rows of an existing shift model) by calling theForecastShiftModelDetailSearchEventevent- Parameters:
forecastShiftModelId- theBOForecastShiftModelDetailobject's forecastShiftModel fieldpage- the pageorder- the orderfields- the collection of fields that will be contained in the responsefilter- theDTOForecastShiftModelDetailSearchFilterobject- Returns:
- the collection of
DTOForecastShiftModelDetails - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{detailId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOForecastShiftModelDetail> get(@PathVariable("modelId") Long forecastShiftModelId, @PathVariable("detailId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastShiftModelDetailobject (i.e., the row of an existing shift model) by calling theForecastShiftModelDetailLoadEventevent- Parameters:
forecastShiftModelId- theBOForecastShiftModelDetailobject's forecastShiftModel fieldid- theBOForecastShiftModelDetailobject's idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTOForecastShiftModelDetail - 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("modelId") Long forecastShiftModelId, @PathVariable("detailId") Long id, @Valid @RequestBody @Valid DTOForecastShiftModelDetailUpdate dto) throws DAValidateException, DAException Updates the required rowBOForecastShiftModelDetailobject (i.e., the row of an existing shift model) by calling theForecastShiftModelDetailUpdateEventevent- Parameters:
forecastShiftModelId- theBOForecastShiftModelDetailobject's forecastShiftModel fieldid- theBOForecastShiftModelDetailobject to be updateddto- theDTOForecastShiftModelDetailobject- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-