Package com.uc4.api.objects
Class Operator
java.lang.Object
com.uc4.api.objects.Operator
Operator settings of an Nofitication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets an e-mail address to which a notified sent.void
addEmail
(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.Returns an iterator overICallOperatorCondition
.int
Returns the number of operator entries returned by theoperatorIterator
method.boolean
removeMail
(String emailAddress) Removes the specified Operator from this Notification.boolean
removeOperator
(UC4ObjectName operator) Removes the specified Operator from this Notification.protected void
-
Constructor Details
-
Operator
protected Operator(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
clear
public void clear()Removes all recipients. -
addOperator
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
Sets an e-mail address to which a notified sent on the specified calendar condition.- Parameters:
emailAddress
- e-mail addresscondition
- Calendar condition
-
addOperator
Adds a new Operator without a calendar condition.- Parameters:
operator
- Operator which should be notified when this Notification starts
-
addEmail
Sets an e-mail address to which a notified sent.- Parameters:
emailAddress
- e-mail address
-
removeOperator
Removes the specified Operator from this Notification.- Parameters:
operator
- Name of an Operator or UserGroup- Returns:
- True if the Operator was removed successfully
-
removeMail
Removes the specified Operator from this Notification.- Parameters:
emailAddress
- e-mail address- Returns:
- True if the recipient was removed successfully
-
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
-