/forgerock/openam-v13/openam-entitlements/src/main/java/com/sun/identity/entitlement/ |
H A D | JSONNotification.java | 46 JSONObject jo = new JSONObject(); 47 jo.put("type", type.getMessage()); 50 jo.put("realm", realm); 53 jo.put("privilegeName", privilegeName); 54 jo.put("resources", resources); 55 return jo.toString();
|
H A D | JSONEntitlement.java | 67 * @param jo JSON object. 68 * @throws JSONException if <code>jo</code> is not well formed. 70 public JSONEntitlement(JSONObject jo) throws JSONException { argument 71 resourceName = jo.optString("resourceName"); 72 actionValues = JSONUtils.getMapStringBoolean(jo, "actionsValues"); 73 advices = JSONUtils.getMapStringSetString(jo, "advices"); 74 attributes = JSONUtils.getMapStringSetString(jo, "attributes"); 103 JSONObject jo = new JSONObject(); 104 jo.put("actionsValues", actionValues); 105 jo 118 getEntitlements(JSONObject jo) argument [all...] |
H A D | EntitlementSubjectImpl.java | 82 JSONObject jo = new JSONObject(state); 83 uuid = jo.has("uuid") ? jo.optString("uuid") : null; 84 pSubjectName = jo.has("pSubjectName") ? 85 jo.optString("pSubjectName") : null; 86 exclusive = jo.has("exclusive") ? 87 Boolean.parseBoolean(jo.optString("exclusive")) : false; 108 JSONObject jo = new JSONObject(); 109 jo.put("uuid", uuid); 110 jo [all...] |
H A D | AttributeSubject.java | 136 JSONObject jo = new JSONObject(state); 137 id = jo.has("id") ? jo.optString("id") : null; 138 value = jo.has("value") ? 139 jo.optString("value") : null; 140 exclusive = jo.has("exclusive") ? 141 Boolean.parseBoolean(jo.optString("exclusive")) : false; 162 JSONObject jo = new JSONObject(); 163 jo.put("id", id); 164 jo [all...] |
/forgerock/openam/openam-entitlements/src/main/java/com/sun/identity/entitlement/ |
H A D | JSONNotification.java | 46 JSONObject jo = new JSONObject(); 47 jo.put("type", type.getMessage()); 50 jo.put("realm", realm); 53 jo.put("privilegeName", privilegeName); 54 jo.put("resources", resources); 55 return jo.toString();
|
H A D | JSONEntitlement.java | 67 * @param jo JSON object. 68 * @throws JSONException if <code>jo</code> is not well formed. 70 public JSONEntitlement(JSONObject jo) throws JSONException { argument 71 resourceName = jo.optString("resourceName"); 72 actionValues = JSONUtils.getMapStringBoolean(jo, "actionsValues"); 73 advices = JSONUtils.getMapStringSetString(jo, "advices"); 74 attributes = JSONUtils.getMapStringSetString(jo, "attributes"); 103 JSONObject jo = new JSONObject(); 104 jo.put("actionsValues", actionValues); 105 jo 118 getEntitlements(JSONObject jo) argument [all...] |
H A D | EntitlementSubjectImpl.java | 82 JSONObject jo = new JSONObject(state); 83 uuid = jo.has("uuid") ? jo.optString("uuid") : null; 84 pSubjectName = jo.has("pSubjectName") ? 85 jo.optString("pSubjectName") : null; 86 exclusive = jo.has("exclusive") ? 87 Boolean.parseBoolean(jo.optString("exclusive")) : false; 108 JSONObject jo = new JSONObject(); 109 jo.put("uuid", uuid); 110 jo [all...] |
H A D | AttributeSubject.java | 136 JSONObject jo = new JSONObject(state); 137 id = jo.has("id") ? jo.optString("id") : null; 138 value = jo.has("value") ? 139 jo.optString("value") : null; 140 exclusive = jo.has("exclusive") ? 141 Boolean.parseBoolean(jo.optString("exclusive")) : false; 162 JSONObject jo = new JSONObject(); 163 jo.put("id", id); 164 jo [all...] |
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/entitlement/ |
H A D | Privilege.java | 356 JSONObject jo = toJSONObject(); 357 s = (jo == null) ? super.toString() : jo.toString(2); 366 JSONObject jo = new JSONObject(); 367 jo.put(NAME_ATTRIBUTE, name); 370 jo.put("description", description); 373 jo.put("entitlement", entitlement.toJSONObject()); 380 jo.put("eSubject", subjo); 387 jo.put("eCondition", subjo); 395 jo 428 init(JSONObject jo) argument 430 getInstance(JSONObject jo) argument 468 getResourceAttributes(JSONObject jo) argument 498 getESubject(JSONObject jo) argument 521 getECondition(JSONObject jo) argument 903 getNewInstance(String jo) argument 915 getNewInstance(JSONObject jo) argument [all...] |
H A D | LogicalCondition.java | 84 JSONObject jo = new JSONObject(state); 85 setState(jo); 86 pConditionName = (jo.has("pConditionName")) ? 87 jo.optString("pConditionName") : null; 88 JSONArray memberConditions = jo.optJSONArray("memberECondition"); 189 JSONObject jo = new JSONObject(); 190 toJSONObject(jo); 191 jo.put("pConditionName", pConditionName); 198 jo.append("memberECondition", subjo); 201 return jo; [all...] |
H A D | NotCondition.java | 99 JSONObject jo = new JSONObject(state); 100 setState(jo); 101 pConditionName = (jo.has("pConditionName")) ? 102 jo.optString("pConditionName") : null; 104 JSONObject memberCondition = jo.optJSONObject("memberECondition"); 239 JSONObject jo = new JSONObject(); 240 toJSONObject(jo); 241 jo.put("pConditionName", pConditionName); 247 jo.put("memberECondition", subjo); 250 return jo; [all...] |
H A D | EntitlementConditionAdaptor.java | 67 protected void setState(JSONObject jo) { argument 68 displayType = (jo.has("displayType")) ? jo.optString("displayType") : 72 protected void toJSONObject(JSONObject jo) argument 75 jo.put("displayType", displayType);
|
H A D | EntitlementListener.java | 48 public EntitlementListener(JSONObject jo) argument 50 String strURL = jo.optString("url"); 58 mapAppToRes = JSONUtils.getMapStringSetString(jo, "mapAppToRes"); 62 JSONObject jo = new JSONObject(); 63 jo.put("url", url.toString()); 64 jo.put("mapAppToRes", mapAppToRes); 65 return jo;
|
H A D | ReferralPrivilege.java | 122 public static ReferralPrivilege getInstance(JSONObject jo) { argument 125 r.name = jo.optString("name"); 126 r.description = jo.optString("description"); 127 if (jo.has("createdBy")) { 128 r.createdBy = jo.getString("createdBy"); 130 if (jo.has("lastModifiedBy")) { 131 r.lastModifiedBy = jo.getString("lastModifiedBy"); 133 if (jo.has("active")) { 134 r.active = jo.getBoolean("active"); 136 r.creationDate = JSONUtils.getLong(jo, "creationDat [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/entitlement/ |
H A D | Privilege.java | 356 JSONObject jo = toJSONObject(); 357 s = (jo == null) ? super.toString() : jo.toString(2); 366 JSONObject jo = new JSONObject(); 367 jo.put(NAME_ATTRIBUTE, name); 370 jo.put("description", description); 373 jo.put("entitlement", entitlement.toJSONObject()); 380 jo.put("eSubject", subjo); 387 jo.put("eCondition", subjo); 395 jo 428 init(JSONObject jo) argument 430 getInstance(JSONObject jo) argument 468 getResourceAttributes(JSONObject jo) argument 498 getESubject(JSONObject jo) argument 521 getECondition(JSONObject jo) argument 903 getNewInstance(String jo) argument 915 getNewInstance(JSONObject jo) argument [all...] |
H A D | LogicalCondition.java | 84 JSONObject jo = new JSONObject(state); 85 setState(jo); 86 pConditionName = (jo.has("pConditionName")) ? 87 jo.optString("pConditionName") : null; 88 JSONArray memberConditions = jo.optJSONArray("memberECondition"); 189 JSONObject jo = new JSONObject(); 190 toJSONObject(jo); 191 jo.put("pConditionName", pConditionName); 198 jo.append("memberECondition", subjo); 201 return jo; [all...] |
H A D | NotCondition.java | 99 JSONObject jo = new JSONObject(state); 100 setState(jo); 101 pConditionName = (jo.has("pConditionName")) ? 102 jo.optString("pConditionName") : null; 104 JSONObject memberCondition = jo.optJSONObject("memberECondition"); 239 JSONObject jo = new JSONObject(); 240 toJSONObject(jo); 241 jo.put("pConditionName", pConditionName); 247 jo.put("memberECondition", subjo); 250 return jo; [all...] |
H A D | EntitlementConditionAdaptor.java | 67 protected void setState(JSONObject jo) { argument 68 displayType = (jo.has("displayType")) ? jo.optString("displayType") : 72 protected void toJSONObject(JSONObject jo) argument 75 jo.put("displayType", displayType);
|
H A D | EntitlementListener.java | 48 public EntitlementListener(JSONObject jo) argument 50 String strURL = jo.optString("url"); 58 mapAppToRes = JSONUtils.getMapStringSetString(jo, "mapAppToRes"); 62 JSONObject jo = new JSONObject(); 63 jo.put("url", url.toString()); 64 jo.put("mapAppToRes", mapAppToRes); 65 return jo;
|
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/entitlement/opensso/ |
H A D | PolicyCondition.java | 123 JSONObject jo = new JSONObject(state); 124 setState(jo); 125 this.name = jo.optString("name"); 126 this.className = jo.optString("className"); 127 this.properties = getProperties((JSONObject)jo.opt("properties")); 133 private Map<String, Set<String>> getProperties(JSONObject jo) argument 136 for (Iterator i = jo.keys(); i.hasNext(); ) { 138 JSONArray arr = (JSONArray)jo.opt(key); 155 JSONObject jo = new JSONObject(); 158 toJSONObject(jo); [all...] |
H A D | PolicyResponseProvider.java | 200 JSONObject jo = new JSONObject(); 203 jo.put("className", className); 204 jo.put("propertyValues", propertyValues); 205 jo.put("pResponseProviderName", pResponseProviderName); 206 jo.put("propertyName", propertyName); 207 return jo.toString(2); 220 JSONObject jo = new JSONObject(state); 221 this.className = jo.optString("className"); 222 this.propertyValues = JSONUtils.getSet(jo, "propertyValues"); 223 this.pResponseProviderName = jo 250 getProperties(JSONObject jo) argument [all...] |
H A D | PolicySubject.java | 131 JSONObject jo = new JSONObject(state); 132 this.name = jo.optString("name"); 133 this.className = jo.optString("className"); 134 this.exclusive = jo.optBoolean("exclusive"); 135 this.values = getValues((JSONArray)jo.opt("values")); 141 private Set<String> getValues(JSONArray jo) argument 144 for (int i = 0; i < jo.length(); i++) { 145 result.add(jo.getString(i)); 156 JSONObject jo = new JSONObject(); 159 jo [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/entitlement/opensso/ |
H A D | PolicyCondition.java | 123 JSONObject jo = new JSONObject(state); 124 setState(jo); 125 this.name = jo.optString("name"); 126 this.className = jo.optString("className"); 127 this.properties = getProperties((JSONObject)jo.opt("properties")); 133 private Map<String, Set<String>> getProperties(JSONObject jo) argument 136 for (Iterator i = jo.keys(); i.hasNext(); ) { 138 JSONArray arr = (JSONArray)jo.opt(key); 155 JSONObject jo = new JSONObject(); 158 toJSONObject(jo); [all...] |
H A D | PolicyResponseProvider.java | 200 JSONObject jo = new JSONObject(); 203 jo.put("className", className); 204 jo.put("propertyValues", propertyValues); 205 jo.put("pResponseProviderName", pResponseProviderName); 206 jo.put("propertyName", propertyName); 207 return jo.toString(2); 220 JSONObject jo = new JSONObject(state); 221 this.className = jo.optString("className"); 222 this.propertyValues = JSONUtils.getSet(jo, "propertyValues"); 223 this.pResponseProviderName = jo 250 getProperties(JSONObject jo) argument [all...] |
H A D | PolicySubject.java | 131 JSONObject jo = new JSONObject(state); 132 this.name = jo.optString("name"); 133 this.className = jo.optString("className"); 134 this.exclusive = jo.optBoolean("exclusive"); 135 this.values = getValues((JSONArray)jo.opt("values")); 141 private Set<String> getValues(JSONArray jo) argument 144 for (int i = 0; i < jo.length(); i++) { 145 result.add(jo.getString(i)); 156 JSONObject jo = new JSONObject(); 159 jo [all...] |