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. |
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
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() |
protected java.lang.String |
getSrc()
Returns the request source.
|
int |
getUpdateCount() |
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotificationpublic 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 permittedprotected void createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
XMLRequestcreateRequest in class XMLRequestdoc - Document, used to create new Elementsrequest - Request Element - classes append information to this request elementsessionInfo - Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session)
handleContent in class XMLRequestpublic 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.ModificationStatuspublic 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.ModificationStatusprotected java.lang.String getSrc()
XMLRequestgetSrc in class XMLRequestprotected boolean isAllowedInClientZero()
XMLRequestXMLRequest is allowed in client 0.
The default implementation returns false, subclasses may override.isAllowedInClientZero in class XMLRequesttrue if this request is allowed in client 0, false otherwise