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 class
QDLACL.ACLReject
class
QDLACL.ACLReject2
class
QDLACL.AddToACL
class
QDLACL.AddToACL2
class
QDLACL.CheckACL
class
QDLACL.CheckACL2
This uses the short name for this so it can be used with better naming by the new module systsm, e.g.
-
Field Summary
Fields Modifier and Type Field Description static edu.uiuc.ncsa.security.core.Identifier
ACL_ACCEPT_ALL
static String
ACL_REJECT_NAME
static String
ADD_TO_ACL_NAME
static String
CHECK_ACL_NAME
-
Constructor Summary
Constructors Constructor Description QDLACL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Boolean
acceptOrReject(org.qdl_lang.variables.values.QDLValue[] qdlValues, org.qdl_lang.state.State state, String name, boolean accept)
void
deserializeFromJSON(net.sf.json.JSONObject jsonObject)
TreeSet<String>
getBlackList()
TreeSet<String>
getWhiteList()
boolean
hasBlackList()
boolean
hasWhiteList()
net.sf.json.JSONObject
serializeToJSON()
void
setBlackList(TreeSet<String> blackList)
void
setWhiteList(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:
serializeToJSON
in interfaceorg.qdl_lang.extensions.QDLMetaModule
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject jsonObject)
- Specified by:
deserializeFromJSON
in interfaceorg.qdl_lang.extensions.QDLMetaModule
-
-