Class V5EntityController<E extends de.digitalcollections.model.identifiable.entity.Entity>

java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.V5EntityController<E>

@RestController public class V5EntityController<E extends de.digitalcollections.model.identifiable.entity.Entity> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    V5EntityController(EntityToEntityRelationService entityRelationService, EntityService<de.digitalcollections.model.identifiable.entity.Entity> entityService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<String>
    find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm, de.digitalcollections.model.list.filtering.FilterCriterion<String> entityTypeCriterion)
     
    org.springframework.http.ResponseEntity<String>
    findAll(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm, de.digitalcollections.model.list.filtering.FilterCriterion<String> entityTypeCriterion)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • V5EntityController

      public V5EntityController(EntityToEntityRelationService entityRelationService, @Qualifier("entityService") EntityService<de.digitalcollections.model.identifiable.entity.Entity> entityService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • findAll

      @GetMapping(value={"/v5/entities","/v3/entities","/latest/entities"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findAll(@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="searchTerm",required=false) String searchTerm, @RequestParam(name="entityType",required=false) de.digitalcollections.model.list.filtering.FilterCriterion<String> entityTypeCriterion) throws CudamiControllerException, ServiceException
      Throws:
      CudamiControllerException
      ServiceException
    • find

      @GetMapping(value={"/v5/entities/search","/v2/entities/search","/latest/entities/search"}, produces="application/json") public org.springframework.http.ResponseEntity<String> 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="searchTerm",required=false) String searchTerm, @RequestParam(name="entityType",required=false) de.digitalcollections.model.list.filtering.FilterCriterion<String> entityTypeCriterion) throws CudamiControllerException, ServiceException
      Throws:
      CudamiControllerException
      ServiceException