Class ImageFileResourceController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.resource.ImageFileResourceController
-
@RestController public class ImageFileResourceController extends Object
-
-
Constructor Summary
Constructors Constructor Description ImageFileResourceController(ImageFileResourceService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.ImageFileResource>find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, de.digitalcollections.model.list.filtering.FilterCriterion<String> filenameFilterCriterion)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.resource.FileResource>getByIdentifier(String namespace, String id)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.resource.ImageFileResource>getByUuid(UUID uuid, Locale pLocale)de.digitalcollections.model.identifiable.resource.ImageFileResourcesave(de.digitalcollections.model.identifiable.resource.ImageFileResource imageFileResource)de.digitalcollections.model.identifiable.resource.ImageFileResourceupdate(UUID uuid, de.digitalcollections.model.identifiable.resource.ImageFileResource imageFileResource)
-
-
-
Constructor Detail
-
ImageFileResourceController
public ImageFileResourceController(ImageFileResourceService service)
-
-
Method Detail
-
find
@GetMapping(value={"/v6/imagefileresources","/v6/imagefileresources/search"}, produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.ImageFileResource> 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="filename",required=false) de.digitalcollections.model.list.filtering.FilterCriterion<String> filenameFilterCriterion)
-
getByIdentifier
@GetMapping(value={"/v6/imagefileresources/identifier/{namespace}:{id}","/v6/imagefileresources/identifier/{namespace}:{id}.json"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.resource.FileResource> getByIdentifier(@PathVariable String namespace, @PathVariable String id) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
getByUuid
@GetMapping(value="/v6/imagefileresources/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.resource.ImageFileResource> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
save
@PostMapping(value="/v6/imagefileresources", produces="application/json") public de.digitalcollections.model.identifiable.resource.ImageFileResource save(@RequestBody de.digitalcollections.model.identifiable.resource.ImageFileResource imageFileResource) throws IdentifiableServiceException, ValidationException
-
update
@PutMapping(value="/v6/imagefileresources/{uuid}", produces="application/json") public de.digitalcollections.model.identifiable.resource.ImageFileResource update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.resource.ImageFileResource imageFileResource) throws IdentifiableServiceException, ValidationException
-
-