public static final class Sandbox.Permissions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Sandbox.Names |
execute
The controlled methods.
|
private Sandbox.Names |
read
The controlled readable properties.
|
private Sandbox.Names |
write
The controlled writeable properties.
|
Constructor and Description |
---|
Permissions(boolean readFlag,
boolean writeFlag,
boolean executeFlag)
Creates a new permissions instance.
|
Permissions(Sandbox.Names nread,
Sandbox.Names nwrite,
Sandbox.Names nexecute)
Creates a new permissions instance.
|
Modifier and Type | Method and Description |
---|---|
Sandbox.Names |
execute()
Gets the set of method names in these permissions.
|
Sandbox.Permissions |
execute(java.lang.String... mnames)
Adds a list of executable methods names to these permissions.
|
Sandbox.Names |
read()
Gets the set of readable property names in these permissions.
|
Sandbox.Permissions |
read(java.lang.String... pnames)
Adds a list of readable property names to these permissions.
|
Sandbox.Names |
write()
Gets the set of writeable property names in these permissions.
|
Sandbox.Permissions |
write(java.lang.String... pnames)
Adds a list of writeable property names to these permissions.
|
private final Sandbox.Names read
private final Sandbox.Names write
private final Sandbox.Names execute
Permissions(boolean readFlag, boolean writeFlag, boolean executeFlag)
readFlag
- whether the read property list is white or blackwriteFlag
- whether the write property list is white or blackexecuteFlag
- whether the method list is white of blackPermissions(Sandbox.Names nread, Sandbox.Names nwrite, Sandbox.Names nexecute)
nread
- the read setnwrite
- the write setnexecute
- the method setpublic Sandbox.Permissions read(java.lang.String... pnames)
pnames
- the property namespublic Sandbox.Permissions write(java.lang.String... pnames)
pnames
- the property namespublic Sandbox.Permissions execute(java.lang.String... mnames)
The constructor is denoted as the empty-string, all other methods by their names.
mnames
- the method namespublic Sandbox.Names read()
public Sandbox.Names write()
public Sandbox.Names execute()