Class WorkloadRuleWOCombinationService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.roughplanning.rs1.weight.wocombination.WorkloadRuleWOCombinationService
@RestController
@RequestMapping("planning/workload-analysis/r1/workload-rule-workorder-combinations")
@Resource(logging=true)
public class WorkloadRuleWOCombinationService
extends PrivateService
Service for manage work load rule w o combination
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes the requiredBOWorkloadRuleWOCombinationobject from a givenBOWorkloadRuleWOCombinationobject by calling theWorkloadRuleWOCombinationDeleteEventeventorg.springframework.http.ResponseEntity<DTOWorkloadRuleWOCombination> get(Long workloadRuleWorkOrderCombinationId, Collection<String> fields) Retrieves the requiredDTOWorkloadRuleWOCombinationby calling theWorkloadRuleWOCombinationLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOWorkloadRuleWOCombination>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOWorkloadRuleWOCombinationFilter filter) Returns the collection of all the storedDTOWorkloadRuleWOCombinationby calling theWorkloadRuleWOCombinationSearchEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> Create a new workLoad Rule WO Combination by calling theWorkloadRuleWOCombinationInsertEvent
-
Constructor Details
-
WorkloadRuleWOCombinationService
public WorkloadRuleWOCombinationService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWorkloadRuleWOCombination>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @NotNull @Valid @NotNull DTOWorkloadRuleWOCombinationFilter filter) throws DAValidateException, DAException Returns the collection of all the storedDTOWorkloadRuleWOCombinationby calling theWorkloadRuleWOCombinationSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOWorkloadRuleWOCombinationFilter- Returns:
- the collection of
DTOWorkloadRuleWOCombination - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{workloadRuleWorkOrderCombinationId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWorkloadRuleWOCombination> get(@PathVariable("workloadRuleWorkOrderCombinationId") Long workloadRuleWorkOrderCombinationId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOWorkloadRuleWOCombinationby calling theWorkloadRuleWOCombinationLoadEvent.- Parameters:
workloadRuleWorkOrderCombinationId- the workLoad Rule WO Combination 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(@Valid @RequestBody @Valid DTOWorkloadRuleWOCombinationInsert dto) throws DAValidateException, DAException Create a new workLoad Rule WO Combination by calling theWorkloadRuleWOCombinationInsertEvent- Parameters:
dto- theDTOWorkloadRuleWOCombinationInsert- Returns:
- the standard response containing the new workLoad Rule WO Combination id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{workloadRuleWorkOrderCombinationId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("workloadRuleWorkOrderCombinationId") Long workloadRuleWorkOrderCombinationId) throws DAValidateException, DAException Deletes the requiredBOWorkloadRuleWOCombinationobject from a givenBOWorkloadRuleWOCombinationobject by calling theWorkloadRuleWOCombinationDeleteEventevent- Parameters:
workloadRuleWorkOrderCombinationId- the id of theBOWorkloadRuleWOCombinationobject to delete- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-