Class JSONEntitlement


  • public class JSONEntitlement
    extends Object
    • Constructor Detail

      • JSONEntitlement

        public JSONEntitlement​(org.json.JSONObject jo)
                        throws org.json.JSONException
        Constructor.
        Parameters:
        jo - JSON object.
        Throws:
        org.json.JSONException - if jo is not well formed.
    • Method Detail

      • getResourceName

        public String getResourceName()
        Returns resource name.
        Returns:
        resource name.
      • getActionValue

        public Boolean getActionValue​(String action)
      • 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