Class OutcomeClassService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.schedule.intervention.outcome.reason.outcomeclass.OutcomeClassService
@RestController("OutcomeClassService-legacy")
@RequestMapping("core/r5/planning/agendas/outcomes/classes")
@Resource(logging=true)
public class OutcomeClassService
extends PrivateService
Services to manage outcome classes.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOOutcomeClass> Retrieves the required outcome class.org.springframework.http.ResponseEntity<PageResponse<DTOOutcomeClass>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOOutcomeClassSearchFilter filter) Retrieve the all stored outcome classes.
-
Constructor Details
-
OutcomeClassService
public OutcomeClassService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOOutcomeClass>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOOutcomeClassSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored outcome classes.OutcomeClassSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOOutcomeClassSearchFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOOutcomeClass> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required outcome class.OutcomeClassLoadEvent- Parameters:
id- outcome class id- Returns:
- the response containing the required outcome class
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-