com.stratelia.webactiv.beans.admin.dao
Class UserDAO
java.lang.Object
com.stratelia.webactiv.beans.admin.dao.UserDAO
public class UserDAO
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserDAO
public UserDAO()
getDomainsContainingLogin
public List<String> getDomainsContainingLogin(Connection connection,
String login)
throws SQLException
- Get all the domains id in which a user with the specified login exists.
- Parameters:
connection
- the connection with the data source to use.login
- the login for which we want the domains.
- Returns:
- a list of domain ids.
- Throws:
SQLException
- if an error occurs while getting the user details from the data source.
getUsersByCriteria
public ListSlice<UserDetail> getUsersByCriteria(Connection connection,
UserSearchCriteriaForDAO criteria)
throws SQLException
- Gets the user details that match the specified criteria. The criteria are provided by an
UserSearchCriteriaBuilder instance that was used to create them.
- Parameters:
connection
- the connetion with a data source to use.criteria
- a builder with which the criteria the user details must satisfy has been built.
- Returns:
- a list of user details matching the criteria or an empty list if no such user details
are found.
- Throws:
SQLException
getUserCountByCriteria
public int getUserCountByCriteria(Connection connection,
UserSearchCriteriaForDAO criteria)
throws SQLException
- Gets the number of users that match the specified criteria. The criteria are provided by an
UserSearchCriteriaBuilder instance that was used to create them.
- Parameters:
connection
- the connexion with a data source to use.criteria
- a builder with which the criteria the user profiles must satisfy has been
built.
- Returns:
- the number of users that match the specified criteria.
- Throws:
SQLException
getUsersOfGroups
public List<UserDetail> getUsersOfGroups(Connection con,
List<String> groupIds)
throws SQLException
- Throws:
SQLException
getUserIdsOfGroups
public List<String> getUserIdsOfGroups(Connection con,
List<String> groupIds)
throws SQLException
- Throws:
SQLException
getAllUsers
public List<UserDetail> getAllUsers(Connection con)
throws SQLException
- Throws:
SQLException
getAllUsersFromNewestToOldest
public List<UserDetail> getAllUsersFromNewestToOldest(Connection con)
throws SQLException
- Throws:
SQLException
getUsersOfDomains
public List<UserDetail> getUsersOfDomains(Connection con,
List<String> domainIds)
throws SQLException
- Throws:
SQLException
getUsersOfDomainsFromNewestToOldest
public List<UserDetail> getUsersOfDomainsFromNewestToOldest(Connection con,
List<String> domainIds)
throws SQLException
- Throws:
SQLException
Copyright © 2016 Silverpeas. All Rights Reserved.