com.pow2.user.dao
Class UserDAOUtil

java.lang.Object
  extended bycom.pow2.user.dao.UserDAOUtil

public class UserDAOUtil
extends Object

Utility class for User management

Author:
Luca Fossato

Constructor Summary
UserDAOUtil()
           
 
Method Summary
protected static String getAuthenticationLog(User user)
          Get the log string about the user authentication procedure
protected static User getUser(UserDAO dao, String login, String passwd)
          Update the input User object with the user informations retrieved from the data provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDAOUtil

public UserDAOUtil()
Method Detail

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 instance
login - the user login
passwd - 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.