magoffin.matt.ma2.aop
Class UserLoginEmailInterceptor
java.lang.Object
   magoffin.matt.ma2.aop.AbstractMailTemplateInterceptor
magoffin.matt.ma2.aop.AbstractMailTemplateInterceptor
       magoffin.matt.ma2.aop.UserEmailInterceptor
magoffin.matt.ma2.aop.UserEmailInterceptor
           magoffin.matt.ma2.aop.UserLoginEmailInterceptor
magoffin.matt.ma2.aop.UserLoginEmailInterceptor
- All Implemented Interfaces: 
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
- public class UserLoginEmailInterceptor 
- extends UserEmailInterceptor
Email interceptor for forgot password email handling.
 
 
This email interceptor will look for a user login as the first 
 argument to the method being intercepted.
 
 The configurable properties of this class are:
 
 
   - userDao
- The UserDaoinstance to use.
- Version:
- $Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
- Author:
- Matt Magoffin (spamsqr@msqr.us)
 
 
 
 
| Method Summary | 
|  UserDao | getUserDao()
 | 
| protected  org.springframework.mail.SimpleMailMessage | postProcessModel(org.aopalliance.intercept.MethodInvocation invocation,
                 java.util.Map<java.lang.String,java.lang.Object> model,
                 java.lang.Object result)Get a SimpleMailMessage object based on the result of the method invocation.
 | 
|  void | setUserDao(UserDao userDao)
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UserLoginEmailInterceptor
public UserLoginEmailInterceptor()
postProcessModel
protected org.springframework.mail.SimpleMailMessage postProcessModel(org.aopalliance.intercept.MethodInvocation invocation,
                                                                      java.util.Map<java.lang.String,java.lang.Object> model,
                                                                      java.lang.Object result)
- Description copied from class: AbstractMailTemplateInterceptor
- Get a SimpleMailMessage object based on the result of the method invocation.
 
 You can use the MailMergeHelper instance's 
 MailMergeHelper.getMessageTemplate()method to obtain a mail message
 template, and use theSimpleMailMessage.SimpleMailMessage(org.springframework.mail.SimpleMailMessage)copy constructor to create the SimpleMailMessage to return here. Most likely the 
 only property you'll need to set on the result if thetoproperty.
 
 
- 
- Overrides:
- postProcessModelin class- UserEmailInterceptor
 
- 
- Parameters:
- invocation- the current method invocation
- model- the model Map
- result- the method invocation result object
- Returns:
- a SimpleMailMessage object with appropriate information set, 
 i.e. the toproperty
 
getUserDao
public UserDao getUserDao()
- 
- Returns:
- the userDao
 
setUserDao
public void setUserDao(UserDao userDao)
- 
- Parameters:
- userDao- the userDao to set