Package com.uc4.api.objects
Class NotificationAttributes
java.lang.Object
com.uc4.api.objects.NotificationAttributes
Notification attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the deactivate condition for this Job.Returns the escalation Notification.int
Returns the time limit in minutes.Returns the setting for extended reports.Returns the internal account assigned to this Notification.int
Priority with which this Notification should be executed in the Automation Engine.getQueue()
Returns the Queue Object.Returns the start type of this Notification.Returns the TimeZone that is to be used.boolean
Returnstrue
if automatic deactivation of the predecessor is enabled.boolean
Returnstrue
if the Notification priority is high.boolean
Returnstrue
if the Notification priority is low.boolean
Returnstrue
if the Notification priority is medium.boolean
Returnstrue
if this Notification should not be generated at activation time but rather at runtime.boolean
Returnstrue
if e-mails are sent to the responsible operators at CallOperator start.boolean
isSnmp()
Returnstrue
if SNMP is enabled.boolean
Returnstrue
if this Notification has type "Alarm".boolean
Returnstrue
if this Notification has type "Email".boolean
Returnstrue
if this Notification has type "Message".boolean
Returnstrue
if this Notification has type "Request".Returns settings for parallel tasks.void
setAutoDeactivation
(boolean autoDeactivation) Enables or disables the automatic deactivation of the predecessor.void
Sets the Notification priority to high.void
Sets the Notification priority to low.void
Sets the Notification priority to medium.void
setDeactivate
(DeactivateCondition deactivate) Sets the deactivate condition for this Job.void
setEscalationCallOperator
(UC4ObjectName escalationCallOperator) Sets an additional Notification which will be activated if the controlling operator does not respond.void
setEscalationMinutes
(int escalationMinutes) Sets the time limit, in minutes, in which the controlling operator has to respond.void
setExtendedReports
(ExtendedReports extendedReports) Sets the option for extended reports.void
setGenerateAtRuntime
(boolean generateAtRuntime) Sets if this Notification should be generated at runtime.void
setIntAccount
(String intAccount) Sets the internal account, max.void
setPriority
(int priority) Priority with which this Notification should be executed in the Automation Engine.void
setQueue
(UC4ObjectName queue) Sets the Queue that will be used when this object is executed.void
setSendEmail
(boolean sendEmail) Enables or disables sending of emails.void
setSnmp
(boolean snmp) Enables or disables SNMP.void
setStartType
(UC4ObjectName startType) Sets the start type of this Notification.void
setTimezone
(UC4TimezoneName timezone) Sets the TimeZone for this Notification.void
Selects the type "Alarm" for this Notification.void
Selects the type "Email" for this Notification.void
Selects the type "Message" for this Notification.void
Selects the type "Request" for this Notification.protected void
-
Constructor Details
-
NotificationAttributes
protected NotificationAttributes(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
getQueue
Returns the Queue Object.- Returns:
- Name of the Queue Object
-
setQueue
Sets the Queue that will be used when this object is executed.- Parameters:
queue
- Name of the Queue Object
-
getEscalationMinutes
public int getEscalationMinutes()Returns the time limit in minutes.- Returns:
- Time limit
-
setEscalationMinutes
public void setEscalationMinutes(int escalationMinutes) Sets the time limit, in minutes, in which the controlling operator has to respond.- Parameters:
escalationMinutes
- Time limit in minutes
-
getEscalationCallOperator
Returns the escalation Notification.- Returns:
- escalation Notification
-
setEscalationCallOperator
Sets an additional Notification which will be activated if the controlling operator does not respond.- Parameters:
escalationCallOperator
- Notification
-
isAutoDeactivation
public boolean isAutoDeactivation()Returnstrue
if automatic deactivation of the predecessor is enabled.- Returns:
- True if automatic deactivation of the predecessor is enabled
-
setAutoDeactivation
public void setAutoDeactivation(boolean autoDeactivation) Enables or disables the automatic deactivation of the predecessor. If selected, an escalated CallOperator automatically closes its predecessor with the status ENDED_ESCALATED.- Parameters:
autoDeactivation
- Boolean to enable or disable automatic deactivation
-
isSendEmail
public boolean isSendEmail()Returnstrue
if e-mails are sent to the responsible operators at CallOperator start.- Returns:
- Boolean value containing true if an e-mail is sent at CallOperator start
-
setSendEmail
public void setSendEmail(boolean sendEmail) Enables or disables sending of emails. ifsendEmail
is set totrue
e-mails are also sent to the responsible operators at CallOperator start. Two e-mail addresses may be specified in User objects. E-mails are then sent to both addresses.- Parameters:
sendEmail
- Boolean value to enable or disable email
-
isSnmp
public boolean isSnmp()Returnstrue
if SNMP is enabled.- Returns:
- True if an SNMP Trap should also be created when this CallOperator starts
-
setSnmp
public void setSnmp(boolean snmp) Enables or disables SNMP. If enabled an SNMP Trap should also be created when this CallOperator starts.- Parameters:
snmp
- Boolean value to enable or disable SNMP Traps
-
getStartType
Returns the start type of this Notification.- Returns:
- Start type
-
setStartType
Sets the start type of this Notification.- Parameters:
startType
- Start type
-
getIntAccount
Returns the internal account assigned to this Notification.- Returns:
- Internal account
-
setIntAccount
Sets the internal account, max. 20 characters.- Parameters:
intAccount
- Internal account
-
getPriority
public int getPriority()Priority with which this Notification should be executed in the Automation Engine. Permitted values: 0 to 255
Default: 0
1 stands for highest, 255 for lowest priority. If 0 is chosen, the priority defined in the UC_CLIENT_SETTINGS variables with TASK_PRIORITY for local clients is used. If no default priority is set or if no variable is present in the local clients, then 200 is assigned as the valid priority.- Returns:
- priority
-
setPriority
public void setPriority(int priority) Priority with which this Notification should be executed in the Automation Engine. Permitted values: 0 to 255
Default: 0
1 stands for highest, 255 for lowest priority. If 0 is chosen, the priority defined in the UC_CLIENT_SETTINGS variables with TASK_PRIORITY for local clients is used. If no default priority is set or if no variable is present in the local clients, then 200 is assigned as the valid priority.- Parameters:
priority
- Priority
-
setCallPriorityLow
public void setCallPriorityLow()Sets the Notification priority to low. -
setCallPriorityMedium
public void setCallPriorityMedium()Sets the Notification priority to medium. -
setCallPriorityHigh
public void setCallPriorityHigh()Sets the Notification priority to high. -
isCallPriorityLow
public boolean isCallPriorityLow()Returnstrue
if the Notification priority is low.- Returns:
- True if Notification priority is low
-
isCallPriorityMedium
public boolean isCallPriorityMedium()Returnstrue
if the Notification priority is medium.- Returns:
- True if Notification priority is medium
-
isCallPriorityHigh
public boolean isCallPriorityHigh()Returnstrue
if the Notification priority is high.- Returns:
- True if Notification priority is high
-
setTypeRequest
public void setTypeRequest()Selects the type "Request" for this Notification. -
setTypeAlarm
public void setTypeAlarm()Selects the type "Alarm" for this Notification. -
setTypeEmail
public void setTypeEmail()Selects the type "Email" for this Notification. -
setTypeMessage
public void setTypeMessage()Selects the type "Message" for this Notification. -
isTypeRequest
public boolean isTypeRequest()Returnstrue
if this Notification has type "Request".- Returns:
- True if type is set to "Request"
-
isTypeAlarm
public boolean isTypeAlarm()Returnstrue
if this Notification has type "Alarm".- Returns:
- True if type is set to "Alarm"
-
isTypeEmail
public boolean isTypeEmail()Returnstrue
if this Notification has type "Email".- Returns:
- True if type is set to "Email"
-
isTypeMessage
public boolean isTypeMessage()Returnstrue
if this Notification has type "Message".- Returns:
- True if type is set to "Message"
-
isGenerateAtRuntime
public boolean isGenerateAtRuntime()Returnstrue
if this Notification should not be generated at activation time but rather at runtime.- Returns:
- True if this object is generated at runtime
-
setGenerateAtRuntime
public void setGenerateAtRuntime(boolean generateAtRuntime) Sets if this Notification should be generated at runtime.- Parameters:
generateAtRuntime
- If set to true the object is generated at runtime
-
getTimezone
Returns the TimeZone that is to be used.- Returns:
- TimeZone
-
setTimezone
Sets the TimeZone for this Notification.- Parameters:
timezone
- TimeZone
-
maxParallel
Returns settings for parallel tasks.- Returns:
- parallel task settings
-
getDeactivate
Returns the deactivate condition for this Job.- Returns:
- Deactivate condition
-
setDeactivate
Sets the deactivate condition for this Job.- Parameters:
deactivate
- Deactivate condition
-
getExtendedReports
Returns the setting for extended reports.- Returns:
- Extended reports.
-
setExtendedReports
Sets the option for extended reports.- Parameters:
extendedReports
- Extended reports.
-