|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trackstudio.app.adapter.email.FilterNotifyAdapterManager
public class FilterNotifyAdapterManager
Notification filter adapter class. Sends subscription and notifications.
Constructor Summary | |
---|---|
FilterNotifyAdapterManager(java.util.ArrayList adapters)
ctor |
Method Summary | |
---|---|
java.util.Map |
getDataMap(SessionContext sc,
SecuredTaskBean task,
java.lang.String sourceTaskName,
java.lang.String sourceFilterName,
java.lang.String sourceNotificationName,
java.lang.String filterId,
java.util.ArrayList items,
java.lang.String reason)
Returns a Map with data to be sent |
boolean |
processSubscription(java.lang.String subId,
java.lang.String taskId)
Send subscription for the task |
boolean |
sendMsg(java.lang.String sourceTaskName,
java.lang.String sourceFilterName,
java.lang.String sourceNotificationName,
java.lang.String templateId,
java.lang.String fi,
java.lang.String fromUser,
java.lang.String toUser,
java.lang.String task,
boolean sendForEmptyTaskList,
java.lang.String reason)
Send message for task |
boolean |
sendNotifyForTask(java.lang.String messageId,
java.lang.String taskId,
java.lang.String userId,
java.lang.String mstatusId,
java.lang.String singleNotificationId,
java.lang.String notificationType,
SessionContext sc)
Send notification for the task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterNotifyAdapterManager(java.util.ArrayList adapters)
adapters
- list of adaptersMethod Detail |
---|
public boolean sendMsg(java.lang.String sourceTaskName, java.lang.String sourceFilterName, java.lang.String sourceNotificationName, java.lang.String templateId, java.lang.String fi, java.lang.String fromUser, java.lang.String toUser, java.lang.String task, boolean sendForEmptyTaskList, java.lang.String reason) throws GranException
sourceTaskName
- name of task for which the message will be sentsourceFilterName
- name of filter which returns subtasks listsourceNotificationName
- name of notification ruletemplateId
- template of e-mail message's bodyfi
- source filter identifierfromUser
- from user's idtoUser
- to user's idtask
- task idsendForEmptyTaskList
- if true, notification will be sent even if the filtered subtasks list is empty
GranException
public java.util.Map getDataMap(SessionContext sc, SecuredTaskBean task, java.lang.String sourceTaskName, java.lang.String sourceFilterName, java.lang.String sourceNotificationName, java.lang.String filterId, java.util.ArrayList items, java.lang.String reason) throws GranException
sc
- session contexttask
- source tasksourceFilterName
- name of filter which returns subtasks listsourceNotificationName
- name of notification rulefilterId
- source filter identifieritems
- list of subtasks
GranException
public boolean sendNotifyForTask(java.lang.String messageId, java.lang.String taskId, java.lang.String userId, java.lang.String mstatusId, java.lang.String singleNotificationId, java.lang.String notificationType, SessionContext sc) throws GranException
messageId
- message id which will be senttaskId
- task's iduserId
- user's idmstatusId
- id of status. Is not equals to 0, notification will be send to all users of this statussingleNotificationId
- id of single notification rule to be executed. If not null, all other rules won’t be executednotificationType
- type of notification rule to be executed. Returned by Notification.getCondition().sc
- session context
GranException
public boolean processSubscription(java.lang.String subId, java.lang.String taskId) throws GranException
subId
- subscription's idtaskId
- task's id
GranException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |