public class Authorizations extends java.lang.Object implements java.lang.Iterable<Authorizations.Entry>
Modifier and Type | Class and Description |
---|---|
static interface |
Authorizations.Entry
Represents a single authorization for a client.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Sets the Read, Write and Execute permission for each client to
false . |
java.util.Iterator<Authorizations.Entry> |
iterator()
Returns an iterator over
AuthorizationItem . |
boolean |
setHostAuthorization(int client,
boolean read,
boolean write,
boolean execute)
Sets the authorizations for a client.
|
boolean |
setHostAuthorization(int client,
boolean read,
boolean write,
boolean execute,
boolean selection)
Sets the authorizations in case of Agent assignments.
|
int |
size() |
public int size()
public boolean setHostAuthorization(int client, boolean read, boolean write, boolean execute)
client
- Number of the clientread
- Read permissionwrite
- Write permissionexecute
- Execute permissionpublic boolean setHostAuthorization(int client, boolean read, boolean write, boolean execute, boolean selection)
client
- Number of the clientread
- Read permissionwrite
- Write permissionexecute
- Execute permissionselection
- Selectionpublic java.util.Iterator<Authorizations.Entry> iterator()
AuthorizationItem
.iterator
in interface java.lang.Iterable<Authorizations.Entry>
public void clear()
false
.