Class ActivityForecastPriorityService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.forecastcapacity.rs1.forecast.activity.priority.ActivityForecastPriorityService
@RestController
@RequestMapping("planning/forecast-capacity/r1/activity-forecasts/priorities")
@Resource(logging=true)
public class ActivityForecastPriorityService
extends PrivateService
Services to manage a
BOForecastActivityPriority object. - Since:
- 15.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Disable the requiredBOForecastActivityPriorityobject by calling theForecastActivityPriorityDisableEventeventorg.springframework.http.ResponseEntity<DTOActivityForecastPriority> get(Long id, Collection<String> fields) Retrieves the requiredBOForecastActivityPriorityobject by calling theForecastActivityPriorityLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOActivityForecastPriority>> getCollection(@Valid Page page, String order, Collection<String> fields, @Valid DTOActivityForecastPrioritySearchFilter filter) Returns the collection of all the storedBOForecastActivityPriorityobjects by calling theForecastActivityPrioritySearchEventeventorg.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOActivityForecastPriorityUpdate dto) Updates the requiredBOForecastActivityPriorityobject by calling theForecastActivityPriorityUpdateEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a newBOForecastActivityPriorityobject by calling theForecastActivityPriorityInsertEventevent
-
Constructor Details
-
ActivityForecastPriorityService
public ActivityForecastPriorityService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOActivityForecastPriority>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_order") String order, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTOActivityForecastPrioritySearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBOForecastActivityPriorityobjects by calling theForecastActivityPrioritySearchEventevent- Parameters:
filter- theDTOActivityForecastPrioritySearchFilterobject- Returns:
- the collection of
DTOActivityForecastPrioritys - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{priorityId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOActivityForecastPriority> get(@PathVariable("priorityId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBOForecastActivityPriorityobject by calling theForecastActivityPriorityLoadEventevent- Parameters:
id- theBOForecastActivityPriorityobject's id- Returns:
- the response containing the loaded
DTOActivityForecastPriority - 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 DTOActivityForecastPriorityInsert dto) throws DAValidateException, DAException Creates a newBOForecastActivityPriorityobject by calling theForecastActivityPriorityInsertEventevent- Parameters:
dto- theDTOActivityForecastPriorityInsertobject- Returns:
- the response containing the ID of the newly created
BOForecastActivityPriority - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{priorityId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("priorityId") Long id, @Valid @RequestBody @Valid DTOActivityForecastPriorityUpdate dto) throws DAValidateException, DAException Updates the requiredBOForecastActivityPriorityobject by calling theForecastActivityPriorityUpdateEventevent- Parameters:
id- the id of theBOForecastActivityPriorityobject to be updateddto- theDTOActivityForecastPriorityUpdateobject- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{priorityId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("priorityId") Long id) throws DAValidateException, DAException Disable the requiredBOForecastActivityPriorityobject by calling theForecastActivityPriorityDisableEventevent- Parameters:
id- the id of theBOForecastActivityPriorityobject to disable- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-