Class ForecastShiftModelService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.resource.shiftmodel.ForecastShiftModelService
@RestController
@RequestMapping("planning/forecast-capacity/r1/resource-forecasts/shift-models")
@Resource(logging=true)
public class ForecastShiftModelService
extends PrivateService
Services to manage a
BOForecastShiftModel object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOForecastShiftModel> get(Long id, Collection<String> fields) Retrieves the requiredBOForecastShiftModelobject by calling theForecastShiftModelLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOForecastShiftModel>> getCollection(@Valid Page page, String order, Collection<String> fields, @Valid DTOForecastShiftModelSearchFilter filter) Returns the collection of all the storedBOForecastShiftModelobjects by calling theForecastShiftModelSearchEventeventorg.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOForecastShiftModelUpdate dto) Updates the requiredBOForecastShiftModelobject by calling theForecastShiftModelUpdateEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a newBOForecastShiftModelobject by calling theForecastShiftModelInsertEventevent Automatically creates N rows, i.e.
-
Constructor Details
-
ForecastShiftModelService
public ForecastShiftModelService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOForecastShiftModel>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOForecastShiftModelSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOForecastShiftModelobjects by calling theForecastShiftModelSearchEventevent- Parameters:
page- the pageorder- the orderfields- the collection of fields that will be contained in the responsefilter- theDTOForecastShiftModelSearchFilterobject- Returns:
- the collection of
DTOForecastShiftModels - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{modelId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOForecastShiftModel> get(@PathVariable("modelId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastShiftModelobject by calling theForecastShiftModelLoadEventevent- Parameters:
id- theBOForecastShiftModelobject's idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTOForecastShiftModel - 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(@Valid @RequestBody @Valid DTOForecastShiftModelInsert dto) throws DAValidateException, DAException Creates a newBOForecastShiftModelobject by calling theForecastShiftModelInsertEventevent Automatically creates N rows, i.e.BOForecastShiftModelDetailobjects, where N is the duration of theDTOForecastShiftModelInsertobject- Parameters:
dto- theDTOForecastShiftModelInsertobject- Returns:
- the response containing the ID of the newly created
BOForecastShiftModel - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{modelId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("modelId") Long id, @Valid @RequestBody @Valid DTOForecastShiftModelUpdate dto) throws DAValidateException, DAException Updates the requiredBOForecastShiftModelobject by calling theForecastShiftModelUpdateEventevent- Parameters:
id- the id of theBOForecastShiftModelobject to be updateddto- theDTOForecastShiftModelUpdateobject- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-