gran.app.adapter.email
Class HTMLFilterNotifyAdapter

java.lang.Object
  |
  +--gran.app.adapter.email.HTMLFilterNotifyAdapter
All Implemented Interfaces:
Adapter, FilterNotifyAdapter

public class HTMLFilterNotifyAdapter
extends java.lang.Object
implements FilterNotifyAdapter


Field Summary
protected static java.lang.String DTABLE_BG_COLOR
           
protected static java.lang.String FORE_COLOR
           
protected static java.lang.String GRAY_COLOR
           
protected static java.lang.String LITTLE_FONT_FAMILY
           
protected static java.lang.String LITTLE_FONT_SIZE
           
protected static java.lang.String LTABLE_BG_COLOR
           
protected static java.lang.String TD_BG_COLOR
           
protected static java.lang.String TD_FORE_COLOR
           
protected static java.lang.String TH_BG_COLOR
           
 
Constructor Summary
HTMLFilterNotifyAdapter()
           
 
Method Summary
protected static java.lang.String _FONT(java.lang.String s)
           
protected static java.lang.String _TD(java.lang.String s)
           
protected static java.lang.String _TD2(java.lang.String s)
           
protected static java.lang.String _TD2FONT(java.lang.String s)
           
protected static java.lang.String _TDFONT(java.lang.String s)
           
protected static java.lang.String _TH(java.lang.String s)
           
protected static java.lang.String _TH2(java.lang.String s)
           
protected static java.lang.String _THFONT(java.lang.String s)
           
 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 result)
           
protected  java.lang.String getTaskHeader(java.lang.String taskid, java.lang.String userid)
           
 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
 

Field Detail

FORE_COLOR

protected static java.lang.String FORE_COLOR

LTABLE_BG_COLOR

protected static java.lang.String LTABLE_BG_COLOR

DTABLE_BG_COLOR

protected static java.lang.String DTABLE_BG_COLOR

TD_FORE_COLOR

protected static java.lang.String TD_FORE_COLOR

TD_BG_COLOR

protected static java.lang.String TD_BG_COLOR

TH_BG_COLOR

protected static java.lang.String TH_BG_COLOR

GRAY_COLOR

protected static java.lang.String GRAY_COLOR

LITTLE_FONT_SIZE

protected static java.lang.String LITTLE_FONT_SIZE

LITTLE_FONT_FAMILY

protected static java.lang.String LITTLE_FONT_FAMILY
Constructor Detail

HTMLFilterNotifyAdapter

public HTMLFilterNotifyAdapter()
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

_TD2FONT

protected static java.lang.String _TD2FONT(java.lang.String s)

_TH

protected static java.lang.String _TH(java.lang.String s)

_TDFONT

protected static java.lang.String _TDFONT(java.lang.String s)

_THFONT

protected static java.lang.String _THFONT(java.lang.String s)

_TD

protected static java.lang.String _TD(java.lang.String s)

_TD2

protected static java.lang.String _TD2(java.lang.String s)

_TH2

protected static java.lang.String _TH2(java.lang.String s)

_FONT

protected static java.lang.String _FONT(java.lang.String s)

getTaskHeader

protected java.lang.String getTaskHeader(java.lang.String taskid,
                                         java.lang.String userid)
                                  throws gran.exception.GranException
gran.exception.GranException

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
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
gran.exception.GranException

getMsgTypeImpl

public java.lang.String getMsgTypeImpl(java.lang.String result)
Specified by:
getMsgTypeImpl in interface FilterNotifyAdapter

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
gran.exception.GranException


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