public interface UserDAO extends PersistentObjectDAO<User>
Modifier and Type | Method and Description |
---|---|
int |
count()
Counts the total number of users
|
boolean |
delete(long userId,
UserHistory transaction)
This method deletes the user object and insert a new user history entry.
|
List<User> |
findByLikeUserName(String username)
This method finds an User by username.
|
List<User> |
findByName(String name)
This method finds an User by name.
|
User |
findByUserName(String username)
This method finds an User by its username.
|
List<User> |
findByUserNameAndName(String username,
String name)
This method finds an User by username and name.
|
Map<String,Generic> |
findUserSettings(long userId,
String namePrefix)
Retrieves the settings for a user.
|
int |
getPasswordTtl() |
boolean |
isPasswordExpired(String username)
Is password expired.
|
void |
setPasswordTtl(int passwordTtl) |
boolean |
store(User user,
UserHistory transaction)
This method persists the user object and insert a new user history entry.
|
boolean |
validateUser(String username)
Validates an username only (the password content is not inspectged.
|
boolean |
validateUser(String username,
String password)
Validates an username and a password.
|
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
int count()
User findByUserName(String username)
username
- username of wanted User.List<User> findByLikeUserName(String username)
username
- The username of wanted User.List<User> findByName(String name)
name
- The name of wanted User.List<User> findByUserNameAndName(String username, String name)
username
- The username of wanted user.name
- The name of wanted user.boolean validateUser(String username, String password)
username
- Username of the User to be validated.password
- Password of the User to be validated.boolean validateUser(String username)
username
- Username of the User to be validated.boolean isPasswordExpired(String username)
username
- Username of the User to be validate.int getPasswordTtl()
void setPasswordTtl(int passwordTtl)
boolean delete(long userId, UserHistory transaction)
userId
- The id of the user to deletetransaction
- entry to log the eventboolean store(User user, UserHistory transaction)
user
- transaction
- entry to log the eventMap<String,Generic> findUserSettings(long userId, String namePrefix)
userId
- Identifier of the usernamePrefix
- Name prefix of the property (optional)Copyright © 2008-2014 Logical Objects. All Rights Reserved.