Class WorkloadAnalysisResourceResultService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.roughplanning.rs1.resource.result.WorkloadAnalysisResourceResultService
@RestController
@RequestMapping("planning/workload-analysis/r1/workload-analyses/{workloadAnalysisId:[0-9]+}/resource-results")
@Resource(logging=true)
public class WorkloadAnalysisResourceResultService
extends PrivateService
Services to manage a
BORoughPlanningResourceResult object. - Since:
- 18.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTORoughPlanningResourceResult> get(Long roughPlanningId, Long roughPlanningResourceResultId, Collection<String> fields) Retrieves the requiredBORoughPlanningResourceResultobject by calling theRoughPlanningResourceResultLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTORoughPlanningResourceResult>> getCollection(Long roughPlanningId, @Valid Page page, Collection<String> fields, String order, @Valid DTORoughPlanningResourceResultSearchFilter filter) Returns the collection of all the storedBORoughPlanningResourceResultobjects by calling theRoughPlanningResourceResultSearchEventeventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long roughPlanningId, @Valid DTORoughPlanningResourceResultInsert dto) Create a newBORoughPlanningResourceResultobject by calling theRoughPlanningResourceResultInsertEventevent
-
Constructor Details
-
WorkloadAnalysisResourceResultService
public WorkloadAnalysisResourceResultService()
-
-
Method Details
-
get
@GetMapping(value="{workloadAnalysisResourceResultId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTORoughPlanningResourceResult> get(@PathVariable("workloadAnalysisId") Long roughPlanningId, @PathVariable("workloadAnalysisResourceResultId") Long roughPlanningResourceResultId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredBORoughPlanningResourceResultobject by calling theRoughPlanningResourceResultLoadEventevent- Parameters:
roughPlanningResourceResultId- of the rough planning resourcefields- the collection of fields the response will contain- Returns:
- the response containing the loaded
DTORoughPlanningResourceResult - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTORoughPlanningResourceResult>> 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 DTORoughPlanningResourceResultSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the storedBORoughPlanningResourceResultobjects by calling theRoughPlanningResourceResultSearchEventevent- Parameters:
filter-DTORoughPlanningResourceResultSearchFilterobject- Returns:
- the response object containing the collection of
DTORoughPlanningResourceResultobjects - 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 DTORoughPlanningResourceResultInsert dto) throws DAValidateException, DAException Create a newBORoughPlanningResourceResultobject by calling theRoughPlanningResourceResultInsertEventevent- Parameters:
dto-DTORoughPlanningResourceResultInsertobject- Returns:
- the response object containing the id of the newly created
BORoughPlanningResourceResultobject - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-