| Constructor and Description |
|---|
JsonicUserDao(JsonicDaoContext 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 gridId) |
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) |
public JsonicUserDao(JsonicDaoContext context)
public void clear()
throws DaoException
clear in interface UserDaoDaoExceptionpublic 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 deleteUser(String userGridId, String userId) throws DaoException, UserNotFoundException
deleteUser in interface UserDaoDaoExceptionUserNotFoundExceptionpublic void deleteUsersOfGrid(String gridId) throws DaoException
deleteUsersOfGrid in interface UserDaoDaoExceptionpublic 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