Class FileResourceMetadataController


@RestController public class FileResourceMetadataController extends AbstractIdentifiableController<de.digitalcollections.model.identifiable.resource.FileResource>
  • Constructor Details

    • FileResourceMetadataController

      public FileResourceMetadataController(@Qualifier("fileResourceMetadataService") FileResourceMetadataService<de.digitalcollections.model.identifiable.resource.FileResource> metadataService)
  • Method Details

    • find

      @GetMapping(value="/v6/fileresources", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> 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:
      find in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.resource.FileResource>
      Throws:
      ServiceException
    • findByType

      @GetMapping(value="/v6/fileresources/type/{type}", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> findByType(@PathVariable("type") String type, @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
      Throws:
      ServiceException
    • getByIdentifier

      @GetMapping(value={"/v6/fileresources/identifier/**","/v5/fileresources/identifier/**","/v2/fileresources/identifier/**","/latest/fileresources/identifier/**"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.resource.FileResource> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException
      Overrides:
      getByIdentifier in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.resource.FileResource>
      Throws:
      ServiceException
      ValidationException
    • getByUuid

      @GetMapping(value={"/v6/fileresources/{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/fileresources/{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/fileresources/{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/fileresources/{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.resource.FileResource> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getLanguages

      @GetMapping(value={"/v6/fileresources/languages","/v5/fileresources/languages","/v2/fileresources/languages","/latest/fileresources/languages"}, produces="application/json") public List<Locale> getLanguages() throws ServiceException
      Overrides:
      getLanguages in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.resource.FileResource>
      Throws:
      ServiceException
    • getService

      protected IdentifiableService<de.digitalcollections.model.identifiable.resource.FileResource> getService()
      Specified by:
      getService in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.resource.FileResource>
    • save

      @PostMapping(value={"/v6/fileresources","/v5/fileresources","/v2/fileresources","/latest/fileresources"}, produces="application/json") public de.digitalcollections.model.identifiable.resource.FileResource save(@RequestBody de.digitalcollections.model.identifiable.resource.FileResource fileResource, org.springframework.validation.BindingResult bindingResult) throws ServiceException, ValidationException
      Overrides:
      save in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.resource.FileResource>
      Throws:
      ServiceException
      ValidationException
    • update

      @PutMapping(value={"/v6/fileresources/{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/fileresources/{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/fileresources/{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/fileresources/{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.resource.FileResource update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.resource.FileResource fileResource, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.resource.FileResource>
      Throws:
      ServiceException
      ValidationException