Class JexlSandbox.Permissions
java.lang.Object
org.apache.commons.jexl3.introspection.JexlSandbox.Permissions
- Enclosing class:
JexlSandbox
Contains the allow or block lists for properties and methods for a given class.
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Gets the set of method names in these permissions.Adds a list of executable methods names to these permissions.boolean
Do these permissions apply to derived classes?read()
Gets the set of readable property names in these permissions.Adds a list of readable property names to these permissions.write()
Gets the set of writable property names in these permissions.Adds a list of writable property names to these permissions.
-
Method Details
-
execute
Gets the set of method names in these permissions.- Returns:
- the set of method names
-
execute
Adds a list of executable methods names to these permissions.The constructor is denoted as the empty-string, all other methods by their names.
- Parameters:
methodNames
- the method names- Returns:
- this instance of permissions
-
isInheritable
Do these permissions apply to derived classes?- Returns:
- whether these permissions apply to derived classes.
-
read
Gets the set of readable property names in these permissions.- Returns:
- the set of property names
-
read
Adds a list of readable property names to these permissions.- Parameters:
propertyNames
- the property names- Returns:
- this instance of permissions
-
write
Gets the set of writable property names in these permissions.- Returns:
- the set of property names
-
write
Adds a list of writable property names to these permissions.- Parameters:
propertyNames
- the property names- Returns:
- this instance of permissions
-