Package com.sun.identity.entitlement
Class JSONEntitlement
- java.lang.Object
-
- com.sun.identity.entitlement.JSONEntitlement
-
public class JSONEntitlement extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_DECISION_ARRAY_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetActionValue(String action)Map<String,Boolean>getActionValues()Map<String,Set<String>>getAdvices()Map<String,Set<String>>getAttributes()static List<JSONEntitlement>getEntitlements(org.json.JSONObject jo)StringgetResourceName()Returns resource name.org.json.JSONObjecttoJSONObject()
-
-
-
Field Detail
-
JSON_DECISION_ARRAY_KEY
public static final String JSON_DECISION_ARRAY_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JSONEntitlement
public JSONEntitlement(String resourceName, Map<String,Boolean> actionValues, Map<String,Set<String>> advices, Map<String,Set<String>> attributes)
Constructor.- Parameters:
resourceName- reource name.actionValues- action values.
-
JSONEntitlement
public JSONEntitlement(org.json.JSONObject jo) throws org.json.JSONExceptionConstructor.- Parameters:
jo- JSON object.- Throws:
org.json.JSONException- ifjois not well formed.
-
-
Method Detail
-
getResourceName
public String getResourceName()
Returns resource name.- Returns:
- resource name.
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONException- Throws:
org.json.JSONException
-
getEntitlements
public static List<JSONEntitlement> getEntitlements(org.json.JSONObject jo) throws org.json.JSONException
- Throws:
org.json.JSONException
-
-