Exemplo n.º 1
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);
  }