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 | Constructor and Description |
---|---|
protected |
Authorizations(com.uc4.util.XMLDocument doc,
java.lang.String haclElementName,
boolean isAssignment) |
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() |
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request) |
protected Authorizations(com.uc4.util.XMLDocument doc, java.lang.String haclElementName, boolean isAssignment)
public int size()
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
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
.