public class SetHostAuthorizations extends XMLRequest
Modifier and Type | Class and Description |
---|---|
static class |
SetHostAuthorizations.ModificationStatus
This class stores the modification status of a single HOST object.
|
Constructor and Description |
---|
SetHostAuthorizations(java.lang.String hostnameFilter,
int client,
boolean read,
boolean write,
boolean execute)
Sets the specified authorizations for all hosts that match the filter.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<SetHostAuthorizations.ModificationStatus> |
changedIterator()
Returns an
Iterator that can be used to read a list of successful modified host names. |
java.util.Iterator<SetHostAuthorizations.ModificationStatus> |
failedIterator()
Returns an
Iterator that can be used to read a list of host names that where not modified. |
int |
getFailedCount() |
int |
getUpdateCount() |
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send
public SetHostAuthorizations(java.lang.String hostnameFilter, int client, boolean read, boolean write, boolean execute)
hostnameFilter
- Name of the host, can include the wildcards * and ?client
- UC4 clientread
- true if read access should be permittedwrite
- true if write access should be permittedexecute
- true if execute access should be permittedpublic int getUpdateCount()
public int getFailedCount()
public java.util.Iterator<SetHostAuthorizations.ModificationStatus> changedIterator()
Iterator
that can be used to read a list of successful modified host names.SetHostAuthorizations.ModificationStatus
public java.util.Iterator<SetHostAuthorizations.ModificationStatus> failedIterator()
Iterator
that can be used to read a list of host names that where not modified.
Each returned instance of SetHostAuthorizations.ModificationStatus
contains a getMessage()
method that returns the reason for failure.SetHostAuthorizations.ModificationStatus