org.ploin.pmf
Interface IMailReader

All Known Implementing Classes:
MailReader

public interface IMailReader

Description: This Interface offers methods for reading the template files.

                                    ........
                                 .WHHUUVOOOOU&,
     dMMMMMMMMMMMa,   .MMMMF   .MHW0Oz+!``````?G.   .MMMM% .MMMMMMMMMMMN,
    .MMMMMMMMMMMMMMr  JMMMM   JHHXwOz;:^..```  `O,  JMMM#  dMMMMMMMMMMMMN
    JMMM#     ,MMMMF  MMMMF  .MHVXwOz++.^.````  +n .MMMM$ .MMMMt    dMMM#
   .MMMMt     .MMMMt .MMMM!  JMHWWXwOz++....  `.+X JMMMM  JMMMM    .MMMM%
   JMMM#     .MMMM@  dMMM#   ,MHHWWXwOzz+++....?df MMMMF .MMMMF    JMMM#
  .MMMMNNNNNMMMMMD   MMMMMNNm 4MHHWWXXwOOzzz1+1wX'.MMMM! .MMMM`   .MMMM$
  .MMMMMMMMMMMM"`    .YMMMMMF  TMHHHWWWXXXwwwwXK! MMMMF  MMMMF    JMMMM
  MMMMF                          TMMHHHHHWWWHY^
 .MMMM'                             `7""""^`
 dMMM#
 

$HeadURL: https://ploinscm.de/svn/ploinMailFactory/trunk/src/main/java/org/ploin/pmf/IMailReader.java $
$LastChangedBy: r.reiz $
$Revision: 48 $
$Date: 2009-11-18 01:06:13 +0100 (Wed, 18 Nov 2009) $


Method Summary
 java.lang.String getDirectory()
          Returns the directory where the email-templates and the clients are in.
 java.lang.String getHtmlExtension()
          returns the html extension.
 java.lang.String getHtmlMail(TemplateConfig templateConfig)
          This method returns the html-mail-template to the mailName as String.
 java.lang.String getPlainExtension()
          returns the plain extension.
 java.lang.String getPlainMail(TemplateConfig templateConfig)
          This method returns the plain-mail template as String for a given mailName.
 void setDirectory(java.lang.String directory)
          Set teh directory where the email-templates and the clients are in.
 void setHtmlExtension(java.lang.String htmlExtension)
          Set the html extension.
 void setPlainExtension(java.lang.String plainExtendsion)
          Set the plain extension.
 

Method Detail

getPlainMail

java.lang.String getPlainMail(TemplateConfig templateConfig)
                              throws java.lang.Exception
This method returns the plain-mail template as String for a given mailName. If there is no plain-mail-template, the method returns null.

Parameters:
templateConfig - containing mandant/client, locale, template-name and map.
Returns:
String or NULL
Throws:
java.lang.Exception

getHtmlMail

java.lang.String getHtmlMail(TemplateConfig templateConfig)
                             throws java.lang.Exception
This method returns the html-mail-template to the mailName as String. If there is no html-mail-template the method returns null.

Parameters:
templateConfig - containing mandant/client, locale, template-name and map.
Returns:
String or NULL
Throws:
java.lang.Exception

getDirectory

java.lang.String getDirectory()
Returns the directory where the email-templates and the clients are in.

Returns:
String

setDirectory

void setDirectory(java.lang.String directory)
Set teh directory where the email-templates and the clients are in.

Parameters:
directory -

getHtmlExtension

java.lang.String getHtmlExtension()
returns the html extension.

Returns:

setHtmlExtension

void setHtmlExtension(java.lang.String htmlExtension)
Set the html extension. The standard is ".html"

Parameters:
htmlExtension -

getPlainExtension

java.lang.String getPlainExtension()
returns the plain extension.

Returns:

setPlainExtension

void setPlainExtension(java.lang.String plainExtendsion)
Set the plain extension. The standard is ".txt"

Parameters:
plainExtendsion -


Copyright © 2009 PLOIN GmbH. All Rights Reserved.