Class 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 Detail

      • LinksetRestController

        public LinksetRestController()
    • 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)