uk.ac.soton.itinnovation.registry.management.component.xml.usermanagement
Class XmlUserManagementFacility

java.lang.Object
  extended by uk.ac.soton.itinnovation.registry.management.component.xml.usermanagement.XmlUserManagementFacility
All Implemented Interfaces:
UserManagement

public class XmlUserManagementFacility
extends Object
implements UserManagement


Constructor Summary
XmlUserManagementFacility()
           
 
Method Summary
 void addGroupToUser(String username, String groupname)
          Add a group to a user
 void addUser(String username, String password, String[] groups)
          Add a user to the registry database.
 String[] listGroups()
          List available groups.
 String[] listGroups(String username)
          List groups a user belongs to.
 String[] listUsers()
          List all users of the registry.
 void removeGroupFromUser(String username, String groupname)
          Remove user from a group.
 void removeUser(String username)
          Remove a user from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUserManagementFacility

public XmlUserManagementFacility()
Method Detail

addGroupToUser

public void addGroupToUser(String username,
                           String groupname)
                    throws UserManagementException
Description copied from interface: UserManagement
Add a group to a user

Specified by:
addGroupToUser in interface UserManagement
Throws:
UserManagementException

addUser

public void addUser(String username,
                    String password,
                    String[] groups)
             throws UserManagementException
Description copied from interface: UserManagement
Add a user to the registry database.

Specified by:
addUser in interface UserManagement
Parameters:
username - user name
password - password
groups - groups the user belong to, can be null
Throws:
UserManagementException

listGroups

public String[] listGroups()
                    throws UserManagementException
Description copied from interface: UserManagement
List available groups.

Specified by:
listGroups in interface UserManagement
Returns:
list of groups names
Throws:
UserManagementException

listGroups

public String[] listGroups(String username)
                    throws UserManagementException
Description copied from interface: UserManagement
List groups a user belongs to.

Specified by:
listGroups in interface UserManagement
Returns:
list of group names
Throws:
UserManagementException

listUsers

public String[] listUsers()
                   throws UserManagementException
Description copied from interface: UserManagement
List all users of the registry.

Specified by:
listUsers in interface UserManagement
Returns:
list of user names.
Throws:
UserManagementException

removeGroupFromUser

public void removeGroupFromUser(String username,
                                String groupname)
                         throws UserManagementException
Description copied from interface: UserManagement
Remove user from a group.

Specified by:
removeGroupFromUser in interface UserManagement
Throws:
UserManagementException

removeUser

public void removeUser(String username)
                throws UserManagementException
Description copied from interface: UserManagement
Remove a user from the registry.

Specified by:
removeUser in interface UserManagement
Throws:
UserManagementException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.