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, updatecreateDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transactpublic HibernateUserDao(HibernateDaoContext context)
public void clear()
throws DaoException
clear in interface UserDaoclear in class HibernateCRUDDao<User>DaoExceptionpublic void clearExceptAdmins()
throws DaoException
clearExceptAdmins in interface UserDaoDaoExceptionpublic List<User> dumpAllUsers(String userGridId) throws DaoException
dumpAllUsers in interface UserDaoDaoExceptionpublic List<User> listAllUsers(String userGridId) throws DaoException
listAllUsers in interface UserDaoDaoExceptionpublic UserSearchResult searchUsers(int startIndex, int maxCount, String userGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchUsers in interface UserDaoDaoExceptionpublic boolean isUserExist(String userGridId, String userId) throws DaoException
isUserExist in interface UserDaoDaoExceptionpublic void addUser(User user, String... userRoles) throws DaoException, UserAlreadyExistsException
addUser in interface UserDaoDaoExceptionUserAlreadyExistsExceptionpublic void deleteUsersOfGrid(String userGridId) throws DaoException
deleteUsersOfGrid in interface UserDaoDaoExceptionpublic void deleteUser(String userGridId, String userId) throws DaoException, UserNotFoundException
deleteUser in interface UserDaoDaoExceptionUserNotFoundExceptionpublic User getUser(String userGridId, String userId) throws DaoException, UserNotFoundException
getUser in interface UserDaoDaoExceptionUserNotFoundExceptionpublic boolean hasUserRole(String userGridId, String userId, String role) throws DaoException
hasUserRole in interface UserDaoDaoExceptionpublic UserSearchResult searchUsersShouldChangePassword(int startIndex, int maxCount, String userGridId, Calendar dateTime, Order[] orders) throws DaoException
searchUsersShouldChangePassword in interface UserDaoDaoException