|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
NotificationManager provides client invokable methods to notification
services. These methods are executed on the server side. The methods
support manipulation and execution of the notification rules and lists.
Supported API: true
Extendable: false
Method Summary | |
NotificationRule |
addNotificationRule(Selector selector,
NotificationSet set)
Deprecated. |
void |
createNotificationRule(AdminDomainRef domain_ref,
String type_id,
String event_key,
Hashtable attribute_value_map,
Vector principal_refs)
Creates a notification rule defining which users and groups should be notified when a specified event occurs for an object of a specified type, within a domain. |
void |
createNotificationRule(AdminDomainRef domain_ref,
String type_id,
String event_key,
Vector principal_refs)
Creates a notification rule defining which users and groups should be notified when a specified event occurs for an object of a specified type, within a domain. |
void |
deleteNotificationRule(AdminDomainRef domain_ref,
String type_id,
String event_key)
Deletes a notification rule defining which users and groups should be notified when a specified event occurs for an object of a specified type, within a domain. |
void |
deleteNotificationRule(AdminDomainRef domain_ref,
String type_id,
String event_key,
Hashtable attribute_value_map)
Deletes a notification rule defining which users and groups should be notified when a specified event occurs for an object of a specified type, within a domain. |
void |
deleteNotificationRules(AdminDomainRef domain_ref)
Deletes all notification rules within a domain. |
String |
getMessage(WTUser user,
String template,
Object ctxt)
Returns the notification message given its name. |
NotificationList |
getNotificationList(Selector selector)
Returns the notification list for a given selector. |
NotificationRule |
getNotificationRule(Selector selector)
Returns notification rule given the selector. |
Enumeration |
getNotificationRules(AdminDomainRef domain_ref)
Returns all the notification policy rules for the specified domain in the form of an enumeration. |
WTStringSet |
getRelevantEvents(Object target)
Returns all events that are relevant for a specific object. |
Enumeration |
getSubscriptions(Object subscriber,
Notifiable target,
String event_key)
Returns all subscriptions for a given subscriber, target and event key. |
ArrayList |
getUserSubscriptions(WTUser user,
Notifiable target)
Returns the subscriptions for a specific object, for which the subscriber is a principal. |
void |
send(Notification notification)
Sends an email message to the recipients specified by the notification's distribution list. |
void |
subscribeToObject(Vector subscribers,
ObjectSubscription subscription)
Subscribes to object event. |
void |
unsubscribeToObject(Vector subscriptions)
Deletes all object subscriptions passed as argument. |
void |
updateNotificationLists(Selector selector)
Deprecated. |
void |
updateNotificationRule(AdminDomainRef domain_ref,
String type_id,
String event_key,
Hashtable attribute_value_map,
Vector principal_refs)
Updates a notification rule defining which users and groups should be notified when a specified event occurs for an object of a specified type, within a domain. |
void |
updateNotificationRule(AdminDomainRef domain_ref,
String type_id,
String event_key,
Vector principal_refs)
Updates a notification rule defining which users and groups should be notified when a specified event occurs for an object of a specified type, within a domain. |
Method Detail |
public void createNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key, Vector principal_refs) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierevent_key
- event key (defined in the wt.admin.adminEventResource
resource bundle)principal_refs
- principal references for notification recipients (Vector
of WTPrincipalReference
)
WTException
public void createNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key, Hashtable attribute_value_map, Vector principal_refs) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierevent_key
- event key (defined in the wt.admin.adminEventResource
resource bundle)attribute_value_map
- attribute name, value pairs to select an object (name is Hashtable
key); may be nullprincipal_refs
- principal references for notification recipients (Vector
of WTPrincipalReference
)
WTException
public void deleteNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierevent_key
- event key (defined in the wt.admin.adminEventResource
resource bundle)
WTException
public void deleteNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key, Hashtable attribute_value_map) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierevent_key
- event key (defined in the wt.admin.adminEventResource
resource bundle)attribute_value_map
- attribute name, value pairs to select an object (name is Hashtable
key); may be null
WTException
public void deleteNotificationRules(AdminDomainRef domain_ref) throws WTException
This method is intended for testing purposes only, to support automated
tests that need to reinitialize the testing environment.
Supported API: false
domain_ref
- reference to the domain the rule is for
WTException
public void updateNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key, Vector principal_refs) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierevent_key
- event key (defined in the wt.admin.adminEventResource
resource bundle)principal_refs
- principal references for notification recipients (Vector
of WTPrincipalReference
)
WTException
public void updateNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key, Hashtable attribute_value_map, Vector principal_refs) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierevent_key
- event key (defined in the wt.admin.adminEventResource
resource bundle)attribute_value_map
- attribute name, value pairs to select an object (name is Hashtable
key); may be nullprincipal_refs
- principal references for notification recipients (Vector
of WTPrincipalReference
)
WTException
public NotificationList getNotificationList(Selector selector) throws WTException
selector
-
WTException
public void updateNotificationLists(Selector selector) throws WTException
This method is no longer needed. The createNotificationRule, deleteNotificationRule,
and updateNotificationRule methods update the lists.
Supported API: true
selector
-
WTException
createNotificationRule(AdminDomainRef domain_ref, String type_id,
String event_key, Vector principal_refs)
,
deleteNotificationRule(AdminDomainRef domain_ref, String type_id,
String event_key)
,
updateNotificationRule(AdminDomainRef domain_ref, String type_id,
String event_key, Vector principal_refs)
public NotificationRule addNotificationRule(Selector selector, NotificationSet set) throws WTException
selector
- set
-
WTException
createNotificationRule(AdminDomainRef domain_ref, String type_id,
String event_key, Vector principal_refs)
public NotificationRule getNotificationRule(Selector selector) throws WTException
selector
-
WTException
public Enumeration getNotificationRules(AdminDomainRef domain_ref) throws WTException
domain_ref
-
WTException
public String getMessage(WTUser user, String template, Object ctxt) throws WTException
user
- template
- ctxt
-
WTException
public void send(Notification notification) throws NotificationException, WTException
The message is not sent right away but queued into the notification
queue for asynchronous processing.
Supported API: false
notification
-
NotificationException
WTException
public void subscribeToObject(Vector subscribers, ObjectSubscription subscription) throws WTException
subscribers
- subscription
-
WTException
public void unsubscribeToObject(Vector subscriptions) throws WTException
subscriptions
-
WTException
public Enumeration getSubscriptions(Object subscriber, Notifiable target, String event_key) throws WTException
getSubscription (subs, null, null)
returns all subscriptions for the given subscriber, for all targets and events. In particular, getSubscriptions (null, null, null) returns all existing subscriptions.
The subscriber must be a user, a reference to a user, a subscriber
object or a reference to a subscriber object.
Supported API: false
subscriber
- target
- event_key
-
WTException
public WTStringSet getRelevantEvents(Object target) throws WTException
WTReference
, then the object is retrieved
and used rather than the reference itself.
target
-
WTException
public ArrayList getUserSubscriptions(WTUser user, Notifiable target) throws WTException
user
- target
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |