Class ResourceForecastHeaderService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.resource.ResourceForecastHeaderService
@RestController
@RequestMapping("planning/forecast-capacity/r1/resource-forecasts")
@Resource(logging=true)
public class ResourceForecastHeaderService
extends PrivateService
Services to manage a
BOResourceForecastHeader object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Logically cancels the required id ofBOResourceForecastHeaderby calling theResourceForecastHeaderCancelEventeventorg.springframework.http.ResponseEntity<DTOResourceForecastHeader> get(Long id, Collection<String> fields) Retrieves the requiredBOResourceForecastHeaderobject by calling theResourceForecastHeaderLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOResourceForecastHeader>> getCollection(@Valid Page page, String order, Collection<String> fields, @Valid DTOResourceForecastHeaderSearchFilter filter) Returns the collection of all the storedBOResourceForecastHeaderobjects by calling theResourceForecastHeaderSearchEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a newBOResourceForecastHeaderobject by calling theResourceForecastHeaderInsertEventevent
-
Constructor Details
-
ResourceForecastHeaderService
public ResourceForecastHeaderService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOResourceForecastHeader>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOResourceForecastHeaderSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOResourceForecastHeaderobjects by calling theResourceForecastHeaderSearchEventevent- Parameters:
page- the pageorder- the orderfields- the collection of fields that will be contained in the responsefilter- theDTOResourceForecastHeaderSearchFilterobject- Returns:
- the collection of
DTOResourceForecastHeaders - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{resourceForecastId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourceForecastHeader> get(@PathVariable("resourceForecastId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOResourceForecastHeaderobject by calling theResourceForecastHeaderLoadEventevent- Parameters:
id- theBOResourceForecastHeaderobject's id fieldfields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTOResourceForecastHeader - 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 DTOResourceForecastHeaderInsert dto) throws DAValidateException, DAException Creates a newBOResourceForecastHeaderobject by calling theResourceForecastHeaderInsertEventevent- Parameters:
dto- theDTOResourceForecastHeaderInsertobject- Returns:
- the response containing the ID of the newly created
BOResourceForecastHeader - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{resourceForecastId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("resourceForecastId") Long id) throws DAValidateException, DAException Logically cancels the required id ofBOResourceForecastHeaderby calling theResourceForecastHeaderCancelEventevent- Parameters:
id- the id of theDTOResourceForecastHeaderobject to be logically cancelled- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-