Package models

Examples of models.OAuthSession


   * Use Force.com API to retrieve data (authentication with OAuth). Returns JsonObject.
   * @param query - SOQL query string
   * @return JsonObject with results
   */
  public static JsonObject query(String query, boolean retry) {
    OAuthSession oauth = ForceDotComOAuth2.getOAuthSession();
    if (oauth == null) {
      Application.index();
    }
    WSRequest req = WS.url(oauth.instance_url
        + "/services/data/v28.0/query/?q=%s", query);
View Full Code Here


   * Uses caching and will use cached result, if possible.
   *
   * @param retry
   */
  public static JsonObject getUserPerms(boolean retry) {
    OAuthSession oauth = ForceDotComOAuth2.getOAuthSession();
    if (oauth == null) {
      Application.index();
    }
   
    String cacheKey = session.getId() + "-userperms";
View Full Code Here

TOP

Related Classes of models.OAuthSession

Copyright © 2018 www.massapicom. 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.