Class OutcomeClassService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.execution.rs1.outcomeclass.OutcomeClassService
@RestController
@RequestMapping("work-orders/execution/r1/outcome-classes")
@Resource(logging=true)
public class OutcomeClassService
extends PrivateService
Service for manage outcome class.
- Since:
- 18.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOOutcomeClass> get(Long outcomeClassId, Collection<String> fields) Retrieves the required outcome class by calling from theOutcomeClassLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOOutcomeClass>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOOutcomeClassFilter filter) Returns the collection of all the stored outcome classes by calling theOutcomeClassSearchEvent.
-
Constructor Details
-
OutcomeClassService
public OutcomeClassService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOOutcomeClass>> 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 DTOOutcomeClassFilter filter) throws DAValidateException, DAException Returns the collection of all the stored outcome classes by calling theOutcomeClassSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOOutcomeClassFilter- Returns:
- the collection of outcome classes
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{outcomeClassId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOOutcomeClass> get(@PathVariable("outcomeClassId") Long outcomeClassId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required outcome class by calling from theOutcomeClassLoadEvent.- Parameters:
outcomeClassId- the outcome class idfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded outcome class
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-