Package org.dspace.app.rest
Class UUIDLookupRestController
- java.lang.Object
-
- org.dspace.app.rest.UUIDLookupRestController
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@RestController @RequestMapping("/api/dso") public class UUIDLookupRestController extends Object implements org.springframework.beans.factory.InitializingBeanThis 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 Summary
Constructors Constructor Description UUIDLookupRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidgetDSObyIdentifier(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UUID uuid)
-
-
-
Field Detail
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
ACTION
public static final String ACTION
- See Also:
- Constant Field Values
-
PARAM
public static final String PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.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:
IOExceptionSQLExceptionorg.dspace.discovery.SearchServiceException
-
-