@GET
  @Path("{privilegeId}")
  @Produces("text/plain")
  @ApiOperation(value = "Get user privilege", nickname = "UserPrivilegeService#getPrivilege", notes = "Returns user privilege details.", response = UserPrivilegeResponse.class)
  @ApiImplicitParams({
    @ApiImplicitParam(name = "fields", value = "Filter user privilege details", defaultValue = "PrivilegeInfo/*", dataType = "string", paramType = "query")
  })
  @ApiResponses(value = {
    @ApiResponse(code = 200, message = "Successful operation", response = UserPrivilegeResponse.class)}
  )
  public Response getPrivilege(@Context HttpHeaders headers, @Context UriInfo ui, @ApiParam(value = "user name", required = true) @PathParam ("userName") String userName,
                               @ApiParam(value = "privilege id", required = true) @PathParam("privilegeId") String privilegeId) {
    return handleRequest(headers, null, ui, Request.Type.GET, createPrivilegeResource(userName, privilegeId));
  }
Handles: GET /users/{userName}/privileges/{privilegeID}
Get a specific privilege.

@param headers        http headers
@param ui             uri info
@param userName       user name
@param privilegeId   privilege id

@return privilege instance representation
ambari-server/src/main/java/org/apache/ambari/server/api/services/users/UserPrivilegeService.java