Package 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
Fields Modifier and Type Field Description protected org.apache.log4j.Loggerlogger-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
-
Constructor Summary
Constructors Constructor Description AbstractDataMailPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgenerateAuthKey(Member mbr, Data data)Returns a Base64( Id + ';' + MD5(Id + Password))protected java.lang.StringgetContentFooter(Member toMbr, Data data)Returns a default content footer for the given dataprotected java.lang.StringgetContentFooter(Member toMbr, Data data, java.lang.String topic, java.lang.String address)Returns a default content footer for the given dataprotected java.lang.StringgetFooterSeparator()Returns footer separatorbooleaninit(Plugin plugin)Initialize the component with the given plugin configurationprotected DataisValidAuthKey(Member mbr, java.lang.String content)Parse mail content to find a valid authentication key and associated Data-
Methods inherited from class com.jalios.jcms.policy.BasicMailPolicyFilter
afterSendMail, beforeSendMail, fetchMessage
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
-
-
-
Method Detail
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponentInitialize the component with the given plugin configuration- Specified by:
initin interfacePluginComponent- Overrides:
initin classBasicMailPolicyFilter- 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
-
-