|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkieker.webgui.service.impl.UserServiceImpl
@Service public final class UserServiceImpl
This is an implementation of the IUserService
interface. The work is delegated to the underlying data access object.
Constructor Summary | |
---|---|
UserServiceImpl()
Default constructor. |
Method Summary | |
---|---|
void |
addUser(User user)
Adds a user to the system. |
void |
deleteUser(User user)
Deletes a user from the system. |
void |
editUserWithoutPassword(User user)
Edits a given user, but does not change the password. |
void |
editUserWithPassword(User user)
Edits a given user and changes the password as well. |
List<User> |
getUsers()
Delivers a list containing the available users within the system. |
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 void addUser(User user) throws DataAccessException
IUserService
addUser
in interface IUserService
user
- The domain object used to extract the necessary data to create the user. It is assumed that all fields are filled.
DataAccessException
- If it was not possible to add the user to the system. Either because a constraint was violated or because the connection to the database has
somehow been damaged.public List<User> getUsers() throws DataAccessException
IUserService
getUsers
in interface IUserService
DataAccessException
- If something went wrong during the reading. This happens probably if the connection to the database has somehow been damaged.public void deleteUser(User user) throws DataAccessException
IUserService
deleteUser
in interface IUserService
user
- The domain object used to extract the necessary data to delete the user. It is only necessary that the name field is filled.
DataAccessException
- If it was not possible to delete the user. Either because a constraint was violated or because the connection to the database has somehow been
damaged.public void editUserWithoutPassword(User user) throws DataAccessException
IUserService
editUserWithoutPassword
in interface IUserService
user
- The domain object used to extract the necessary data to edit the user. It is assumed that all fields are filled (except for the password field).
DataAccessException
- If it was not possible to edit the user. Either because a constraint was violated or because the connection to the database has somehow been
damaged.public void editUserWithPassword(User user) throws DataAccessException
IUserService
editUserWithPassword
in interface IUserService
user
- The domain object used to extract the necessary data to edit the user. It is assumed that all fields are filled.
DataAccessException
- If it was not possible to edit the user. Either because a constraint was violated or because the connection to the database has somehow been
damaged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |