Package org.oa4mp.server.loader.qdl.acl
Class QDLACL
- java.lang.Object
-
- org.oa4mp.server.loader.qdl.acl.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classQDLACL.ACLRejectclassQDLACL.ACLReject2classQDLACL.AddToACLclassQDLACL.AddToACL2classQDLACL.CheckACLclassQDLACL.CheckACL2This uses the short name for this so it can be used with better naming by the new module systsm, e.g. acl#add rather than acl#acl_add
-
Field Summary
Fields Modifier and Type Field Description static edu.uiuc.ncsa.security.core.IdentifierACL_ACCEPT_ALLstatic StringACL_REJECT_NAMEstatic StringADD_TO_ACL_NAMEstatic StringCHECK_ACL_NAME
-
Constructor Summary
Constructors Constructor Description QDLACL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BooleanacceptOrReject(org.qdl_lang.variables.values.QDLValue[] qdlValues, org.qdl_lang.state.State state, String name, boolean accept)voiddeserializeFromJSON(net.sf.json.JSONObject jsonObject)TreeSet<String>getBlackList()TreeSet<String>getWhiteList()booleanhasBlackList()booleanhasWhiteList()net.sf.json.JSONObjectserializeToJSON()voidsetBlackList(TreeSet<String> blackList)voidsetWhiteList(TreeSet<String> whiteList)
-
-
-
Method Detail
-
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:
serializeToJSONin interfaceorg.qdl_lang.extensions.QDLMetaModule
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject jsonObject)
- Specified by:
deserializeFromJSONin interfaceorg.qdl_lang.extensions.QDLMetaModule
-
-