Class IdentifiableController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.IdentifiableController
-
@RestController public class IdentifiableController extends Object
-
-
Constructor Summary
Constructors Constructor Description IdentifiableController(IdentifiableService identifiableService, UrlAliasService urlAliasService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<de.digitalcollections.model.identifiable.Identifiable>find(String searchTerm, int maxResults)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.Identifiable>getByIdentifier(String namespace, String id)de.digitalcollections.model.identifiable.IdentifiablegetByUuid(UUID uuid)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.alias.LocalizedUrlAliases>getLocalizedUrlAliases(UUID uuid)
-
-
-
Constructor Detail
-
IdentifiableController
public IdentifiableController(@Qualifier("identifiableService") IdentifiableService identifiableService, UrlAliasService urlAliasService)
-
-
Method Detail
-
find
@GetMapping(value={"/v6/identifiables","/v5/identifiables","/v2/identifiables","/latest/identifiables"}, produces="application/json") public List<de.digitalcollections.model.identifiable.Identifiable> find(@RequestParam(name="searchTerm") String searchTerm, @RequestParam(name="maxResults",required=false,defaultValue="25") int maxResults)
-
getLocalizedUrlAliases
@GetMapping(value={"/v6/identifiables/{uuid}/localizedUrlAliases","/v5/identifiables/{uuid}/localizedUrlAliases"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.alias.LocalizedUrlAliases> getLocalizedUrlAliases(@PathVariable("uuid") UUID uuid) throws CudamiControllerException- Throws:
CudamiControllerException
-
getByIdentifier
@GetMapping(value={"/v6/identifiables/identifier/{namespace}:{id}","/v6/identifiables/identifier/{namespace}:{id}.json","/v5/identifiables/identifier/{namespace}:{id}","/v5/identifiables/identifier/{namespace}:{id}.json","/v2/identifiables/identifier/{namespace}:{id}","/v2/identifiables/identifier/{namespace}:{id}.json","/latest/identifiables/identifier/{namespace}:{id}","/latest/identifiables/identifier/{namespace}:{id}.json"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.Identifiable> getByIdentifier(@PathVariable String namespace, @PathVariable String id) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
getByUuid
@GetMapping(value={"/v6/identifiables/{uuid}","/v5/identifiables/{uuid}","/v2/identifiables/{uuid}","/latest/identifiables/{uuid}"}, produces="application/json") public de.digitalcollections.model.identifiable.Identifiable getByUuid(@PathVariable UUID uuid)
-
-