Class LinksetRestController
- java.lang.Object
-
- org.dspace.app.rest.signposting.controller.LinksetRestController
-
@RestController @RequestMapping("/${signposting.path:signposting}") @ConditionalOnProperty("signposting.enabled") public class LinksetRestController extends ObjectThis RestController takes care of the retrieval ofLinksetRest. This class will receive the UUID of anItemorBitstream.- Author:
- Francesco Pio Scognamiglio (francescopio.scognamiglio at 4science.com)
-
-
Constructor Summary
Constructors Constructor Description LinksetRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntitygetAll()StringgetDescribedBy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UUID uuid)List<TypedLinkRest>getHeader(javax.servlet.http.HttpServletRequest request, UUID uuid)LinksetRestgetJson(javax.servlet.http.HttpServletRequest request, UUID uuid)StringgetLset(javax.servlet.http.HttpServletRequest request, UUID uuid)
-
-
-
Method Detail
-
getAll
@PreAuthorize("permitAll()") @RequestMapping(method=GET) public org.springframework.http.ResponseEntity getAll()
-
getJson
@PreAuthorize("hasPermission(#uuid, \'ITEM\', \'READ\')") @RequestMapping(value="/linksets/{uuid:[0-9a-fxA-FX]{8}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{12}}/json", method=GET, produces="application/linkset+json") public LinksetRest getJson(javax.servlet.http.HttpServletRequest request, @PathVariable UUID uuid)
-
getLset
@PreAuthorize("hasPermission(#uuid, \'ITEM\', \'READ\')") @RequestMapping(value="/linksets/{uuid:[0-9a-fxA-FX]{8}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{12}}", method=GET, produces="application/linkset") public String getLset(javax.servlet.http.HttpServletRequest request, @PathVariable UUID uuid)
-
getHeader
@PreAuthorize("hasPermission(#uuid, \'ITEM\', \'READ\') && hasPermission(#uuid, \'BITSTREAM\', \'READ\')") @RequestMapping(value="/links/{uuid:[0-9a-fxA-FX]{8}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{12}}", method=GET) public List<TypedLinkRest> getHeader(javax.servlet.http.HttpServletRequest request, @PathVariable UUID uuid)
-
getDescribedBy
@PreAuthorize("hasPermission(#uuid, \'ITEM\', \'READ\')") @RequestMapping(value="/describedby/{uuid:[0-9a-fxA-FX]{8}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{12}}", method=GET) public String getDescribedBy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable UUID uuid) throws SQLException, AuthorizeException, IOException, CrosswalkException
-
-