@PUT @Path("/secure/users/{id}") @Produces({"application/xml", "application/json"}) public VXUser secureUpdateXUser(VXUser vXUser) { bizUtil.checkUserAccessible(vXUser); return xUserMgr.updateXUser(vXUser); }
@POST @Path("/secure/users") @Produces({"application/xml", "application/json"}) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") public VXUser secureCreateXUser(VXUser vXUser) { bizUtil.checkUserAccessible(vXUser); return xUserMgr.createXUser(vXUser); }