|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trackstudio.app.adapter.email.BaseFilterNotifyAdapter
public class BaseFilterNotifyAdapter
Base Notification adapter class. Sends subscription and notifications.
| Constructor Summary | |
|---|---|
BaseFilterNotifyAdapter()
|
|
| Method Summary | |
|---|---|
java.util.Map |
getDataMapImpl(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 |
java.lang.String |
getDescription()
Adapter's description |
boolean |
init()
Initialize adapter. |
boolean |
processSubscriptionImpl(java.lang.String subId,
java.lang.String taskId)
Send subscription for the task |
boolean |
sendMsgImpl(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 taskId,
boolean sendForEmptyTaskList,
java.lang.String reason)
Send message for task |
boolean |
sendNotifyForTaskImpl(java.lang.String messageId,
java.lang.String taskId,
java.lang.String userId,
java.lang.String mstatusId,
java.lang.String singleNotificationId,
java.lang.String notificationType)
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 BaseFilterNotifyAdapter()
| Method Detail |
|---|
public boolean init()
Adapter
init in interface Adapterpublic java.lang.String getDescription()
getDescription in interface Adapter
public boolean sendMsgImpl(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 taskId,
boolean sendForEmptyTaskList,
java.lang.String reason)
throws GranException
sendMsgImpl in interface FilterNotifyAdaptersourceTaskName - 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 idtaskId - task's idsendForEmptyTaskList - if true, notification will be sent even if the filtered subtasks list is emptyreason - reason of sending
GranException
public java.util.Map getDataMapImpl(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
getDataMapImpl in interface FilterNotifyAdaptersc - session contexttask - source tasksourceFilterName - name of filter which returns subtasks listsourceNotificationName - name of notification rulefilterId - source filter identifieritems - list of subtasksreason - reason of sending
GranException
public boolean sendNotifyForTaskImpl(java.lang.String messageId,
java.lang.String taskId,
java.lang.String userId,
java.lang.String mstatusId,
java.lang.String singleNotificationId,
java.lang.String notificationType)
throws GranException
sendNotifyForTaskImpl in interface FilterNotifyAdaptermessageId - message id which will be senttaskId - task iduserId - user 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().
GranException
public boolean processSubscriptionImpl(java.lang.String subId,
java.lang.String taskId)
throws GranException
processSubscriptionImpl in interface FilterNotifyAdaptersubId - subscription idtaskId - task id
GranException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||