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.lang.String getDescription()
          Get description of adapter as plain text
 java.lang.String getMsgSubjectImpl(java.lang.String taskid, java.lang.String userid, java.lang.String prefix, java.lang.String result)
           
 java.lang.String getMsgTextImpl(java.lang.String filterInfo, java.lang.String filterId, java.lang.String userId, java.lang.String taskId, java.lang.String result)
          Get e-mail message text
 java.lang.String getMsgTypeImpl(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 userId, java.lang.String taskId)
           
 
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

getMsgTextImpl

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

Specified by:
getMsgTextImpl in interface FilterNotifyAdapter
Throws:
gran.exception.GranException

getMsgSubjectImpl

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

getMsgTypeImpl

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

sendMsgImpl

public void sendMsgImpl(java.lang.String filterInfo,
                        java.lang.String filterId,
                        java.lang.String userId,
                        java.lang.String taskId)
                 throws gran.exception.GranException
Specified by:
sendMsgImpl in interface FilterNotifyAdapter
Throws:
gran.exception.GranException


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