Class ForecastHeaderStateService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.common.state.ForecastHeaderStateService
@RestController
@RequestMapping("planning/forecast-capacity/r1/forecasts/states")
@Resource(logging=true)
public class ForecastHeaderStateService
extends PrivateService
Services to manage a
BOForecastState object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOForecastState> get(Long id, String language, Collection<String> fields) Retrieves the requiredBOForecastStateobject by calling from theForecastStateLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOForecastState>> getCollection(@Valid Page page, String order, String language, Collection<String> fields, @Valid DTOForecastStateSearchFilter filter) Returns the collection of all the storedBOForecastStateobjects by calling theForecastStateSearchEventevent
-
Constructor Details
-
ForecastHeaderStateService
public ForecastHeaderStateService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOForecastState>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOForecastStateSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOForecastStateobjects by calling theForecastStateSearchEventevent- Parameters:
page- the pageorder- the orderlanguage- the language of the userfields- the collection of fields that will be contained in the responsefilter- theDTOForecastStateSearchFilterobject- Returns:
- the collection of
DTOForecastStates - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{stateId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOForecastState> get(@PathVariable("stateId") Long id, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastStateobject by calling from theForecastStateLoadEventevent- Parameters:
id- theBOForecastStateobject's id fieldlanguage- the language of the userfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded
DTOForecastState - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-