Package org.dspace.app.rest
Class ResourcePolicyEPersonReplaceRestController
- java.lang.Object
-
- org.dspace.app.rest.ResourcePolicyEPersonReplaceRestController
-
@RestController @RequestMapping("/api/authz/resourcepolicies/{id:\\d+}/eperson") public class ResourcePolicyEPersonReplaceRestController extends ObjectThis 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 Summary
Constructors Constructor Description ResourcePolicyEPersonReplaceRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.hateoas.RepresentationModel<?>>replaceEPersonOfResourcePolicy(Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
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:
SQLExceptionAuthorizeException
-
-