Package com.google.gerrit.client.rpc

Examples of com.google.gerrit.client.rpc.RestApi.send()


  public static void all(AsyncCallback<AccountCapabilities> cb, String... filter) {
    RestApi api = new RestApi("/accounts/self/capabilities");
    for (String name : filter) {
      api.addParameter("q", name);
    }
    api.send(cb);
  }

  protected AccountCapabilities() {
  }
View Full Code Here


    assert queries.length >= 2; // At least 2 is required for correct result.
    RestApi call = new RestApi(URI);
    for (String q : queries) {
      call.addParameterRaw("q", KeyUtil.encode(q));
    }
    call.send(callback);
  }

  public static void prev(String query,
      int limit, String sortkey,
      AsyncCallback<ChangeList> callback) {
View Full Code Here

      call.addParameter("n", limit);
    }
    if (!PagedSingleListScreen.MIN_SORTKEY.equals(sortkey)) {
      call.addParameter("P", sortkey);
    }
    call.send(callback);
  }

  public static void next(String query,
      int limit, String sortkey,
      AsyncCallback<ChangeList> callback) {
View Full Code Here

      call.addParameter("n", limit);
    }
    if (!PagedSingleListScreen.MAX_SORTKEY.equals(sortkey)) {
      call.addParameter("N", sortkey);
    }
    call.send(callback);
  }

  private static RestApi newQuery(String query) {
    RestApi call = new RestApi(URI);
    // The server default is ?q=status:open so don't repeat it.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.