org.demosys.web.user
Interface UserService

All Known Implementing Classes:
MemoryUserService

public interface UserService

Service for the entity user.


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.
 

Method Detail

newUser

public void newUser(org.demosys.web.user.UserView user)
             throws InvalidUserException,
                    DuplicateUserException
Create a new User in the persistence layer.

Parameters:
user - a new user
Throws:
InvalidUserException - Failure during creation.
DuplicateUserException

updateUser

public void updateUser(org.demosys.web.user.UserView user)
                throws UnknownUserException,
                       InvalidUserException
Update the user data.

Parameters:
user - the view containing the updated data
Throws:
UnknownUserException - User is unknown
InvalidUserException - Failure during update.

deleteUser

public void deleteUser(java.lang.String id)
                throws UnknownUserException
Delete a user by its ID.

Parameters:
id - a user id
Throws:
UnknownUserException - id is an unknown user id.

getUser

public org.demosys.web.user.UserView getUser(java.lang.String id)
                                      throws UnknownUserException
Retrieve a user by its ID.

Parameters:
id - a user id
Returns:
the user view
Throws:
UnknownUserException - id is an unknown user id.

getAllUsers

public org.demosys.web.user.UserViewList getAllUsers()
Retrieve all defined user.

Returns:
Users


Copyright © 2003-2004 Sourceforge. All Rights Reserved.