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 Details

    • LinksetRestController

      public LinksetRestController()
  • Method Details

    • 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
      Throws:
      SQLException
      AuthorizeException
      IOException
      CrosswalkException