public class HibernateUserDao extends HibernateCRUDDao<User> implements UserDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateUserDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addUser(User user,
String... userRoles) |
void |
clear() |
void |
clearExceptAdmins() |
void |
deleteUser(String userGridId,
String userId) |
void |
deleteUsersOfGrid(String userGridId) |
List<User> |
dumpAllUsers(String userGridId) |
User |
getUser(String userGridId,
String userId) |
boolean |
hasUserRole(String userGridId,
String userId,
String role) |
boolean |
isUserExist(String userGridId,
String userId) |
List<User> |
listAllUsers(String userGridId) |
UserSearchResult |
searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders) |
UserSearchResult |
searchUsersShouldChangePassword(int startIndex,
int maxCount,
String userGridId,
Calendar dateTime,
Order[] orders) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateUserDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface UserDao
clear
in class HibernateCRUDDao<User>
DaoException
public void clearExceptAdmins() throws DaoException
clearExceptAdmins
in interface UserDao
DaoException
public List<User> dumpAllUsers(String userGridId) throws DaoException
dumpAllUsers
in interface UserDao
DaoException
public List<User> listAllUsers(String userGridId) throws DaoException
listAllUsers
in interface UserDao
DaoException
public UserSearchResult searchUsers(int startIndex, int maxCount, String userGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchUsers
in interface UserDao
DaoException
public boolean isUserExist(String userGridId, String userId) throws DaoException
isUserExist
in interface UserDao
DaoException
public void addUser(User user, String... userRoles) throws DaoException, UserAlreadyExistsException
addUser
in interface UserDao
DaoException
UserAlreadyExistsException
public void deleteUsersOfGrid(String userGridId) throws DaoException
deleteUsersOfGrid
in interface UserDao
DaoException
public void deleteUser(String userGridId, String userId) throws DaoException, UserNotFoundException
deleteUser
in interface UserDao
DaoException
UserNotFoundException
public User getUser(String userGridId, String userId) throws DaoException, UserNotFoundException
getUser
in interface UserDao
DaoException
UserNotFoundException
public boolean hasUserRole(String userGridId, String userId, String role) throws DaoException
hasUserRole
in interface UserDao
DaoException
public UserSearchResult searchUsersShouldChangePassword(int startIndex, int maxCount, String userGridId, Calendar dateTime, Order[] orders) throws DaoException
searchUsersShouldChangePassword
in interface UserDao
DaoException