Class LinksetRestController
java.lang.Object
org.dspace.app.rest.signposting.controller.LinksetRestController
@RestController
@RequestMapping("/${signposting.path:signposting}")
@ConditionalOnProperty("signposting.enabled")
public class LinksetRestController
extends Object
This RestController takes care of the retrieval of
LinksetRest.
This class will receive the UUID of an Item or Bitstream.- Author:
- Francesco Pio Scognamiglio (francescopio.scognamiglio at 4science.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()getDescribedBy(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, UUID uuid)
-
Constructor Details
-
LinksetRestController
public LinksetRestController()
-
-
Method Details
-
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(jakarta.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(jakarta.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(jakarta.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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @PathVariable UUID uuid) throws SQLException, AuthorizeException, IOException, CrosswalkException
-