|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserService
Defines operations on Users.
Method Summary | |
---|---|
void |
addUser(IUser user)
Persists a new User-object in the database. |
IUser |
getUserById(long id)
Returns the User that was persisted under the ID given. |
java.util.List<Role> |
listRoles()
Queries the database for a list of all Roles. |
java.util.List<IUser> |
listUsers()
Queries the database for a list of all users. |
void |
saveUser(IUser user)
Saves changs to an existing user. |
Method Detail |
---|
IUser getUserById(long id)
id
- The Id
void addUser(IUser user) throws java.lang.Exception
user
- The new User
java.lang.Exception
- when the User's loginname is not unique.void saveUser(IUser user)
user
- The changed user.java.util.List<IUser> listUsers()
java.util.List<Role> listRoles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |