|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.demosys.web.user.impl.MemoryUserService
Implementation of a UserService in memory.
Constructor Summary | |
MemoryUserService()
|
Method Summary | |
void |
deleteUser(java.lang.String id)
Delete a user by its ID. |
org.demosys.web.user.UserViewList |
getAllUsers()
Retrieve all defined user. |
org.demosys.web.user.UserView |
getUser(java.lang.String id)
Retrieve a user by its ID. |
void |
newUser(org.demosys.web.user.UserView user)
Create a new User in the persistence layer. |
void |
updateUser(org.demosys.web.user.UserView user)
Update the user data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryUserService()
Method Detail |
public void newUser(org.demosys.web.user.UserView user) throws InvalidUserException, DuplicateUserException
UserService
newUser
in interface UserService
user
- a new user
InvalidUserException
- Failure during creation.
DuplicateUserException
public void updateUser(org.demosys.web.user.UserView user) throws UnknownUserException, InvalidUserException
UserService
updateUser
in interface UserService
user
- the view containing the updated data
UnknownUserException
- User is unknown
InvalidUserException
- Failure during update.public void deleteUser(java.lang.String id) throws UnknownUserException
UserService
deleteUser
in interface UserService
id
- a user id
UnknownUserException
- id is an unknown user id.public org.demosys.web.user.UserView getUser(java.lang.String id) throws UnknownUserException
UserService
getUser
in interface UserService
id
- a user id
UnknownUserException
- id is an unknown user id.public org.demosys.web.user.UserViewList getAllUsers()
UserService
getAllUsers
in interface UserService
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |