Class QDLACL

  • All Implemented Interfaces:
    Serializable, org.qdl_lang.extensions.QDLMetaModule

    public class QDLACL
    extends Object
    implements org.qdl_lang.extensions.QDLMetaModule

    ACL Use

    Access Control Lists for QDL Scripts in OA4MP. You may do

    • acl_reject(id|id.) - blacklist these
    • acl_add(id|id.) - allow access for the ids.

    Note that you may specify either client ids individually, admin IDs. or * (to allow unlimited access for, e.g., some library that is widely used). Setting an admin id will allow all clients managed by the admin to have access.

    Created by Jeff Gaynor
    on 1/25/21 at 7:44 AM

    See Also:
    Serialized Form
    • Field Detail

      • ACL_REJECT_NAME

        public static String ACL_REJECT_NAME
      • ADD_TO_ACL_NAME

        public static String ADD_TO_ACL_NAME
      • CHECK_ACL_NAME

        public static String CHECK_ACL_NAME
      • ACL_ACCEPT_ALL

        public static edu.uiuc.ncsa.security.core.Identifier ACL_ACCEPT_ALL
    • Constructor Detail

      • QDLACL

        public QDLACL()
    • Method Detail

      • setWhiteList

        public void setWhiteList​(TreeSet<String> whiteList)
      • setBlackList

        public void setBlackList​(TreeSet<String> blackList)
      • hasWhiteList

        public boolean hasWhiteList()
      • hasBlackList

        public boolean hasBlackList()
      • acceptOrReject

        protected Boolean acceptOrReject​(org.qdl_lang.variables.values.QDLValue[] qdlValues,
                                         org.qdl_lang.state.State state,
                                         String name,
                                         boolean accept)
      • serializeToJSON

        public net.sf.json.JSONObject serializeToJSON()
        Specified by:
        serializeToJSON in interface org.qdl_lang.extensions.QDLMetaModule
      • deserializeFromJSON

        public void deserializeFromJSON​(net.sf.json.JSONObject jsonObject)
        Specified by:
        deserializeFromJSON in interface org.qdl_lang.extensions.QDLMetaModule