Class ResourcePolicyEPersonReplaceRestController

java.lang.Object
org.dspace.app.rest.ResourcePolicyEPersonReplaceRestController

@RestController @RequestMapping("/api/authz/resourcepolicies/{id:\\d+}/eperson") public class ResourcePolicyEPersonReplaceRestController extends Object
This controller will handle all the incoming calls on the/api/authz/resourcepolicies/{id}/eperson endpoint where the id corresponds to the ResourcePolicy of which you want to replace the related EPerson.
Author:
Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
  • Constructor Details

    • ResourcePolicyEPersonReplaceRestController

      public ResourcePolicyEPersonReplaceRestController()
  • Method Details

    • replaceEPersonOfResourcePolicy

      @PreAuthorize("hasPermission(#id, \'resourcepolicy\', \'ADMIN\')") @RequestMapping(method=PUT, consumes="text/uri-list") public org.springframework.http.ResponseEntity<org.springframework.hateoas.RepresentationModel<?>> replaceEPersonOfResourcePolicy(@PathVariable Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException
      Throws:
      SQLException
      AuthorizeException