Class CatalogGroupService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.catalogs.rs1.cataloggroup.CatalogGroupService
@RestController
@RequestMapping("configurations/catalogs/r1/catalog-groups")
@Resource(logging=true)
public class CatalogGroupService
extends PrivateService
Service to manage catalog groups.
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOCatalogGroup> get(Long catalogGroupId, Collection<String> fields) Retrieves the requiredDTOCatalogGroupby calling theCatalogGroupLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOCatalogGroup>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOCatalogGroupFilter filter) Returns the collection of all the stored catalog groups by calling theCatalogGroupSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long catalogGroupId, @Valid DTOCatalogGroupUpdate dto) Modifies the requiredDTOCatalogGroupby calling theCatalogGroupUpdateEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a newDTOCatalogGroupby calling theCatalogGroupInsertEvent.
-
Constructor Details
-
CatalogGroupService
public CatalogGroupService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOCatalogGroup>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOCatalogGroupFilter filter) throws DAValidateException, DAException Returns the collection of all the stored catalog groups by calling theCatalogGroupSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOCatalogGroupFilter- Returns:
- the collection of
DTOCatalogGroup - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{catalogGroupId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOCatalogGroup> get(@PathVariable("catalogGroupId") Long catalogGroupId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOCatalogGroupby calling theCatalogGroupLoadEvent.- Parameters:
catalogGroupId- the catalog group idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded catalog group
- 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 DTOCatalogGroupInsert dto) throws DAValidateException, DAException Creates a newDTOCatalogGroupby calling theCatalogGroupInsertEvent.- Parameters:
dto- theDTOCatalogGroupInsert- Returns:
- the standard response containing the new catalog group id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{catalogGroupId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("catalogGroupId") Long catalogGroupId, @Valid @RequestBody @Valid DTOCatalogGroupUpdate dto) throws DAValidateException, DAException Modifies the requiredDTOCatalogGroupby calling theCatalogGroupUpdateEvent.- Parameters:
catalogGroupId- the catalog group iddto- theDTOCatalogGroupUpdate- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-