Class TaskNotificationContentProvider
java.lang.Object
com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider
com.webmethods.caf.faces.data.pubsub.PubSubContentProvider
com.webmethods.caf.faces.data.task.impl.TaskNotificationContentProvider
- All Implemented Interfaces:
Serializable
Bean which is implements sending task notifications and to subscribe/un-subscribe users to task subscriptions
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Flag on whether to send notification only to users assigned to a task (or user is member of group or role assigned to a task)protected ITaskContentProvider
Represents instance of the task to send notification aboutFields inherited from class com.webmethods.caf.faces.data.pubsub.PubSubContentProvider
m_notificationBodyView, m_notificationSubject, m_principalID, m_principalType, m_sourceID
Fields inherited from class com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider
m_subscriptionID, m_subscriptionName, PRINCIPAL_TYPE_GROUP, PRINCIPAL_TYPE_ROLE, PRINCIPAL_TYPE_USER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns instance of the task object when sending notificationboolean
Return flag if to notify only users assigned to the task.void
publish()
Publish new notification for source object.void
setNotifyAssignedUsers
(boolean notifyAssignedUsers) Sets flag to notify only users assigned to the task.void
setTaskClientBean
(ITaskContentProvider taskClientBean) Sets instance of task object to send notification aboutMethods inherited from class com.webmethods.caf.faces.data.pubsub.PubSubContentProvider
getNotificationBodyView, getNotificationSubject, getPrincipalID, getPrincipalType, setNotificationBodyView, setNotificationSubject, setPrincipalID, setPrincipalType
Methods inherited from class com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider
getSubscribers, getSubscriptionID, getSubscriptionName, getSubscriptionObjectID, isSubscribed, setSubscriptionID, setSubscriptionName, subscribe, unsubscribe
-
Field Details
-
m_taskClientBean
Represents instance of the task to send notification about -
m_notifyAssignedUsers
protected boolean m_notifyAssignedUsersFlag on whether to send notification only to users assigned to a task (or user is member of group or role assigned to a task)
-
-
Constructor Details
-
TaskNotificationContentProvider
public TaskNotificationContentProvider()
-
-
Method Details
-
getTaskClientBean
Returns instance of the task object when sending notification -
setTaskClientBean
Sets instance of task object to send notification about -
isNotifyAssignedUsers
public boolean isNotifyAssignedUsers()Return flag if to notify only users assigned to the task. Default is true -
setNotifyAssignedUsers
public void setNotifyAssignedUsers(boolean notifyAssignedUsers) Sets flag to notify only users assigned to the task. Default is true -
publish
Description copied from class:PubSubContentProvider
Publish new notification for source object. Every user subscribed to this source will be notified via email.- Overrides:
publish
in classPubSubContentProvider
- Throws:
ContentProviderException
-