gran.app.adapter.email
Class BaseFilterNotifyAdapter

java.lang.Object
  extended bygran.app.adapter.email.BaseFilterNotifyAdapter
All Implemented Interfaces:
Adapter, FilterNotifyAdapter

public class BaseFilterNotifyAdapter
extends java.lang.Object
implements FilterNotifyAdapter


Constructor Summary
BaseFilterNotifyAdapter()
           
 
Method Summary
 java.util.LinkedList findNotificationImpl(java.lang.String taskid, java.lang.String userid, java.util.LinkedList result)
          Returns ArrayList of Notifications
 java.util.Map getDataMapImpl(java.lang.String sessionId, SecuredTaskBean task, java.lang.String filterInfo, java.lang.String filterId, java.util.ArrayList items, java.util.Map result)
           
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.lang.String getMsgSubjectImpl(java.lang.String sessionId, java.lang.String taskid, java.lang.String userid, java.lang.String prefix, java.lang.String result)
           
 java.lang.String getMsgTextImpl(java.lang.String sessionId, java.lang.String filterInfo, java.lang.String filterId, java.lang.String taskId, java.lang.String result)
          Get e-mail message text
 java.lang.String getMsgTypeImpl(java.lang.String sessionId, java.lang.String userId, java.lang.String result)
           
 boolean init()
          Initialize adapter.
 void sendMsgImpl(java.lang.String filterInfo, java.lang.String filterId, java.lang.String fromUser, java.lang.String toUser, java.lang.String taskId)
          
Secure: Internal security
 void sendNotificationImpl(java.lang.String messageid, java.lang.String taskid, java.lang.String fromUser, java.lang.String toUser, boolean checkMessages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFilterNotifyAdapter

public BaseFilterNotifyAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

getDataMapImpl

public java.util.Map getDataMapImpl(java.lang.String sessionId,
                                    SecuredTaskBean task,
                                    java.lang.String filterInfo,
                                    java.lang.String filterId,
                                    java.util.ArrayList items,
                                    java.util.Map result)
                             throws GranException
Specified by:
getDataMapImpl in interface FilterNotifyAdapter
Throws:
GranException

getMsgTextImpl

public java.lang.String getMsgTextImpl(java.lang.String sessionId,
                                       java.lang.String filterInfo,
                                       java.lang.String filterId,
                                       java.lang.String taskId,
                                       java.lang.String result)
                                throws GranException
Description copied from interface: FilterNotifyAdapter
Get e-mail message text

Specified by:
getMsgTextImpl in interface FilterNotifyAdapter
Throws:
GranException

getMsgSubjectImpl

public java.lang.String getMsgSubjectImpl(java.lang.String sessionId,
                                          java.lang.String taskid,
                                          java.lang.String userid,
                                          java.lang.String prefix,
                                          java.lang.String result)
                                   throws GranException
Specified by:
getMsgSubjectImpl in interface FilterNotifyAdapter
Throws:
GranException

getMsgTypeImpl

public java.lang.String getMsgTypeImpl(java.lang.String sessionId,
                                       java.lang.String userId,
                                       java.lang.String result)
                                throws GranException
Specified by:
getMsgTypeImpl in interface FilterNotifyAdapter
Throws:
GranException

sendMsgImpl

public void sendMsgImpl(java.lang.String filterInfo,
                        java.lang.String filterId,
                        java.lang.String fromUser,
                        java.lang.String toUser,
                        java.lang.String taskId)
                 throws GranException

Secure: Internal security

Specified by:
sendMsgImpl in interface FilterNotifyAdapter
Parameters:
filterInfo -
filterId -
taskId -
Throws:
GranException

findNotificationImpl

public java.util.LinkedList findNotificationImpl(java.lang.String taskid,
                                                 java.lang.String userid,
                                                 java.util.LinkedList result)
                                          throws GranException
Returns ArrayList of Notifications

Specified by:
findNotificationImpl in interface FilterNotifyAdapter
Parameters:
taskid -
userid -
result -
Throws:
GranException

sendNotificationImpl

public void sendNotificationImpl(java.lang.String messageid,
                                 java.lang.String taskid,
                                 java.lang.String fromUser,
                                 java.lang.String toUser,
                                 boolean checkMessages)
                          throws GranException
Specified by:
sendNotificationImpl in interface FilterNotifyAdapter
Throws:
GranException


Copyright © 2002-2004 TrackStudio, Ltd. All Rights Reserved.