com.webmethods.caf.faces.data.task.impl
Class TaskNotificationContentProvider

java.lang.Object
  extended by com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider
      extended by com.webmethods.caf.faces.data.pubsub.PubSubContentProvider
          extended by com.webmethods.caf.faces.data.task.impl.TaskNotificationContentProvider
All Implemented Interfaces:
Serializable

public class TaskNotificationContentProvider
extends PubSubContentProvider

Bean which is implements sending task notifications and to subscribe/un-subscribe users to task subscriptions

See Also:
Serialized Form

Field Summary
protected  boolean m_notifyAssignedUsers
          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 m_taskClientBean
          Represents instance of the task to send notification about
 
Fields 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
TaskNotificationContentProvider()
           
 
Method Summary
 ITaskContentProvider getTaskClientBean()
          Returns instance of the task object when sending notification
 boolean isNotifyAssignedUsers()
          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 about
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_taskClientBean

protected ITaskContentProvider m_taskClientBean
Represents instance of the task to send notification about


m_notifyAssignedUsers

protected boolean m_notifyAssignedUsers
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)

Constructor Detail

TaskNotificationContentProvider

public TaskNotificationContentProvider()
Method Detail

getTaskClientBean

public ITaskContentProvider getTaskClientBean()
Returns instance of the task object when sending notification


setTaskClientBean

public void setTaskClientBean(ITaskContentProvider taskClientBean)
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

public void publish()
             throws ContentProviderException
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 class PubSubContentProvider
Throws:
ContentProviderException