Class WorkloadAnalysisResourceService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.roughplanning.rs1.resource.WorkloadAnalysisResourceService
@RestController
@RequestMapping("planning/workload-analysis/r1/workload-analyses/{workloadAnalysisId:[0-9]+}/resources")
@Resource(logging=true)
public class WorkloadAnalysisResourceService
extends PrivateService
Services to manage a
BORoughPlanningResource object. - Since:
- 18.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Physically cancels the requiredBORoughPlanningResourceobject by calling theRoughPlanningResourceCancelEventeventorg.springframework.http.ResponseEntity<DTORoughPlanningResource> get(Long roughPlanningId, Long roughPlanningResourceId, Collection<String> fields) Retrieves the requiredBORoughPlanningResourceobject by calling theRoughPlanningResourceLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTORoughPlanningResource>> getCollection(Long roughPlanningId, @Valid Page page, Collection<String> fields, String order, @Valid DTORoughPlanningResourceSearchFilter filter) Returns the collection of all the storedBORoughPlanningResourceobjects by calling theRoughPlanningResourceSearchEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long roughPlanningId, @Valid DTORoughPlanningResourceInsert dto) Create a newBORoughPlanningResourceobject by calling theRoughPlanningResourceInsertEventevent
-
Constructor Details
-
WorkloadAnalysisResourceService
public WorkloadAnalysisResourceService()
-
-
Method Details
-
get
@GetMapping(value="{workloadAnalysisResourceId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTORoughPlanningResource> get(@PathVariable("workloadAnalysisId") Long roughPlanningId, @PathVariable("workloadAnalysisResourceId") Long roughPlanningResourceId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBORoughPlanningResourceobject by calling theRoughPlanningResourceLoadEventevent- Parameters:
roughPlanningResourceId- of the rough planning resourcefields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTORoughPlanningResource - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTORoughPlanningResource>> getCollection(@PathVariable("workloadAnalysisId") Long roughPlanningId, @RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTORoughPlanningResourceSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBORoughPlanningResourceobjects by calling theRoughPlanningResourceSearchEventevent- Parameters:
filter-DTORoughPlanningResourceSearchFilterobject- Returns:
- the response object containing the collection of
DTORoughPlanningResourceobjects - 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(@PathVariable("workloadAnalysisId") Long roughPlanningId, @Valid @RequestBody @Valid DTORoughPlanningResourceInsert dto) throws DAValidateException, DAException Create a newBORoughPlanningResourceobject by calling theRoughPlanningResourceInsertEventevent- Parameters:
dto-DTORoughPlanningResourceInsertobject- Returns:
- the response object containing the id of the newly created
BORoughPlanningResourceobject - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
cancel
@DeleteMapping(value="{workloadAnalysisResourceId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> cancel(@PathVariable("workloadAnalysisId") Long roughPlanningId, @PathVariable("workloadAnalysisResourceId") Long id) throws DAValidateException, DAException Physically cancels the requiredBORoughPlanningResourceobject by calling theRoughPlanningResourceCancelEventevent- Parameters:
id- of rough planning resource object to be physically cancelled- Returns:
- the response object
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-