/**
  * Given a JSON state representation, updates the class appropriately
  *
  * @param state
  */
 public void setState(String state) {
   try {
     JSONObject jo = new JSONObject(state);
     this.className = jo.optString("className");
     this.propertyValues = JSONUtils.getSet(jo, "propertyValues");
     this.pResponseProviderName = jo.optString("pResponseProviderName");
     this.propertyName = jo.optString("propertyName");
   } catch (JSONException e) {
     PrivilegeManager.debug.error("PolicyCondition.setState", e);
   }
 }
Beispiel #2
0
  public SMSDataEntry(String jsonString) throws JSONException {

    JSONObject o = new JSONObject(jsonString);
    this.dn = o.getString("dn");
    this.attributeValues = JSONUtils.getMapStringSetString(o, "attributeValues");
  }