Class DataCollectionSheetStateService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.datacollection.rs1.sheet.state.DataCollectionSheetStateService
@RestController
@RequestMapping("documents/dynamic-forms/r1/sheet-status")
@Resource(logging=true)
public class DataCollectionSheetStateService
extends PrivateService
Service for manage sheet state
- Since:
- 22.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTODataCollectionSheetState> get(Long sheetStatusId, String language, Collection<String> fields) Retrieves a specific data collection sheet state by its identifier.org.springframework.http.ResponseEntity<PageResponse<DTODataCollectionSheetState>> getCollection(@Valid Page page, Collection<String> fields, String order, String language, @Valid @NotNull DTODataCollectionSheetStateFilter filter) Retrieves a paginated collection of data collection sheet states based on the provided search criteria.
-
Constructor Details
-
DataCollectionSheetStateService
public DataCollectionSheetStateService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTODataCollectionSheetState>> 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 DTODataCollectionSheetStateFilter filter) throws DAValidateException, DAException Retrieves a paginated collection of data collection sheet states based on the provided search criteria.- Parameters:
page- the pagination parameters (page number, page size)fields- optional collection of field names to include in the response (for partial representation)order- optional ordering specification for sorting the resultslanguage- the language code for localized strings (defaults to user's language)filter- the search filter criteria for data collection sheet states- Returns:
- a
ResponseEntitycontaining aPageResponsewith the collection ofDTODataCollectionSheetState - Throws:
DAValidateException- if validation failsDAException- if a data access error occurs
-
get
@GetMapping(value="{sheetStatusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTODataCollectionSheetState> get(@PathVariable("sheetStatusId") Long sheetStatusId, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves a specific data collection sheet state by its identifier.- Parameters:
sheetStatusId- the unique identifier of the sheet state to retrievelanguage- the language code for localized strings (defaults to user's language)fields- optional collection of field names to include in the response (for partial representation)- Returns:
- a
ResponseEntitycontaining theDTODataCollectionSheetState - Throws:
DAValidateException- if validation fails or the sheet state is not foundDAException- if a data access error occurs
-