Esempio n. 1
0
 @GET
 @Path("/secure/users/roles/userName/{userName}")
 @Produces({"application/xml", "application/json"})
 @PreAuthorize(
     "@rangerPreAuthSecurityHandler.isAPIAccessible(\""
         + RangerAPIList.GET_USER_ROLES_BY_NAME
         + "\")")
 public VXStringList getUserRolesByName(@PathParam("userName") String userName) {
   VXStringList vXStringList = new VXStringList();
   vXStringList = xUserMgr.getUserRolesByName(userName);
   return vXStringList;
 }