pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site
Class CaseDrivenRedirectAndEmailConfig

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.site.CaseDrivenRedirectConfig
          extended by org.torweg.pulse.site.CaseDrivenRedirectAndEmailConfig
All Implemented Interfaces:
java.io.Serializable, ConfigBean
Direct Known Subclasses:
SignUpControllerConfig

public class CaseDrivenRedirectAndEmailConfig
extends CaseDrivenRedirectConfig

a ConfigBean supporting redirects and email with cases.

Version:
$Revision: 1396 $
Author:
Daniel Dietz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.torweg.pulse.site.CaseDrivenRedirectConfig
LOGGER
 
Constructor Summary
CaseDrivenRedirectAndEmailConfig()
           
 
Method Summary
 javax.mail.internet.InternetAddress getFrom(java.lang.String c, ServiceRequest request)
          returns the from address for the case.
 XSLHandle getHtmlXSLFile(java.lang.String c)
           
 java.lang.String getSubject(java.lang.String c, java.lang.String s)
           
 XSLHandle getTextXSLFile(java.lang.String c)
           
 void init(org.jdom.Element conf)
          initializes this ConfigBean with a given configuration.
 
Methods inherited from class org.torweg.pulse.site.CaseDrivenRedirectConfig
getRedirectCommandBuilder, getRedirectURI
 
Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean
buildClass, buildInstance, lastModified, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseDrivenRedirectAndEmailConfig

public CaseDrivenRedirectAndEmailConfig()
Method Detail

getFrom

public final javax.mail.internet.InternetAddress getFrom(java.lang.String c, ServiceRequest request)
returns the from address for the case.

Parameters:
c - the name of the case
request - the current request
Returns:
the from address for the case

getSubject

public final java.lang.String getSubject(java.lang.String c,
                                         java.lang.String s)
Parameters:
c - the case name
s - the subject-name
Returns:
Returns the subject.

getTextXSLFile

public final XSLHandle getTextXSLFile(java.lang.String c)
Parameters:
c - the case name
Returns:
Returns the textXSLFile.

getHtmlXSLFile

public final XSLHandle getHtmlXSLFile(java.lang.String c)
Parameters:
c - the case name
Returns:
Returns the htmlXSLFile.

init

public void init(org.jdom.Element conf)
initializes this ConfigBean with a given configuration.

Specified by:
init in interface ConfigBean
Overrides:
init in class CaseDrivenRedirectConfig
Parameters:
conf - the configuration
See Also:
ConfigBean.init(org.jdom.Element)