@Repository(value="userRepository") public class UserRepositoryIbatis extends org.springframework.orm.ibatis.SqlMapClientTemplate implements UserRepository
UserRepositoryIbatis class.
Constructor and Description |
---|
UserRepositoryIbatis() |
Modifier and Type | Method and Description |
---|---|
Boolean |
disableUser(String id)
disable user by id
|
List<UserDTOLight> |
getDisabledUsers(Pager pager)
getDisabledUsers
|
List<UserDTOLight> |
getEnabledUsers(Pager pager)
getEnabledUsers
|
Object |
getIdUser(String username)
getIdUser
|
UserView |
getUser(String id)
getUser
|
UserDTO |
getUserCredentials(String id)
getUserCredentials
|
Integer |
getUsersNumber()
getUsersNumber
|
UserAuthoritiesDTO |
getUserWithAuthorities(String username)
getUserWithAuthorities
|
UserAuthoritiesDTO |
getUserWithAuthoritiesByID(Integer sid)
getUserWithAuthoritiesByID
|
Long |
insertUser(UserDTO user)
insertUser
|
Boolean |
save(UserAuthoritiesDTO user)
Save an UserDTO user
|
void |
setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient) |
Integer |
updatePassword(UserDTO user)
Update a user
|
afterPropertiesSet, delete, delete, delete, execute, executeWithListResult, executeWithMapResult, getDataSource, getSqlMapClient, insert, insert, queryForList, queryForList, queryForList, queryForList, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryWithRowHandler, queryWithRowHandler, update, update, update
public UserDTO getUserCredentials(String id)
getUserCredentials
getUserCredentials
in interface UserRepository
id
- a String
object.@Autowired public void setSqlMapClient(@Qualifier(value="sqlMapClient") com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
setSqlMapClient
in class org.springframework.orm.ibatis.SqlMapClientTemplate
public Long insertUser(UserDTO user)
insertUser
insertUser
in interface UserRepository
user
- a UserDTO
object.public Integer updatePassword(UserDTO user)
updatePassword
in interface UserRepository
user
- a UserDTO
object.public UserAuthoritiesDTO getUserWithAuthorities(String username)
getUserWithAuthorities
getUserWithAuthorities
in interface UserRepository
username
- a String
object.public UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid)
getUserWithAuthoritiesByID
getUserWithAuthoritiesByID
in interface UserRepository
sid
- a Integer
object.public UserView getUser(String id)
getUser
getUser
in interface UserRepository
id
- a String
object.public Integer getUsersNumber()
getUsersNumber
getUsersNumber
in interface UserRepository
Integer
object.public Boolean disableUser(String id)
disableUser
in interface UserRepository
id
- a String
object.public Object getIdUser(String username)
getIdUser
getIdUser
in interface UserRepository
username
- a String
object.public List<UserDTOLight> getDisabledUsers(Pager pager)
getDisabledUsers
getDisabledUsers
in interface UserRepository
pager
- a Pager
object.public List<UserDTOLight> getEnabledUsers(Pager pager)
getEnabledUsers
getEnabledUsers
in interface UserRepository
pager
- a Pager
object.public Boolean save(UserAuthoritiesDTO user)
save
in interface UserRepository
user
- a UserAuthoritiesDTO
object.Copyright © 2015. All Rights Reserved.