Class ActivityForecastHeaderService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.activity.header.ActivityForecastHeaderService
@RestController
@RequestMapping("planning/forecast-capacity/r1/activity-forecasts")
@Resource(logging=true)
public class ActivityForecastHeaderService
extends PrivateService
Services to manage a
BOActivityForecastHeader object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Logically cancels the requiredBOActivityForecastHeaderobject by calling theActivityForecastHeaderCancelEventeventorg.springframework.http.ResponseEntity<DTOForecastActivity> get(Long id, Collection<String> fields) Retrieves the requiredBOActivityForecastHeaderobject by calling theActivityForecastHeaderLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOActivityForecastHeader>> getCollection(@Valid Page page, String order, Collection<String> fields, @Valid DTOActivityForecastHeaderSearchFilter filter) Returns the collection of all the storedBOActivityForecastHeaderobjects by calling theActivityForecastHeaderSearchEventeventorg.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOForecastActivityUpdate dto) Updates the requiredBOActivityForecastHeaderobject by calling theActivityForecastHeaderUpdateEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a newBOActivityForecastHeaderobject by calling theActivityForecastHeaderInsertEventevent
-
Constructor Details
-
ActivityForecastHeaderService
public ActivityForecastHeaderService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOActivityForecastHeader>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOActivityForecastHeaderSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOActivityForecastHeaderobjects by calling theActivityForecastHeaderSearchEventevent- Parameters:
filter- theDTOActivityForecastHeaderSearchFilterobject- Returns:
- the collection of
DTOActivityForecastHeaders - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{activityForecastId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOForecastActivity> get(@PathVariable("activityForecastId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOActivityForecastHeaderobject by calling theActivityForecastHeaderLoadEventevent- Parameters:
id- theBOActivityForecastHeader's id field- Returns:
- the response containing the loaded
DTOActivityForecastHeader - 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 DTOActivityForecastHeaderInsert dto) throws DAValidateException, DAException Creates a newBOActivityForecastHeaderobject by calling theActivityForecastHeaderInsertEventevent- Parameters:
dto- theDTOActivityForecastHeaderInsertobject- Returns:
- the response containing the ID of the newly created
BOActivityForecastHeader - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{activityForecastId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("activityForecastId") Long id, @Valid @RequestBody @Valid DTOForecastActivityUpdate dto) throws DAValidateException, DAException Updates the requiredBOActivityForecastHeaderobject by calling theActivityForecastHeaderUpdateEventevent- Parameters:
id- the id of theBOActivityForecastHeaderobject to be updateddto- theDTOActivityForecastHeaderUpdateobject- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{activityForecastId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("activityForecastId") Long id) throws DAValidateException, DAException Logically cancels the requiredBOActivityForecastHeaderobject by calling theActivityForecastHeaderCancelEventevent- Parameters:
id- the id of theBOActivityForecastHeaderobject to be logically cancelled- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-