|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.notify.NotificationManagerFwd
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: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
NotificationManagerFwd()
|
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. |
private static Manager |
getManager()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public NotificationManagerFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public void createNotificationRule(AdminDomainRef domain_ref, String type_id, String event_key, Vector principal_refs) throws WTException
createNotificationRule
in interface NotificationManager
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
createNotificationRule
in interface NotificationManager
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
deleteNotificationRule
in interface NotificationManager
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
deleteNotificationRule
in interface NotificationManager
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
deleteNotificationRules
in interface NotificationManager
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
updateNotificationRule
in interface NotificationManager
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
updateNotificationRule
in interface NotificationManager
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
getNotificationList
in interface NotificationManager
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: false
updateNotificationLists
in interface NotificationManager
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
addNotificationRule
in interface NotificationManager
selector
- set
-
WTException
createNotificationRule(AdminDomainRef domain_ref, String type_id,
String event_key, Vector principal_refs)
public NotificationRule getNotificationRule(Selector selector) throws WTException
getNotificationRule
in interface NotificationManager
selector
-
WTException
public Enumeration getNotificationRules(AdminDomainRef domain_ref) throws WTException
getNotificationRules
in interface NotificationManager
domain_ref
-
WTException
public String getMessage(WTUser user, String template, Object ctxt) throws WTException
getMessage
in interface NotificationManager
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
send
in interface NotificationManager
notification
-
NotificationException
WTException
public void subscribeToObject(Vector subscribers, ObjectSubscription subscription) throws WTException
subscribeToObject
in interface NotificationManager
subscribers
- subscription
-
WTException
public void unsubscribeToObject(Vector subscriptions) throws WTException
unsubscribeToObject
in interface NotificationManager
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
getSubscriptions
in interface NotificationManager
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.
getRelevantEvents
in interface NotificationManager
target
-
WTException
public ArrayList getUserSubscriptions(WTUser user, Notifiable target) throws WTException
getUserSubscriptions
in interface NotificationManager
user
- target
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |