com.pow2.user.dao
Class UserDAOUtil
java.lang.Object
com.pow2.user.dao.UserDAOUtil
- public class UserDAOUtil
- extends Object
Utility class for User management
- Author:
- Luca Fossato
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserDAOUtil
public UserDAOUtil()
getUser
protected static User getUser(UserDAO dao,
String login,
String passwd)
throws Exception
- Update the input User object with the user informations
retrieved from the data provider.
This method uses the User login
and passwd
properties to execute the login procedure.
- Parameters:
dao
- the UserDAO instancelogin
- the user loginpasswd
- the user password
- Returns:
- the retrieved User object if the login is succesfull;
null if login fails
- Throws:
Exception
- if any error occurs
getAuthenticationLog
protected static String getAuthenticationLog(User user)
- Get the log string about the user authentication procedure
- Parameters:
user
- the User object
- Returns:
- the log string about the user authentication procedure
Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.