org.opennms.acl.service
Interface UserService

All Superinterfaces:
PagerService
All Known Implementing Classes:
UserServiceImpl

public interface UserService
extends PagerService

Since:
jdk 1.5.0
Author:
Massimiliano Dessì (desmax74@yahoo.it)

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
 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
 
Methods inherited from interface org.opennms.acl.service.PagerService
getTotalItemsNumber
 

Method Detail

getEnabledUsers

List<UserDTOLight> getEnabledUsers(Pager pager)

getDisabledUsers

List<UserDTOLight> getDisabledUsers(Pager pager)
Retrieve the disabled users

Parameters:
pager -
Returns:

getIdUser

Object getIdUser(String username)
Retrieve the id of user by username

Parameters:
username -
Returns:
the unique identifier

disableUser

Boolean disableUser(String id)
disable a user

Parameters:
id -
Returns:
the outcome of disable operation

getUser

UserView getUser(String id)
retrieve a user

Parameters:
id -
Returns:
a UserView

getUserCredentials

UserDTO getUserCredentials(String id)
retrieve a user with credentials

Parameters:
id -
Returns:
a UserView

getUserWithAuthorities

UserAuthoritiesDTO getUserWithAuthorities(String username)
retrieve a user with their authorities

Parameters:
username -
Returns:
UserAuthoritiesDTO with their roles

getUserWithAuthoritiesByID

UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid)
retrieve a user with their id

Parameters:
username -
Returns:
UserAuthoritiesDTO with their authorities

getUsersNumber

Integer getUsersNumber()
Returns:
user's number

save

boolean save(UserDTO user)
Method only for admin, insert a user or change the user password

Parameters:
user -
Returns:

save

boolean save(UserAuthoritiesDTO user)


Copyright © 2009. All Rights Reserved.