public class TaskNotificationContentProvider extends PubSubContentProvider
Modifier and Type | Field and Description |
---|---|
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
|
m_notificationBodyView, m_notificationSubject, m_principalID, m_principalType, m_sourceID
m_subscriptionID, m_subscriptionName, PRINCIPAL_TYPE_GROUP, PRINCIPAL_TYPE_ROLE, PRINCIPAL_TYPE_USER
Constructor and Description |
---|
TaskNotificationContentProvider() |
Modifier and Type | Method and Description |
---|---|
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
|
getNotificationBodyView, getNotificationSubject, getPrincipalID, getPrincipalType, setNotificationBodyView, setNotificationSubject, setPrincipalID, setPrincipalType
getSubscribers, getSubscriptionID, getSubscriptionName, getSubscriptionObjectID, isSubscribed, setSubscriptionID, setSubscriptionName, subscribe, unsubscribe
protected ITaskContentProvider m_taskClientBean
protected boolean m_notifyAssignedUsers
public ITaskContentProvider getTaskClientBean()
public void setTaskClientBean(ITaskContentProvider taskClientBean)
public boolean isNotifyAssignedUsers()
public void setNotifyAssignedUsers(boolean notifyAssignedUsers)
public void publish() throws ContentProviderException
PubSubContentProvider
publish
in class PubSubContentProvider
ContentProviderException