public class HibernateTemporaryUserDao extends HibernateCRUDDao<TemporaryUser> implements TemporaryUserDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateTemporaryUserDao(HibernateDaoContext 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 parentUserId,
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) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateTemporaryUserDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface TemporaryUserDao
clear
in class HibernateCRUDDao<TemporaryUser>
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 parentUserId, String userId) throws DaoException
isParent
in interface TemporaryUserDao
DaoException
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