public class NotificationState extends XMLRequest
| Modifier and Type | Field and Description |
|---|---|
protected static int |
NONE |
protected int |
state |
| Constructor and Description |
|---|
NotificationState() |
| 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) |
boolean |
hasNotification()
Indicates if there is an open Notification for this user or usergroup.
|
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
boolean |
isPriorityHigh()
Returns
true if a Notification with high priority exists for this user. |
boolean |
isPriorityLow()
Returns
true if a Notification with low priority exists for this user. |
boolean |
isPriorityMedium()
Returns
true if a Notification with medium priority exists for this user. |
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotificationprotected static final int NONE
protected int state
protected java.lang.String getSrc()
XMLRequestgetSrc in class XMLRequestprotected 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 boolean isPriorityHigh()
true if a Notification with high priority exists for this user.true if an unanswered high priority
Notification exists for this user in the current clientpublic boolean isPriorityMedium()
true if a Notification with medium priority exists for this user.
This method returns false if there is an open high priority Notification.true if an unanswered medium priority
Notification exists for this user in the current clientpublic boolean isPriorityLow()
true if a Notification with low priority exists for this user.
This method returns false if there are Notifications with high or medium priority.true if an unanswered low priority
Notification exists for this user in the current clientpublic boolean hasNotification()
isPriorityHigh, isPriorityMedium and isPriorityLow
can be used to determine the Notification priority.
If this method returns false none of the above methods will return true.true if an unanswered
Notification exists for this user in the current clientprotected 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