Class AclUtils
java.lang.Object
org.opencastproject.external.util.AclUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccessControlListdeserializeJsonToAcl(String json, boolean assumeAllow) De-serialize an JSON into anAccessControlList.static List<com.entwinemedia.fn.data.json.JValue> Serialize anAccessControlListinto json.
-
Method Details
-
deserializeJsonToAcl
public static AccessControlList deserializeJsonToAcl(String json, boolean assumeAllow) throws IllegalArgumentException, org.json.simple.parser.ParseException De-serialize an JSON into anAccessControlList.- Parameters:
json- TheAccessControlListto serialize.assumeAllow- Assume that all entries are allows.- Returns:
- An
AccessControlListrepresentation of the Json - Throws:
IllegalArgumentException- Thrown if essential parts of an access control element is missing.org.json.simple.parser.ParseException- Thrown if unable to parse the json value of the acl.
-
serializeAclToJson
Serialize anAccessControlListinto json.- Parameters:
acl- TheAccessControlListto serialize.- Returns:
- A
JValuerepresentation of theAccessControlList
-