Class WorkloadDistributionRuleService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.roughplanning.rs1.weight.rule.WorkloadDistributionRuleService
@RestController
@RequestMapping("planning/workload-analysis/r1/workload-distribution-rules")
@Resource(logging=true)
public class WorkloadDistributionRuleService
extends PrivateService
Service for manage work load distribution rule
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOWorkloadDistributionRule> get(Long workLoadDistributionRuleId, String language, Collection<String> fields) Retrieves the requiredDTOWorkloadDistributionRuleby calling theWorkloadDistributionRuleLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOWorkloadDistributionRule>> getCollection(@Valid Page page, Collection<String> fields, String order, String language, @Valid @NotNull DTOWorkloadDistributionRuleFilter filter) Returns the collection of all the storedDTOWorkloadDistributionRuleby calling theWorkloadDistributionRuleSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long workLoadDistributionRuleId, @Valid DTOWorkloadDistributionRuleUpdate dto) Update a workload rule by calling theWorkloadDistributionRuleUpdateEventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Create a new workload rule by calling theWorkloadDistributionRuleInsertEvent
-
Constructor Details
-
WorkloadDistributionRuleService
public WorkloadDistributionRuleService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWorkloadDistributionRule>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @RequestParam(required=false,name="_language",defaultValue="user") String language, @Valid @NotNull @Valid @NotNull DTOWorkloadDistributionRuleFilter filter) throws DAValidateException, DAException Returns the collection of all the storedDTOWorkloadDistributionRuleby calling theWorkloadDistributionRuleSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldlanguage- the user languagefilter- theDTOWorkloadDistributionRuleFilter- Returns:
- the collection of
DTOWorkloadDistributionRule - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{workloadDistributionRuleId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWorkloadDistributionRule> get(@PathVariable("workloadDistributionRuleId") Long workLoadDistributionRuleId, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOWorkloadDistributionRuleby calling theWorkloadDistributionRuleLoadEvent.- Parameters:
workLoadDistributionRuleId- the workLoad rule idlanguage- the user languagefields- the collection of fields the response will contain- Returns:
- the response containing the loaded workLoad rule
- 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 DTOWorkloadDistributionRuleInsert dto) throws DAValidateException, DAException Create a new workload rule by calling theWorkloadDistributionRuleInsertEvent- Parameters:
dto- theDTOWorkloadDistributionRuleInsert- Returns:
- the standard response containing the new workload rule id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{workloadDistributionRuleId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("workloadDistributionRuleId") Long workLoadDistributionRuleId, @Valid @RequestBody @Valid DTOWorkloadDistributionRuleUpdate dto) throws DAValidateException, DAException Update a workload rule by calling theWorkloadDistributionRuleUpdateEvent- Parameters:
workLoadDistributionRuleId- the workload rule iddto- theDTOWorkloadDistributionRuleUpdatevalues to be updated- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-