Class CreekController
java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<T>
de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController<E>
de.digitalcollections.cudami.server.controller.AbstractEntityController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>
de.digitalcollections.cudami.server.controller.identifiable.entity.geo.location.CreekController
@RestController
public class CreekController
extends AbstractEntityController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntityde.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.Creek>find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering) org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.Creek>getByIdentifier(javax.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.Creek>protected EntityService<de.digitalcollections.model.identifiable.entity.geo.location.Creek>de.digitalcollections.model.identifiable.entity.geo.location.Creeksave(de.digitalcollections.model.identifiable.entity.geo.location.Creek creek, org.springframework.validation.BindingResult errors) de.digitalcollections.model.identifiable.entity.geo.location.Creekupdate(UUID uuid, de.digitalcollections.model.identifiable.entity.geo.location.Creek creek, org.springframework.validation.BindingResult errors) Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractEntityController
getByRefIdMethods inherited from class de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController
extractNamespaceAndId, getLanguagesMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
buildExamplesWithUuids, buildExampleWithUuid, count, delete, getByUuid, getByUuidAndLocale, getByUuidsMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
createPageRequest, getFieldType, mergeFilters
-
Constructor Details
-
CreekController
-
-
Method Details
-
delete
@DeleteMapping(value="/v6/creeks/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public org.springframework.http.ResponseEntity delete(@PathVariable("uuid") UUID uuid) throws ConflictException, ServiceException - Overrides:
deletein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>- Throws:
ConflictExceptionServiceException
-
find
@GetMapping(value="/v6/creeks", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.Creek> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException - Overrides:
findin classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>- Throws:
ServiceException
-
getByIdentifier
@GetMapping(value="/v6/creeks/identifier/**", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.Creek> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException - Overrides:
getByIdentifierin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>- Throws:
ServiceExceptionValidationException
-
getByUuid
@GetMapping(value="/v6/creeks/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.Creek> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException - Throws:
ServiceException
-
getService
protected EntityService<de.digitalcollections.model.identifiable.entity.geo.location.Creek> getService()- Specified by:
getServicein classAbstractEntityController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>
-
save
@PostMapping(value="/v6/creeks", produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.Creek save(@RequestBody de.digitalcollections.model.identifiable.entity.geo.location.Creek creek, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException - Overrides:
savein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>- Throws:
ServiceExceptionValidationException
-
update
@PutMapping(value="/v6/creeks/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.Creek update(@PathVariable("uuid") UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.geo.location.Creek creek, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException - Overrides:
updatein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Creek>- Throws:
ServiceExceptionValidationException
-