com.jalios.jcms.policy
Class AbstractDataMailPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicMailPolicyFilter
com.jalios.jcms.policy.AbstractDataMailPolicyFilter
- All Implemented Interfaces:
- MailListener, PluginComponent, MailPolicyFilter, PolicyFilter, java.lang.Comparable
public abstract class AbstractDataMailPolicyFilter
- extends BasicMailPolicyFilter
|
Field Summary |
protected org.apache.log4j.Logger |
logger
|
|
Method Summary |
protected java.lang.String |
generateAuthKey(Member mbr,
Data data)
Returns a Base64( Id + ';' + MD5(Id + Password)) |
protected java.lang.String |
getContentFooter(Member toMbr,
Data data)
Returns a default content footer for the given data |
protected java.lang.String |
getContentFooter(Member toMbr,
Data data,
java.lang.String topic,
java.lang.String address)
Returns a default content footer for the given data |
protected java.lang.String |
getFooterSeparator()
Returns footer separator |
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration |
protected Data |
isValidAuthKey(Member mbr,
java.lang.String content)
Parse mail content to find a valid authentication key and associated Data |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Methods inherited from interface java.lang.Comparable |
compareTo |
logger
protected org.apache.log4j.Logger logger
AbstractDataMailPolicyFilter
public AbstractDataMailPolicyFilter()
init
public boolean init(Plugin plugin)
- Description copied from interface:
PluginComponent
- Initialize the component with the given plugin configuration
- Specified by:
init in interface PluginComponent- Overrides:
init in class BasicMailPolicyFilter
- Parameters:
plugin - the calling plugin
- Returns:
- true if the component has been correctly initialized.
- See Also:
PluginComponent.init(Plugin)
getFooterSeparator
protected java.lang.String getFooterSeparator()
- Returns footer separator
- Returns:
- String separator
generateAuthKey
protected java.lang.String generateAuthKey(Member mbr,
Data data)
- Returns a Base64( Id + ';' + MD5(Id + Password))
- Parameters:
mbr - the Memberdata - the data
- Returns:
- String base64 value
isValidAuthKey
protected Data isValidAuthKey(Member mbr,
java.lang.String content)
- Parse mail content to find a valid authentication key and associated Data
- Parameters:
mbr - the Member performing the replycontent - the data text
- Returns:
- Data the crypted data or null
getContentFooter
protected java.lang.String getContentFooter(Member toMbr,
Data data)
- Returns a default content footer for the given data
- Parameters:
toMbr - the Memberdata - the data
- Returns:
- String footer
getContentFooter
protected java.lang.String getContentFooter(Member toMbr,
Data data,
java.lang.String topic,
java.lang.String address)
- Returns a default content footer for the given data
- Parameters:
toMbr - the Memberdata - the datatopic - the mail topicaddress - the address to reply
- Returns:
- String footer
Copyright © 2001-2010 Jalios SA. All Rights Reserved.