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,Comparable
-
Field Summary
FieldsFields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgenerateAuthKey(Member mbr, Data data) Returns a Base64( Id + ';' + MD5(Id + Password))protected StringgetContentFooter(Member toMbr, Data data) Returns a default content footer for the given dataprotected StringgetContentFooter(Member toMbr, Data data, String topic, String address) Returns a default content footer for the given dataprotected StringReturns footer separatorbooleanInitialize the component with the given plugin configurationprotected DataisValidAuthKey(Member mbr, String content) Parse mail content to find a valid authentication key and associated DataMethods inherited from class com.jalios.jcms.policy.BasicMailPolicyFilter
afterSendMail, beforeSendMail, fetchMessageMethods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
logger
protected org.apache.log4j.Logger logger
-
-
Constructor Details
-
AbstractDataMailPolicyFilter
public AbstractDataMailPolicyFilter()
-
-
Method Details
-
init
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:
-
generateAuthKey
Returns a Base64( Id + ';' + MD5(Id + Password))- Parameters:
mbr- the Memberdata- the data- Returns:
- String base64 value
-
isValidAuthKey
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
-