Class IdentifierTypeController
java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
de.digitalcollections.cudami.server.controller.identifiable.IdentifierTypeController
@RestController
public class IdentifierTypeController
extends AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType>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.IdentifierType>getByNamespace(String namespace) org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.IdentifierType>protected UniqueObjectService<de.digitalcollections.model.identifiable.IdentifierType>de.digitalcollections.model.identifiable.IdentifierTypesave(de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors) de.digitalcollections.model.identifiable.IdentifierTypeupdate(UUID uuid, de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors) Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
buildExamplesWithUuids, buildExampleWithUuid, count, delete, delete, getByUuidAndLocale, getByUuidsMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
createPageRequest, getFieldType, mergeFilters
-
Constructor Details
-
IdentifierTypeController
-
-
Method Details
-
find
@GetMapping(value="/v6/identifiertypes", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") 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.IdentifierType>- Throws:
ServiceException
-
getByNamespace
@GetMapping(value="/v6/identifiertypes/namespace/{namespace}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.IdentifierType> getByNamespace(@PathVariable String namespace) throws ServiceException - Throws:
ServiceException
-
getByUuid
@GetMapping(value={"/v6/identifiertypes/{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}$}","/v5/identifiertypes/{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}$}","/v2/identifiertypes/{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}$}","/latest/identifiertypes/{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.IdentifierType> getByUuid(@PathVariable UUID uuid) throws ServiceException - Overrides:
getByUuidin classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>- Throws:
ServiceException
-
getService
- Specified by:
getServicein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
-
save
@PostMapping(value={"/v6/identifiertypes","/v5/identifiertypes","/v2/identifiertypes","/latest/identifiertypes"}, produces="application/json") public de.digitalcollections.model.identifiable.IdentifierType save(@RequestBody de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException - Overrides:
savein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>- Throws:
ServiceExceptionValidationException
-
update
@PutMapping(value={"/v6/identifiertypes/{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}$}","/v5/identifiertypes/{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}$}","/v2/identifiertypes/{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}$}","/latest/identifiertypes/{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.IdentifierType update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException - Overrides:
updatein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>- Throws:
ServiceExceptionValidationException
-