@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, updatepublic UserDTO getUserCredentials(String id)
getUserCredentials
getUserCredentials in interface UserRepositoryid - a String object.@Autowired
public void setSqlMapClient(@Qualifier(value="sqlMapClient")
com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
setSqlMapClient in class org.springframework.orm.ibatis.SqlMapClientTemplatepublic Long insertUser(UserDTO user)
insertUser
insertUser in interface UserRepositoryuser - a UserDTO object.public Integer updatePassword(UserDTO user)
updatePassword in interface UserRepositoryuser - a UserDTO object.public UserAuthoritiesDTO getUserWithAuthorities(String username)
getUserWithAuthorities
getUserWithAuthorities in interface UserRepositoryusername - a String object.public UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid)
getUserWithAuthoritiesByID
getUserWithAuthoritiesByID in interface UserRepositorysid - a Integer object.public UserView getUser(String id)
getUser
getUser in interface UserRepositoryid - a String object.public Integer getUsersNumber()
getUsersNumber
getUsersNumber in interface UserRepositoryInteger object.public Boolean disableUser(String id)
disableUser in interface UserRepositoryid - a String object.public Object getIdUser(String username)
getIdUser
getIdUser in interface UserRepositoryusername - a String object.public List<UserDTOLight> getDisabledUsers(Pager pager)
getDisabledUsers
getDisabledUsers in interface UserRepositorypager - a Pager object.public List<UserDTOLight> getEnabledUsers(Pager pager)
getEnabledUsers
getEnabledUsers in interface UserRepositorypager - a Pager object.public Boolean save(UserAuthoritiesDTO user)
save in interface UserRepositoryuser - a UserAuthoritiesDTO object.Copyright © 2015. All Rights Reserved.