Class DataCollectionOptionsGroupService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.datacollection.rs2.optionsgroup.DataCollectionOptionsGroupService
@RestController("dataCollectionOptionsGroupServiceOld")
@RequestMapping("datacollection/r2/optionsGroup")
@Resource(logging=true)
@Deprecated(forRemoval=true,
since="22.0")
public class DataCollectionOptionsGroupService
extends PrivateService
Deprecated, for removal: This API element is subject to removal in a future version.
Services to manage data collection option groups.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Deprecated, for removal: This API element is subject to removal in a future version.Create a new options group.org.springframework.http.ResponseEntity<DTODataCollectionOptionsGroup> Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the required data collection options group.org.springframework.http.ResponseEntity<PageResponse<DTODataCollectionOptionsGroup>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTODataCollectionOptionsGroupSearchFilter filter) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the all stored data collection option groups.Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the required model.org.springframework.http.ResponseEntity<Void> Deprecated, for removal: This API element is subject to removal in a future version.Modify the required data collection options group model.org.springframework.http.ResponseEntity<Void> patchOptionsGroup(Long id, @Valid DTODataCollectionOptionsGroup input) Deprecated, for removal: This API element is subject to removal in a future version.Modify the required data collection options group.
-
Constructor Details
-
DataCollectionOptionsGroupService
public DataCollectionOptionsGroupService()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTODataCollectionOptionsGroup>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTODataCollectionOptionsGroupSearchFilter filter) throws DAException, DAValidateException Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the all stored data collection option groups.DataCollectionOptionsGroupSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTODataCollectionOptionsGroupSearchFilter- Returns:
- the current result page
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTODataCollectionOptionsGroup> get(@PathVariable("id") Long id, @RequestParam(required=false,name="language",defaultValue="user") String language) throws DAValidateException, DAException Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the required data collection options group.DataCollectionOptionsGroupLoadEvent- Parameters:
id- data collection sheet idlanguage- the language- Returns:
- the data collection options group
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getModel
@GetMapping(value="{id:[0-9]+}/model", produces="application/json") public List<DTODataCollectionNodeSelectionOption> getModel(@PathVariable("id") Long id, @RequestParam(required=false,name="language",defaultValue="user") String language) throws DAValidateException, DAException Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the required model.DataCollectionOptionsGroupLoadEvent- Parameters:
id- the idlanguage- the language- Returns:
- the model
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-
createOptionsGroup
@PostMapping(value="/actions/createOptionsGroup", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> createOptionsGroup(@Valid @RequestBody @Valid DTODataCollectionOptionsGroup input) throws DAException, DAValidateException Deprecated, for removal: This API element is subject to removal in a future version.Create a new options group.DataCollectionOptionsGroupInsertEvent- Parameters:
input- theDTODataCollectionOptionsGroup- Returns:
- the response
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
patchOptionsGroup
@PatchMapping(value="{id:[0-9]+}/optionsGroup", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patchOptionsGroup(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTODataCollectionOptionsGroup input) throws DAValidateException, DAException Deprecated, for removal: This API element is subject to removal in a future version.Modify the required data collection options group.DataCollectionOptionsGroupUpdateEvent- Parameters:
id- the idinput- theDTODataCollectionOptionsGroup- Returns:
- the response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patchOperationsGroupModel
@PatchMapping(value="{id:[0-9]+}/optionsGroup/model", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patchOperationsGroupModel(@PathVariable("id") Long id, @Valid @RequestBody @Valid List<DataCollectionNodeSelectionOption> input) throws DAValidateException, DAException Deprecated, for removal: This API element is subject to removal in a future version.Modify the required data collection options group model.DataCollectionOptionsGroupUpdateEvent- Parameters:
id- the idinput- the list ofDataCollectionNodeSelectionOption- Returns:
- the response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-