Class DemandSummariesService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.roughplanning.rs1.demand.DemandSummariesService
@RestController
@RequestMapping("planning/workload-analysis/r1/workload-analyses/{workloadAnalysisId:[0-9]+}")
@Resource(logging=true)
public class DemandSummariesService
extends PrivateService
Services to manage a
DemandSummary object. - Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<PageResponse<DTODemandSummary>> getCollection(Long roughPlanningId, Collection<String> fields, @Valid DTODemandSummaryFilter filter) Retrieves the requiredDemandSummaryobject by calling theDemandSummarySearchEventeventorg.springframework.http.ResponseEntity<Void> patch(Long roughPlanningId, @Valid DTODemandShiftHoursRequest request) Retrieves the requiredDemandSummaryobject by calling theDemandSummarySearchEventevent
-
Constructor Details
-
DemandSummariesService
public DemandSummariesService()
-
-
Method Details
-
getCollection
@GetMapping(path="/demand-summaries", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTODemandSummary>> getCollection(@PathVariable("workloadAnalysisId") Long roughPlanningId, @RequestParam(required=false,value="_fields") Collection<String> fields, @Valid @Valid DTODemandSummaryFilter filter) throws DAValidateException, DAException Retrieves the requiredDemandSummaryobject by calling theDemandSummarySearchEventevent- Parameters:
roughPlanningId- of the rough planning header- Returns:
- the response containing the loaded
DTODemandSummary - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(path="/demand-shift-hours", consumes="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("workloadAnalysisId") Long roughPlanningId, @RequestBody @Valid @Valid DTODemandShiftHoursRequest request) throws DAValidateException, DAException Retrieves the requiredDemandSummaryobject by calling theDemandSummarySearchEventevent- Parameters:
roughPlanningId- of the rough planning header- Returns:
- the response containing the loaded
DTODemandSummary - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-