Пример #1
0
  @PUT
  @Path("/secure/users/{id}")
  @Produces({"application/xml", "application/json"})
  public VXUser secureUpdateXUser(VXUser vXUser) {

    bizUtil.checkUserAccessible(vXUser);
    return xUserMgr.updateXUser(vXUser);
  }
Пример #2
0
  @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);
  }