com.retek.rsm.domain.security.dao.impl.user
Class UserDaoXMLImpl
java.lang.Object
com.retek.rsm.domain.security.dao.impl.user.UserDaoXMLImpl
- All Implemented Interfaces:
- com.retek.platform.persistence.Dao, UserDao
- public class UserDaoXMLImpl
- extends java.lang.Object
- implements UserDao
Field Summary |
protected org.apache.commons.logging.Log |
LOG
|
Method Summary |
void |
authenticate(java.lang.String userName,
java.lang.String password)
Validates the userName and password with the user xml file(s) found in the applications class
path. |
java.util.Set |
findUsers(UserSearchCriteria criteria)
If the criteria is empty, all users are returned. |
boolean |
isUserNameValid(java.lang.String userName)
|
com.retek.platform.util.type.security.User |
readUser(com.retek.platform.bo.IdentifiableReference reference)
|
com.retek.platform.util.type.security.User |
readUser(java.lang.String userName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected org.apache.commons.logging.Log LOG
UserDaoXMLImpl
public UserDaoXMLImpl()
isUserNameValid
public boolean isUserNameValid(java.lang.String userName)
- Specified by:
isUserNameValid
in interface UserDao
readUser
public com.retek.platform.util.type.security.User readUser(com.retek.platform.bo.IdentifiableReference reference)
- Specified by:
readUser
in interface UserDao
readUser
public com.retek.platform.util.type.security.User readUser(java.lang.String userName)
- Specified by:
readUser
in interface UserDao
findUsers
public java.util.Set findUsers(UserSearchCriteria criteria)
- If the criteria is empty, all users are returned. If one or more of the criteria vars are
present, we make a new copy of the user ArrayList, create the RsmXMLUser istance we're
looking for and perform retainAll. This will leave the Array with zero to many RsmXMLUsers
depending on the data in the criteria.
- Specified by:
findUsers
in interface UserDao
authenticate
public void authenticate(java.lang.String userName,
java.lang.String password)
throws javax.security.auth.login.FailedLoginException,
javax.security.auth.login.LoginException
- Validates the userName and password with the user xml file(s) found in the applications class
path. This is a two step process where the userName is located and then the passwords are
verified.
- Specified by:
authenticate
in interface UserDao
- Throws:
javax.security.auth.login.FailedLoginException
javax.security.auth.login.LoginException