|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.service.UserServiceImpl
public class UserServiceImpl
Implementation of the UserService.
Constructor Summary | |
---|---|
UserServiceImpl()
|
Method Summary | |
---|---|
void |
addUser(IUser user)
Persists a new User-object in the database. |
UserDao |
getDao()
Getter for the UserDao. |
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. |
void |
setDao(UserDao dao)
Setter for the UserDao. |
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 UserDao getDao()
public void setDao(UserDao dao)
dao
- The UserDao.public void addUser(IUser user) throws java.lang.Exception
UserService
addUser
in interface UserService
user
- The new User
java.lang.Exception
- when the User's loginname is not unique.public void saveUser(IUser user)
UserService
saveUser
in interface UserService
user
- The changed user.public java.util.List<IUser> listUsers()
UserService
listUsers
in interface UserService
public java.util.List<Role> listRoles()
UserService
listRoles
in interface UserService
public IUser getUserById(long id)
UserService
getUserById
in interface UserService
id
- The Id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |