Class AclUtils

java.lang.Object
org.opencastproject.external.util.AclUtils

public final class AclUtils extends Object
  • Method Details

    • deserializeJsonToAcl

      public static org.opencastproject.security.api.AccessControlList deserializeJsonToAcl(String json, boolean assumeAllow) throws IllegalArgumentException, org.json.simple.parser.ParseException
      De-serialize an JSON into an AccessControlList.
      Parameters:
      json - The AccessControlList to serialize.
      assumeAllow - Assume that all entries are allows.
      Returns:
      An AccessControlList representation 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

      public static com.google.gson.JsonArray serializeAclToJson(org.opencastproject.security.api.AccessControlList acl)
      Serialize an AccessControlList into json.
      Parameters:
      acl - The AccessControlList to serialize.
      Returns:
      A JsonArray representation of the AccessControlList