Class WorkloadDistributionWeightService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.roughplanning.rs1.weight.workloaddistributionweight.WorkloadDistributionWeightService
@RestController
@RequestMapping("planning/workload-analysis/r1/workload-distribution-rules/{workloadDistributionRuleId:[0-9]+}/workload-distribution-weights")
@Resource(logging=true)
public class WorkloadDistributionWeightService
extends PrivateService
Service for manage workload distribution weight
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes the requiredBOWorkloadDistributionWeightobject from a givenBOWorkloadDistributionWeightobject by calling theWorkloadRuleWOCombinationDeleteEventeventorg.springframework.http.ResponseEntity<DTOWorkloadDistributionWeight> get(Long workLoadDistributionRuleId, Long workloadDistributionWeightId, Collection<String> fields) Retrieves the requiredDTOWorkloadDistributionWeightby calling theWorkloadDistributionWeightLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOWorkloadDistributionWeight>> getCollection(@Valid Page page, Collection<String> fields, String order, Long workLoadDistributionRuleId, @Valid @NotNull DTOWorkloadDistributionWeightFilter filter) Returns the collection of all the storedDTOWorkloadDistributionWeightby calling theWorkloadDistributionWeightSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long workLoadDistributionRuleId, Long workloadDistributionWeightId, @Valid DTOWorkloadDistributionWeightUpdate dto) Update a workload distribution weight by calling theWorkloadDistributionWeightUpdateEventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long workLoadDistributionRuleId, @Valid DTOWorkloadDistributionWeightInsert dto) Create a new workloaf distribution weight by calling theWorkloadDistributionWeightInsertEvent
-
Constructor Details
-
WorkloadDistributionWeightService
public WorkloadDistributionWeightService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWorkloadDistributionWeight>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @PathVariable("workloadDistributionRuleId") Long workLoadDistributionRuleId, @Valid @NotNull @Valid @NotNull DTOWorkloadDistributionWeightFilter filter) throws DAValidateException, DAException Returns the collection of all the storedDTOWorkloadDistributionWeightby calling theWorkloadDistributionWeightSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldworkLoadDistributionRuleId- the workload rule idfilter- theDTOWorkloadDistributionWeightFilter- Returns:
- the collection of
DTOWorkloadDistributionWeight - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{workloadDistributionWeightId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWorkloadDistributionWeight> get(@PathVariable("workloadDistributionRuleId") Long workLoadDistributionRuleId, @PathVariable("workloadDistributionWeightId") Long workloadDistributionWeightId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOWorkloadDistributionWeightby calling theWorkloadDistributionWeightLoadEvent.- Parameters:
workLoadDistributionRuleId- the workload rule idworkloadDistributionWeightId- the workload weight idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded workLoad Rule WO Combination
- 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("workloadDistributionRuleId") Long workLoadDistributionRuleId, @Valid @RequestBody @Valid DTOWorkloadDistributionWeightInsert dto) throws DAValidateException, DAException Create a new workloaf distribution weight by calling theWorkloadDistributionWeightInsertEvent- Parameters:
workLoadDistributionRuleId- the workload rule iddto- theDTOWorkloadDistributionWeightInsert- Returns:
- the standard response containing the new workLoad Rule WO Combination id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{workloadDistributionWeightId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("workloadDistributionRuleId") Long workLoadDistributionRuleId, @PathVariable("workloadDistributionWeightId") Long workloadDistributionWeightId, @Valid @RequestBody @Valid DTOWorkloadDistributionWeightUpdate dto) throws DAValidateException, DAException Update a workload distribution weight by calling theWorkloadDistributionWeightUpdateEvent- Parameters:
workLoadDistributionRuleId- the workload rule iddto- theDTOWorkloadDistributionRuleUpdatevalues to be updated- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{workloadDistributionWeightId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("workloadDistributionRuleId") Long workLoadDistributionRuleId, @PathVariable("workloadDistributionWeightId") Long workloadDistributionWeightId) throws DAValidateException, DAException Deletes the requiredBOWorkloadDistributionWeightobject from a givenBOWorkloadDistributionWeightobject by calling theWorkloadRuleWOCombinationDeleteEventevent- Parameters:
workloadDistributionWeightId- the id of theBOWorkloadDistributionWeightobject to delete- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-