|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.notify.NotificationSet
A notification set associates a message with a list of recipients. This
class is the "workhorse" of the policy based notification functionality.
Message recipients can be users or groups (principals). Groups are resolved
to users at the time the event occurs.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
messageBody
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
PROXY_CLASSNAME_PREFIX
|
private WTStringSet |
recipientSet
|
private static String |
RESOURCE
|
private ReferenceFactory |
rf
|
(package private) static long |
serialVersionUID
|
private String |
subject
|
private static String |
TEMPLATE_RESOURCE
|
private String |
templateName
|
private static boolean |
VERBOSE
|
private static boolean |
VERBOSE_EXECUTION
|
private static boolean |
VERBOSE_POLICY
|
protected static long |
VERSION_30_UID
|
protected static long |
VERSION_40_UID
|
private static String |
WT_CLASSNAME_PREFIX
|
Constructor Summary | |
NotificationSet()
|
Method Summary | |
void |
addRecipient(Object recipient)
Adds a recipient to the notification set. |
protected Enumeration |
getListeners()
Returns an enumeration containing object references for the listeners of the notification set. |
String |
getMessageBody()
Gets the value of the attribute: messageBody; Body of notification message. |
private WTUser |
getProxyUser(String user_name)
|
EnumeratorVector |
getRecipients()
Returns an enumeration consisting of references to the recipients. |
protected WTStringSet |
getRecipientSet()
Gets the value of the attribute: recipientSet. |
String |
getSubject()
Gets the value of the attribute: subject; Notification message subject. |
String |
getTemplateName()
Gets the value of the attribute: templateName; Name of the template used to create notification. |
protected void |
initialize()
Supported API: false |
protected boolean |
isEquivalent(NotificationSet set)
Determines if two notification sets are equivalent, that is result in the same message being sent. |
protected void |
merge(NotificationSet set)
Adds the recipients of the second notification set to the first. |
private void |
messageBodyValidate(String a_MessageBody)
|
static NotificationSet |
newNotificationSet()
No-arg constructor. |
private void |
read40Version(ObjectInput input)
Reads 4.0 version, when a NotificationSet was composed of two Hashtables, one mapping template names to users and another mapping template names to roles. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(NotificationSet thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
recipientSetValidate(WTStringSet a_RecipientSet)
|
void |
removeAllRecipients()
Removes all recipients from the notification set. |
void |
removeRecipient(Object recipient)
Removes a recipient from the notification set. |
private void |
replaceProxyReferences()
|
void |
setMessageBody(String a_MessageBody)
Sets the value of the attribute: messageBody; Body of notification message. |
protected void |
setRecipientSet(WTStringSet a_RecipientSet)
Sets the value of the attribute: recipientSet. |
void |
setSubject(String a_Subject)
Sets the value of the attribute: subject; Notification message subject. |
void |
setTemplateName(String a_TemplateName)
Sets the value of the attribute: templateName; Name of the template used to create notification. |
private void |
subjectValidate(String a_Subject)
|
private void |
templateNameValidate(String a_TemplateName)
|
String |
toString()
Returns a string representation of the object. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String templateName
private String subject
private String messageBody
private WTStringSet recipientSet
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final long VERSION_40_UID
protected static final long VERSION_30_UID
private static final String PROXY_CLASSNAME_PREFIX
private static final String WT_CLASSNAME_PREFIX
private static final String TEMPLATE_RESOURCE
private static boolean VERBOSE_POLICY
private static boolean VERBOSE_EXECUTION
private static boolean VERBOSE
private ReferenceFactory rf
Constructor Detail |
public NotificationSet()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(NotificationSet thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getTemplateName()
public void setTemplateName(String a_TemplateName) throws WTPropertyVetoException
a_TemplateName
-
WTPropertyVetoException
private void templateNameValidate(String a_TemplateName) throws WTPropertyVetoException
a_TemplateName
-
WTPropertyVetoException
public String getSubject()
public void setSubject(String a_Subject) throws WTPropertyVetoException
a_Subject
-
WTPropertyVetoException
private void subjectValidate(String a_Subject) throws WTPropertyVetoException
a_Subject
-
WTPropertyVetoException
public String getMessageBody()
public void setMessageBody(String a_MessageBody) throws WTPropertyVetoException
a_MessageBody
-
WTPropertyVetoException
private void messageBodyValidate(String a_MessageBody) throws WTPropertyVetoException
a_MessageBody
-
WTPropertyVetoException
protected WTStringSet getRecipientSet()
protected void setRecipientSet(WTStringSet a_RecipientSet) throws WTPropertyVetoException
a_RecipientSet
-
WTPropertyVetoException
private void recipientSetValidate(WTStringSet a_RecipientSet) throws WTPropertyVetoException
a_RecipientSet
-
WTPropertyVetoException
public static NotificationSet newNotificationSet() throws WTException
WTException
protected void initialize()
protected void merge(NotificationSet set)
set
- public String toString()
public void addRecipient(Object recipient) throws WTException
recipient
-
WTException
public void removeRecipient(Object recipient) throws WTException
recipient
-
WTException
public void removeAllRecipients() throws WTException
WTException
public EnumeratorVector getRecipients() throws WTException
WTException
protected boolean isEquivalent(NotificationSet set)
set
-
protected Enumeration getListeners() throws WTException
Recipients that are listeners (objects that implement the ObjectSubscriptionListener
interface) are not currently supported. Listeners in notification
sets are to facilitate customization of the actions to be performed
when an event happens. However, currently the Policy Administrator
client does not support recipients other than principals. Additional
enhancements are required to support listeners.
Supported API: false
WTException
private void read40Version(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private WTUser getProxyUser(String user_name) throws WTException
WTException
private void replaceProxyReferences()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |