org.exoplatform.services.wsrp2.consumer.impl
Class UserRegistryImpl

java.lang.Object
  extended by org.exoplatform.services.wsrp2.consumer.impl.UserRegistryImpl
All Implemented Interfaces:
UserRegistry

public class UserRegistryImpl
extends Object
implements UserRegistry


Constructor Summary
UserRegistryImpl()
           
 
Method Summary
 User addUser(User user)
          Add a user to the registry
 Iterator<User> getAllUsers()
          Get an iterator with all known users
 User getUser(String userID)
          Get the user with the given id
 void removeAllUsers()
          Remove all users from the registry
 User removeUser(String userID)
          Remove a user from the list of known user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRegistryImpl

public UserRegistryImpl()
Method Detail

addUser

public User addUser(User user)
Description copied from interface: UserRegistry
Add a user to the registry

Specified by:
addUser in interface UserRegistry
Parameters:
user - The user to add
Returns:
The user added or null

getUser

public User getUser(String userID)
Description copied from interface: UserRegistry
Get the user with the given id

Specified by:
getUser in interface UserRegistry
Parameters:
userID - The ID of the user
Returns:
The user object with the given user id

removeUser

public User removeUser(String userID)
Description copied from interface: UserRegistry
Remove a user from the list of known user

Specified by:
removeUser in interface UserRegistry
Parameters:
userID - The ID of the user
Returns:
The user which has been removed or null

removeAllUsers

public void removeAllUsers()
Description copied from interface: UserRegistry
Remove all users from the registry

Specified by:
removeAllUsers in interface UserRegistry

getAllUsers

public Iterator<User> getAllUsers()
Description copied from interface: UserRegistry
Get an iterator with all known users

Specified by:
getAllUsers in interface UserRegistry
Returns:
All known user objects in an iterator


Copyright © 2009 eXo Platform SAS. All Rights Reserved.