net.sf.imca.services
Class LoginRegisterService
java.lang.Object
net.sf.imca.services.Service
net.sf.imca.services.LoginRegisterService
public class LoginRegisterService
- extends Service
Service for login, and register use cases.
- Author:
- dougculnane
Fields inherited from class net.sf.imca.services.Service |
em |
Method Summary |
PersonBO |
login(java.lang.String email,
java.lang.String password)
Try to login the using the user supplied parameters. |
PersonBO |
register(java.lang.String email,
java.lang.String password,
java.lang.String confirmPassword,
java.lang.String countryCode,
java.lang.String firstName,
java.lang.String lastName)
|
boolean |
sendPassword(java.lang.String email)
Send a new reset password to the supplied email address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginRegisterService
public LoginRegisterService()
login
public PersonBO login(java.lang.String email,
java.lang.String password)
throws LogInException
- Try to login the using the user supplied parameters.
- Parameters:
email
- Users email address.password
- User supplied password
- Returns:
- the matching person.
- Throws:
LogInException
- If there is an unsuccessful login.
register
public PersonBO register(java.lang.String email,
java.lang.String password,
java.lang.String confirmPassword,
java.lang.String countryCode,
java.lang.String firstName,
java.lang.String lastName)
throws RegistrationException,
DataCheckingException
- Throws:
RegistrationException
DataCheckingException
sendPassword
public boolean sendPassword(java.lang.String email)
throws javax.mail.MessagingException,
DataCheckingException
- Send a new reset password to the supplied email address.
- Parameters:
email
- email of user requesting password.
- Returns:
- success
- Throws:
javax.mail.MessagingException
- If there is a problem.
DataCheckingException
Copyright © 2007-2008 The International Moth Class Association (IMCA).. All Rights Reserved.