public class QuickSearch extends XMLRequest implements java.lang.Iterable<QuickSearchItem>
Constructor and Description |
---|
QuickSearch(java.lang.String pat)
Create a new
QuickAccess request. |
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
java.util.Iterator<QuickSearchItem> |
iterator()
Returns an
java.util.Iterator which can be used to read the result items. |
int |
size()
Returns the number of items in the response.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public QuickSearch(java.lang.String pat)
QuickAccess
request.pat
- Part of the object nameprotected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- 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 XMLRequest
public java.util.Iterator<QuickSearchItem> iterator()
java.util.Iterator
which can be used to read the result items.iterator
in interface java.lang.Iterable<QuickSearchItem>
QuickAccessItem
public int size()
protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwise