Package com.uc4.api.objects
Class Operator
- java.lang.Object
-
- com.uc4.api.objects.Operator
-
public class Operator extends java.lang.Object
Operator settings of an Nofitication.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Operator(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEmail(java.lang.String emailAddress)
Sets an e-mail address to which a notified sent.void
addEmail(java.lang.String emailAddress, CalendarCondition condition)
Sets an e-mail address to which a notified sent on the specified calendar condition.void
addOperator(UC4ObjectName operator)
Adds a new Operator without a calendar condition.void
addOperator(UC4ObjectName operator, CalendarCondition condition)
Adds a new Operator which is notified on the specified calendar condition.void
clear()
Removes all recipients.java.util.Iterator<ICallOperatorCondition>
operatorIterator()
Returns an iterator overICallOperatorCondition
.int
operatorSize()
Returns the number of operator entries returned by theoperatorIterator
method.boolean
removeMail(java.lang.String emailAddress)
Removes the specified Operator from this Notification.boolean
removeOperator(UC4ObjectName operator)
Removes the specified Operator from this Notification.protected void
store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
clear
public void clear()
Removes all recipients.
-
addOperator
public void addOperator(UC4ObjectName operator, CalendarCondition condition)
Adds a new Operator which is notified on the specified calendar condition.- Parameters:
operator
- Operator which should be notified when this Notification startscondition
- Calendar condition
-
addEmail
public void addEmail(java.lang.String emailAddress, CalendarCondition condition)
Sets an e-mail address to which a notified sent on the specified calendar condition.- Parameters:
emailAddress
- e-mail addresscondition
- Calendar condition
-
addOperator
public void addOperator(UC4ObjectName operator)
Adds a new Operator without a calendar condition.- Parameters:
operator
- Operator which should be notified when this Notification starts
-
addEmail
public void addEmail(java.lang.String emailAddress)
Sets an e-mail address to which a notified sent.- Parameters:
emailAddress
- e-mail address
-
removeOperator
public boolean removeOperator(UC4ObjectName operator)
Removes the specified Operator from this Notification.- Parameters:
operator
- Name of an Operator or UserGroup- Returns:
- True if the Operator was removed successfully
-
removeMail
public boolean removeMail(java.lang.String emailAddress)
Removes the specified Operator from this Notification.- Parameters:
emailAddress
- e-mail address- Returns:
- True if the recipient was removed successfully
-
operatorIterator
public java.util.Iterator<ICallOperatorCondition> operatorIterator()
Returns an iterator overICallOperatorCondition
.- Returns:
- Iterator over Operator assignments
-
operatorSize
public int operatorSize()
Returns the number of operator entries returned by theoperatorIterator
method.- Returns:
- Number of operator entries
-
-