/** Retrieves members from RPC */
 public void retrieveData() {
   String param = "vo=" + this.voId;
   if (status != null) {
     param = param + "&status=" + status;
   }
   JsonClient js = new JsonClient();
   js.retrieveData(JSON_URL, param, this);
 }
 /** Retrieves data from the RPC */
 public void retrieveData() {
   String params = "";
   // serialize parameters
   for (Map.Entry<String, Integer> attr : this.ids.entrySet()) {
     params += attr.getKey() + "=" + attr.getValue() + "&";
   }
   JsonClient js = new JsonClient();
   js.retrieveData(GetResourceRequiredAttributesV2.JSON_URL, params, this);
 }
 /** Retrieve data from RPC */
 public void retrieveData() {
   String param = "";
   if (service != null) {
     param = "service=" + service.getId();
   } else if (facility != null) {
     param = "facility=" + facility.getId();
   }
   JsonClient js = new JsonClient();
   js.retrieveData(JSON_URL, param, this);
 }
  /** Retrieves members from RPC */
  public void retrieveData() {

    JsonClient js = new JsonClient();
    String param;

    if (entity.equals(PerunEntity.VIRTUAL_ORGANIZATION)) {
      param = "vo=" + entityId;
      if (!attributes.isEmpty()) {
        // parse lists
        for (String attribute : attributes) {
          param += "&specificAttributes[]=" + attribute;
        }
      }
      if (showAllAdmins) {
        js.retrieveData(VO_JSON_URL, param, this);
      } else {
        js.retrieveData(VO_DIRECT_JSON_URL, param, this);
      }
    } else if (entity.equals(PerunEntity.GROUP)) {
      param = "group=" + entityId;
      if (!attributes.isEmpty()) {
        // parse lists
        for (String attribute : attributes) {
          param += "&specificAttributes[]=" + attribute;
        }
      }
      if (showAllAdmins) {
        js.retrieveData(GROUP_JSON_URL, param, this);
      } else {
        js.retrieveData(GROUP_DIRECT_JSON_URL, param, this);
      }
    } else if (entity.equals(PerunEntity.FACILITY)) {
      param = "facility=" + entityId;
      if (!attributes.isEmpty()) {
        // parse lists
        for (String attribute : attributes) {
          param += "&specificAttributes[]=" + attribute;
        }
      }
      if (showAllAdmins) {
        js.retrieveData(FACILITY_JSON_URL, param, this);
      } else {
        js.retrieveData(FACILITY_DIRECT_JSON_URL, param, this);
      }
    } else if (entity.equals(PerunEntity.SECURITY_TEAM)) {
      param = "securityTeam=" + entityId;
      if (!attributes.isEmpty()) {
        // parse lists
        for (String attribute : attributes) {
          param += "&specificAttributes[]=" + attribute;
        }
      }
      if (showAllAdmins) {
        js.retrieveData(SECURITY_JSON_URL, param, this);
      } else {
        js.retrieveData(SECURITY_DIRECT_JSON_URL, param, this);
      }
    }
  }
 /** Retrieves data from RPC */
 public void retrieveData() {
   JsonClient js = new JsonClient(60000); // 1 minute to retrieve data from external source
   js.retrieveData(
       JSON_URL,
       "user="******"&yearSince="
           + yearSince
           + "&yearTill="
           + yearTill
           + "&pubSysNamespace="
           + namespace,
       this);
   return;
 }
Exemple #6
0
  /** Retrieves members from RPC */
  public void retrieveData() {

    JsonClient js = new JsonClient();
    String param;

    if (entity.equals(PerunEntity.VIRTUAL_ORGANIZATION)) {
      param = "vo=" + entityId;
      js.retrieveData(VO_JSON_URL, param, this);
    } else if (entity.equals(PerunEntity.GROUP)) {
      param = "group=" + entityId;
      js.retrieveData(GROUP_JSON_URL, param, this);
    } else if (entity.equals(PerunEntity.FACILITY)) {
      param = "facility=" + entityId;
      js.retrieveData(FACILITY_JSON_URL, param, this);
    }
  }
Exemple #7
0
  /** /** Retrieve data from RPC */
  public void retrieveData() {

    String param = "";

    if (entity.equals(PerunEntity.VIRTUAL_ORGANIZATION)) {
      param = "vo=" + this.id;
    } else if (entity.equals(PerunEntity.GROUP)) {
      param = "group=" + this.id;
    }

    if (type.length() != 0) {
      param += "&type=" + type;
    }

    JsonClient js = new JsonClient();
    js.setHidden(true);
    js.retrieveData(JSON_URL, param, this);
  }
 @Override
 public void retrieveData() {
   JsonClient js = new JsonClient();
   js.retrieveData(JSON_URL, "challenge=" + challenge + "&response=" + response, this);
 }
Exemple #9
0
 /** Retrieve data from RPC */
 public void retrieveData() {
   JsonClient js = new JsonClient();
   js.retrieveData(JSON_URL, this);
 }
 /** Retrieve data from RPC */
 public void retrieveData() {
   JsonClient js = new JsonClient();
   js.retrieveData(JSON_URL, "facility=" + facilityId + "&service=" + service.getId(), this);
 }