Class Sandbox.Permissions
- java.lang.Object
-
- org.apache.commons.jexl2.introspection.Sandbox.Permissions
-
- Enclosing class:
- Sandbox
public static final class Sandbox.Permissions extends java.lang.Object
Contains the white or black lists for properties and methods for a given class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sandbox.Namesexecute()Gets the set of method names in these permissions.Sandbox.Permissionsexecute(java.lang.String... mnames)Adds a list of executable methods names to these permissions.Sandbox.Namesread()Gets the set of readable property names in these permissions.Sandbox.Permissionsread(java.lang.String... pnames)Adds a list of readable property names to these permissions.Sandbox.Nameswrite()Gets the set of writeable property names in these permissions.Sandbox.Permissionswrite(java.lang.String... pnames)Adds a list of writeable property names to these permissions.
-
-
-
Method Detail
-
read
public Sandbox.Permissions read(java.lang.String... pnames)
Adds a list of readable property names to these permissions.- Parameters:
pnames- the property names- Returns:
- this instance of permissions
-
write
public Sandbox.Permissions write(java.lang.String... pnames)
Adds a list of writeable property names to these permissions.- Parameters:
pnames- the property names- Returns:
- this instance of permissions
-
execute
public Sandbox.Permissions execute(java.lang.String... mnames)
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:
mnames- the method names- Returns:
- this instance of permissions
-
read
public Sandbox.Names read()
Gets the set of readable property names in these permissions.- Returns:
- the set of property names
-
write
public Sandbox.Names write()
Gets the set of writeable property names in these permissions.- Returns:
- the set of property names
-
execute
public Sandbox.Names execute()
Gets the set of method names in these permissions.- Returns:
- the set of method names
-
-