@RolesAllowed(value="admin") public class AuthorizedUserResource extends Object
UserEntity related methods.| Constructor and Description |
|---|
AuthorizedUserResource(AuthorizedUserDao inUserDao)
Create a UserResource object with a User DAO and a Role DAO.
|
| Modifier and Type | Method and Description |
|---|---|
void |
create(AuthorizedUser user)
Add a new user to the system.
|
AuthorizedUser |
getUserById(Long inId)
Get a user by the user's identification number.
|
List<AuthorizedUser> |
getUsers()
Get a list of all users in the system.
|
void |
update(AuthorizedUserEntity inUser)
Put an updated user to the system.
|
@Inject public AuthorizedUserResource(AuthorizedUserDao inUserDao)
inUserDao - DAO used to access UserEntity related functionality.public List<AuthorizedUser> getUsers()
UserEntity objects.public AuthorizedUser getUserById(Long inId)
inId - The identification number for the user to fetch.public void create(AuthorizedUser user)
user - Object containing all the information about the user
to add.public void update(AuthorizedUserEntity inUser)
inUser - Object containing all the information about the user to
add.Copyright © 2012–2016 Emory University. All rights reserved.