Class UUIDLookupRestController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    @RequestMapping("/api/dso")
    public class UUIDLookupRestController
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    This is an utility endpoint to lookup a generic DSpaceObject. If found the controller will respond with a redirection to the canonical endpoint for the actual object.
    Author:
    Andrea Bollini (andrea.bollini at 4science.it)
    • Constructor Detail

      • UUIDLookupRestController

        public UUIDLookupRestController()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getDSObyIdentifier

        @RequestMapping(method=GET,
                        value="find",
                        params="uuid")
        public void getDSObyIdentifier​(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       @RequestParam("uuid")
                                       UUID uuid)
                                throws IOException,
                                       SQLException,
                                       org.dspace.discovery.SearchServiceException
        Throws:
        IOException
        SQLException
        org.dspace.discovery.SearchServiceException