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 classThis inner class represents a row in the calling status table of this notification monitor.static enumNotification type. -
Constructor Summary
ConstructorsConstructorDescriptionNotificationMonitor(int runID) Creates a newNotificationMonitorrequest.NotificationMonitor(List<Integer> runIDs) Creates a newNotificationMonitorrequest. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(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.intReturns the RunID of the parent or0if there is none.Returns the Priority of the Notification (high, normal, low).intgetRunID()Returns the RunID of this notification.protected StringgetSrc()Returns the request source.Returns the start time of this notification.intReturns the status of the notification.Returns the subject of the message text.Translated type text, for example Email, Message, Request or Alert.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.booleanReturnstrueif this notification has comments.protected booleanThis method is used internally.iterator()intsize()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, showQuarantineNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NotificationMonitor
public NotificationMonitor(int runID) Creates a newNotificationMonitorrequest.- Parameters:
runID- RunID of the CALL task.
-
NotificationMonitor
Creates a newNotificationMonitorrequest.- 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 or0if there is none.- Returns:
- RunID of the parent
-
getSrc
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin 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:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContentin 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()Returnstrueif this notification has comments. The requestGetCommentscan 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:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-
iterator
- Specified by:
iteratorin 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.
-