org.apache.wsrp4j.consumer
Interface UserRegistry

All Known Implementing Classes:
GenericUserRegistryImpl

public interface UserRegistry

Defines a registry which can be used to manage users.

Author:
Stephan Laertz

Method Summary
 User addUser(User user)
          Add a user to the registry
 java.util.Iterator getAllUsers()
          Get an iterator with all known users
 User getUser(java.lang.String userID)
          Get the user with the given id
 void removeAllUsers()
          Remove all users from the registry
 User removeUser(java.lang.String userID)
          Remove a user from the list of known user
 

Method Detail

addUser

public User addUser(User user)
Add a user to the registry

Parameters:
user - The user to add
Returns:
The user added or null

getUser

public User getUser(java.lang.String userID)
Get the user with the given id

Parameters:
userID - The ID of the user
Returns:
The user object with the given user id

removeUser

public User removeUser(java.lang.String userID)
Remove a user from the list of known user

Parameters:
userID - The ID of the user
Returns:
The user which has been removed or null

removeAllUsers

public void removeAllUsers()
Remove all users from the registry


getAllUsers

public java.util.Iterator getAllUsers()
Get an iterator with all known users

Returns:
All known user objects in an iterator