Class IdentifiableController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController<de.digitalcollections.model.identifiable.Identifiable>
-
- de.digitalcollections.cudami.server.controller.identifiable.IdentifiableController
-
@RestController public class IdentifiableController extends AbstractIdentifiableController<de.digitalcollections.model.identifiable.Identifiable>
-
-
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(javax.servlet.http.HttpServletRequest request)de.digitalcollections.model.identifiable.IdentifiablegetByUuid(UUID uuid)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.alias.LocalizedUrlAliases>getLocalizedUrlAliases(UUID uuid)protected IdentifiableService<de.digitalcollections.model.identifiable.Identifiable>getService()-
Methods inherited from class de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController
addLabelFilter, extractNamespaceAndId, find
-
-
-
-
Constructor Detail
-
IdentifiableController
public IdentifiableController(@Qualifier("identifiableService") IdentifiableService identifiableService, UrlAliasService urlAliasService)
-
-
Method Detail
-
getService
protected IdentifiableService<de.digitalcollections.model.identifiable.Identifiable> getService()
- Specified by:
getServicein classAbstractIdentifiableController<de.digitalcollections.model.identifiable.Identifiable>
-
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/**","/v5/identifiables/identifier/**","/v2/identifiables/identifier/**","/latest/identifiables/identifier/**"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.Identifiable> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws IdentifiableServiceException, ValidationException- Overrides:
getByIdentifierin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.Identifiable>- Throws:
IdentifiableServiceExceptionValidationException
-
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)
-
-