Class IdentifiableController


  • @RestController
    @Api(description="The identifiable controller",
         name="Identifiable controller")
    public class IdentifiableController
    extends Object
    • Constructor Detail

      • IdentifiableController

        public IdentifiableController()
    • Method Detail

      • find

        @ApiMethod(description="Find limited amount of identifiables containing searchTerm in label or description")
        @GetMapping(value={"/latest/identifiables/search","/v2/identifiables/search"},
                    produces="application/json")
        @ApiResponseObject
        public de.digitalcollections.model.api.paging.SearchPageResponse<de.digitalcollections.model.api.identifiable.Identifiable> 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.api.paging.Order> sortBy,
                                                                                                                                         @RequestParam(name="searchTerm",required=false)
                                                                                                                                         String searchTerm)
      • find

        @ApiMethod(description="Find limited amount of identifiables containing searchTerm in label")
        @GetMapping(value={"/latest/identifiables","/v2/identifiables"},
                    produces="application/json")
        @ApiResponseObject
        public List<de.digitalcollections.model.api.identifiable.Identifiable> find​(@RequestParam(name="searchTerm")
                                                                                    String searchTerm,
                                                                                    @RequestParam(name="maxResults",required=false,defaultValue="25")
                                                                                    int maxResults)
      • findById

        @ApiMethod(description="Get identifiable by uuid")
        @GetMapping(value={"/latest/identifiables/{uuid}","/v2/identifiables/{uuid}"},
                    produces="application/json")
        @ApiResponseObject
        public de.digitalcollections.model.api.identifiable.Identifiable findById​(@PathVariable
                                                                                  UUID uuid)
      • getByIdentifier

        @ApiMethod(description="get an identifiable as JSON or XML, depending on extension or <tt>format</tt> request parameter or accept header")
        @GetMapping(value={"/latest/identifiables/identifier/{namespace}:{id}","/v2/identifiables/identifier/{namespace}:{id}"},
                    produces={"application/json","application/xml"})
        @ApiResponseObject
        public org.springframework.http.ResponseEntity<de.digitalcollections.model.api.identifiable.Identifiable> getByIdentifier​(@PathVariable
                                                                                                                                  String namespace,
                                                                                                                                  @PathVariable
                                                                                                                                  String id)
                                                                                                                           throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException