|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.acl.service.UserServiceImpl
@Service(value="userService") public class UserServiceImpl
| Constructor Summary | |
|---|---|
UserServiceImpl()
|
|
| Method Summary | |
|---|---|
Boolean |
disableUser(String id)
disable a user |
List<UserDTOLight> |
getDisabledUsers(Pager pager)
Retrieve the disabled users |
List<UserDTOLight> |
getEnabledUsers(Pager pager)
|
Object |
getIdUser(String username)
Retrieve the id of user by username |
Integer |
getTotalItemsNumber()
|
UserView |
getUser(String id)
retrieve a user |
UserDTO |
getUserCredentials(String id)
retrieve a user with credentials |
Integer |
getUsersNumber()
|
UserAuthoritiesDTO |
getUserWithAuthorities(String username)
retrieve a user with their authorities |
UserAuthoritiesDTO |
getUserWithAuthoritiesByID(Integer sid)
retrieve a user with their id |
boolean |
save(UserAuthoritiesDTO user)
|
boolean |
save(UserDTO user)
Method only for admin, insert a user or change the user password |
void |
setUserRepository(UserRepository userRepository)
|
boolean |
updatePassword(UserDTO user)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserServiceImpl()
| Method Detail |
|---|
public UserDTO getUserCredentials(String id)
UserService
getUserCredentials in interface UserServiceUserViewpublic boolean save(UserDTO user)
UserService
save in interface UserServicepublic boolean save(UserAuthoritiesDTO user)
save in interface UserServicepublic boolean updatePassword(UserDTO user)
public UserAuthoritiesDTO getUserWithAuthorities(String username)
UserService
getUserWithAuthorities in interface UserServiceUserAuthoritiesDTO with their rolespublic UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid)
UserService
getUserWithAuthoritiesByID in interface UserServiceUserAuthoritiesDTO with their authoritiespublic UserView getUser(String id)
UserService
getUser in interface UserServiceUserViewpublic Boolean disableUser(String id)
UserService
disableUser in interface UserServicepublic Object getIdUser(String username)
UserService
getIdUser in interface UserServicepublic Integer getUsersNumber()
getUsersNumber in interface UserServicepublic Integer getTotalItemsNumber()
getTotalItemsNumber in interface PagerServicepublic List<UserDTOLight> getDisabledUsers(Pager pager)
UserService
getDisabledUsers in interface UserServicepublic List<UserDTOLight> getEnabledUsers(Pager pager)
getEnabledUsers in interface UserServicepublic void setUserRepository(UserRepository userRepository)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||