Package sk.gursky.films.persist.users
Interface UserDao
- All Known Implementing Classes:
MemoryUserDao
public interface UserDao
-
Method Summary
Modifier and Type Method Description java.lang.String
authorizeAndGetToken(java.lang.String name, java.lang.String password)
User
authorizeByToken(java.lang.String token)
java.util.List<java.lang.String>
conflict(User user)
void
deleteToken(java.lang.String token)
java.util.List<User>
getAll()
java.util.List<User>
getByGroupId(java.lang.Long groupId)
User
getById(java.lang.Long userId)
MyUser
getMyUserById(java.lang.Long userId)
java.util.List<SimpleUser>
getSimpleUsers()
boolean
remove(java.lang.Long userId)
User
save(User user)
-
Method Details
-
authorizeAndGetToken
java.lang.String authorizeAndGetToken(java.lang.String name, java.lang.String password) -
authorizeByToken
-
getMyUserById
-
getById
-
getSimpleUsers
java.util.List<SimpleUser> getSimpleUsers() -
getAll
java.util.List<User> getAll() -
getByGroupId
-
save
- Throws:
DaoException
-
remove
boolean remove(java.lang.Long userId) -
deleteToken
void deleteToken(java.lang.String token) -
conflict
-