catalog.model.service.impl
Class UserServiceImpl
java.lang.Object
catalog.model.service.impl.UserServiceImpl
- All Implemented Interfaces:
- UserService
- public class UserServiceImpl
- extends java.lang.Object
- implements UserService
The implementation of the UserService
.
Spring Framework is used to manage this service bean.
Since this class is not dependend on Spring API, it can be used outside the Spring IOC container.
- Author:
- Derek Y. Shen
- See Also:
UserService
Method Summary |
User |
login(java.lang.String username,
java.lang.String password)
Login a user using username and password. |
void |
sendEmail(java.lang.String senderAddress,
java.lang.String senderName,
java.lang.String sub,
java.lang.String msg)
Send email to the administrator. |
void |
setDefaultSenderAddress(java.lang.String newDefaultSenderAddress)
|
void |
setDefaultSenderName(java.lang.String newDefaultSenderName)
|
void |
setReceiverAddresses(java.util.List newDefaultReceiverAddresses)
|
void |
setSmtpHost(java.lang.String host)
|
void |
setUserDao(UserDao newUserDao)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserServiceImpl
public UserServiceImpl()
setSmtpHost
public void setSmtpHost(java.lang.String host)
setDefaultSenderAddress
public void setDefaultSenderAddress(java.lang.String newDefaultSenderAddress)
setDefaultSenderName
public void setDefaultSenderName(java.lang.String newDefaultSenderName)
setReceiverAddresses
public void setReceiverAddresses(java.util.List newDefaultReceiverAddresses)
setUserDao
public void setUserDao(UserDao newUserDao)
login
public User login(java.lang.String username,
java.lang.String password)
throws CatalogException
- Description copied from interface:
UserService
- Login a user using username and password.
- Specified by:
login
in interface UserService
- Parameters:
username
- the username to be usedpassword
- the password to be used
- Returns:
- the user associated with the username and password
- Throws:
CatalogException
- See Also:
UserService.login(String, String)
sendEmail
public void sendEmail(java.lang.String senderAddress,
java.lang.String senderName,
java.lang.String sub,
java.lang.String msg)
throws CatalogException
- Description copied from interface:
UserService
- Send email to the administrator.
- Specified by:
sendEmail
in interface UserService
- Parameters:
senderAddress
- the email address of the sendersenderName
- the name of the email sendersub
- the subject of the emailmsg
- the email message
- Throws:
CatalogException
- See Also:
UserService.sendEmail(String, String, String, String)
Copyright (c) 2004 The JCatalog Project.