public class JsonicTemporaryUserDao extends Object implements TemporaryUserDao
Constructor and Description |
---|
JsonicTemporaryUserDao(JsonicDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addUser(TemporaryUser user) |
void |
clear() |
void |
clearExpiredUsers() |
void |
deleteUser(String userGridId,
String userId) |
void |
deleteUsersOfGrid(String userGridId) |
String |
getParentUserIdIfUserAvailable(String userGridId,
String userId,
String password) |
TemporaryUser |
getUser(String userGridId,
String userId) |
boolean |
isParent(String userGridId,
String ownerUserId,
String userId) |
boolean |
isUserExists(String userGridId,
String userId) |
List<TemporaryUser> |
listAllUsers(String userGridId) |
TemporaryUserSearchResult |
searchUsers(int startIndex,
int maxCount,
String userGridId,
MatchingCondition[] conditions,
Order[] orders) |
TemporaryUserSearchResult |
searchUsers(int startIndex,
int maxCount,
String userGridId,
String parentUserId,
MatchingCondition[] conditions,
Order[] orders) |
void |
setAvailableDateTime(TemporaryUser user,
Calendar beginAvailableDateTime,
Calendar endAvailableDateTime) |
public JsonicTemporaryUserDao(JsonicDaoContext context)
public void clear() throws DaoException
clear
in interface TemporaryUserDao
DaoException
public void clearExpiredUsers() throws DaoException
clearExpiredUsers
in interface TemporaryUserDao
DaoException
public List<TemporaryUser> listAllUsers(String userGridId) throws DaoException
listAllUsers
in interface TemporaryUserDao
DaoException
public TemporaryUserSearchResult searchUsers(int startIndex, int maxCount, String userGridId, String parentUserId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchUsers
in interface TemporaryUserDao
DaoException
public TemporaryUserSearchResult searchUsers(int startIndex, int maxCount, String userGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchUsers
in interface TemporaryUserDao
DaoException
public boolean isUserExists(String userGridId, String userId) throws DaoException
isUserExists
in interface TemporaryUserDao
DaoException
public String getParentUserIdIfUserAvailable(String userGridId, String userId, String password) throws DaoException
getParentUserIdIfUserAvailable
in interface TemporaryUserDao
DaoException
public boolean isParent(String userGridId, String ownerUserId, String userId) throws DaoException, UserNotFoundException
isParent
in interface TemporaryUserDao
DaoException
UserNotFoundException
public void addUser(TemporaryUser user) throws DaoException, UserAlreadyExistsException
addUser
in interface TemporaryUserDao
DaoException
UserAlreadyExistsException
public void setAvailableDateTime(TemporaryUser user, Calendar beginAvailableDateTime, Calendar endAvailableDateTime) throws DaoException
setAvailableDateTime
in interface TemporaryUserDao
DaoException
public void deleteUser(String userGridId, String userId) throws DaoException, UserNotFoundException
deleteUser
in interface TemporaryUserDao
DaoException
UserNotFoundException
public void deleteUsersOfGrid(String userGridId) throws DaoException
deleteUsersOfGrid
in interface TemporaryUserDao
DaoException
public TemporaryUser getUser(String userGridId, String userId) throws DaoException, UserNotFoundException
getUser
in interface TemporaryUserDao
DaoException
UserNotFoundException