Package com.uc4.communication.requests
Class NotificationMonitor
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.NotificationMonitor
- All Implemented Interfaces:
Iterable<NotificationMonitor.CallStatus>
public class NotificationMonitor
extends XMLRequest
implements Iterable<NotificationMonitor.CallStatus>
Reads the monitor of a notification.
The modify the notification use the request
ModifyNotificationMonitor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
This inner class represents a row in the calling status table of this notification monitor.static enum
Notification type. -
Constructor Summary
ConstructorsConstructorDescriptionNotificationMonitor
(int runID) Creates a newNotificationMonitor
request.NotificationMonitor
(List<Integer> runIDs) Creates a newNotificationMonitor
request. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createRequest
(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.Returns the date and time on which the Notification escalates.Returns the message text of this notification.Returns a list of NotificationMonitor objects.Returns the type of the notification independent of the logon languge.int
Returns the RunID of the parent or0
if there is none.Returns the Priority of the Notification (high, normal, low).int
getRunID()
Returns the RunID of this notification.protected String
getSrc()
Returns the request source.Returns the start time of this notification.int
Returns the status of the notification.Returns the subject of the message text.Translated type text, for example Email, Message, Request or Alert.protected void
handleContent
(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.boolean
Returnstrue
if this notification has comments.protected boolean
This method is used internally.iterator()
int
size()
Returns the number of rows in the calling status table.Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NotificationMonitor
public NotificationMonitor(int runID) Creates a newNotificationMonitor
request.- Parameters:
runID
- RunID of the CALL task.
-
NotificationMonitor
Creates a newNotificationMonitor
request.- Parameters:
runIDs
- RunIDs of the CALL tasks.
-
-
Method Details
-
getRunID
public int getRunID()Returns the RunID of this notification.- Returns:
- RunID
-
getParentRunID
public int getParentRunID()Returns the RunID of the parent or0
if there is none.- Returns:
- RunID of the parent
-
getSrc
Description copied from class:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in classXMLRequest
- Parameters:
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the session
-
handleContent
Description copied from class:XMLRequest
Sub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContent
in classXMLRequest
- Parameters:
doc
- XML Documentsession
- Info about the user session
-
getStatusCode
public int getStatusCode()Returns the status of the notification. This information can be used to restrict the possible actions. For example, enable or disable accept, done and reject button depending on the state.- Returns:
Type Alert
- 1552 Called - possible actions are Accept or Reject
- 1553 Accepted - possible actions are Done and Reject
Type Request
- 1552 Called - possible actions are Yes or No
Type Message
- 1552 Called - possible action is Ok
-
getNotificationType
Returns the type of the notification independent of the logon languge. The translated type text is returned ingetTypeText()
- Returns:
- Type
-
hasComment
public boolean hasComment()Returnstrue
if this notification has comments. The requestGetComments
can be used to get the detail of the comment.- Returns:
- true if comments are stored
-
getEscalation
Returns the date and time on which the Notification escalates. The specified Notification starts if there is no user acknowledgement. A particular point in time is only displayed if a definition was made in the setting "Escalation" of the "Operator" tab.- Returns:
- DateTime instance, which can be empty but never null
-
getTypeText
Translated type text, for example Email, Message, Request or Alert.- Returns:
- Type of the notification
-
getPriority
Returns the Priority of the Notification (high, normal, low).- Returns:
- translated priority, for example "High" (English) or "Hoch" (German)
-
getStartTime
Returns the start time of this notification.- Returns:
- Start time
-
getSubject
Returns the subject of the message text.- Returns:
- Subject
-
getMessage
Returns the message text of this notification.- Returns:
- Message text
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()Description copied from class:XMLRequest
This method is used internally. Tests if thisXMLRequest
is allowed in client 0. The default implementation returnsfalse
, subclasses may override.- Overrides:
isAllowedInClientZero
in classXMLRequest
- Returns:
true
if this request is allowed in client 0,false
otherwise
-
iterator
- Specified by:
iterator
in interfaceIterable<NotificationMonitor.CallStatus>
-
size
public int size()Returns the number of rows in the calling status table.- Returns:
- Count
-
getNotificationMonitors
Returns a list of NotificationMonitor objects.- Returns:
- List of NotificationMonitor, can be empty but never null.
-