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.component.cms
Class CMSFormMailerConfig

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.component.cms.CMSFormMailerConfig
All Implemented Interfaces:
java.io.Serializable, ConfigBean

public class CMSFormMailerConfig
extends AbstractConfigBean

is used to configure the CMSFormMailer.

Version:
$Revision: 1542 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
CMSFormMailerConfig()
           
 
Method Summary
 java.io.File[] getAttachments(java.lang.String c)
           
 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.util.Map<java.lang.String,java.io.File> getInlineImages(java.lang.String c)
           
 java.util.List<javax.mail.internet.InternetAddress> getRecipients(java.lang.String c)
           
 CommandBuilder getRedirectCommandBuilder(java.lang.String c)
          returns the redirect URI for successful form processing.
 java.lang.String getRedirectURI(java.lang.String c)
          returns the redirect URI for successful form processing.
 java.util.Map<java.lang.String,java.lang.String> getRegexFields(java.lang.String c)
           
 java.util.Set<java.lang.String> getRequiredFields(java.lang.String c)
           
 java.lang.String getSubject(java.lang.String c)
           
 java.lang.String getSwitchParameter()
           
 XSLHandle getTextXSLFile(java.lang.String c)
           
 void init(org.jdom.Element conf)
          initialises the ConfigBean.
 boolean regexFieldUseStandardMessage(java.lang.String caseName, java.lang.String fieldName)
          returns whether to use the standard error message for the regex field.
 
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

CMSFormMailerConfig

public CMSFormMailerConfig()
Method Detail

getSwitchParameter

public final java.lang.String getSwitchParameter()
Returns:
the switch parameter

getRequiredFields

public final java.util.Set<java.lang.String> getRequiredFields(java.lang.String c)
Parameters:
c - the case name
Returns:
an unmodifiable view of the required fields

getRegexFields

public final java.util.Map<java.lang.String,java.lang.String> getRegexFields(java.lang.String c)
Parameters:
c - the case name
Returns:
an unmodifiable view of the fields with regex checks as a map

regexFieldUseStandardMessage

public final boolean regexFieldUseStandardMessage(java.lang.String caseName,
                                                  java.lang.String fieldName)
returns whether to use the standard error message for the regex field.

Parameters:
caseName - the name of the case
fieldName - the name of the form field
Returns:
true, if the standard message shall be used

getAttachments

public final java.io.File[] getAttachments(java.lang.String c)
Parameters:
c - the case name
Returns:
Returns the attachments.

getHtmlXSLFile

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

getInlineImages

public final java.util.Map<java.lang.String,java.io.File> getInlineImages(java.lang.String c)
Parameters:
c - the case name
Returns:
an unmodifiable view of the inlineImages.

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

getRecipients

public final java.util.List<javax.mail.internet.InternetAddress> getRecipients(java.lang.String c)
Parameters:
c - the case name
Returns:
Returns the recipients.

getSubject

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

getTextXSLFile

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

getRedirectURI

public final java.lang.String getRedirectURI(java.lang.String c)
returns the redirect URI for successful form processing.

Parameters:
c - the name of the case
Returns:
the URI

getRedirectCommandBuilder

public final CommandBuilder getRedirectCommandBuilder(java.lang.String c)
returns the redirect URI for successful form processing.

Parameters:
c - the name of the case
Returns:
the URI

init

public final void init(org.jdom.Element conf)
initialises the ConfigBean.

Parameters:
conf - the configuration XML
See Also:
ConfigBean.init(org.jdom.Element)