org.apache.lenya.ac
Interface UserManager

All Superinterfaces:
ItemManager
All Known Implementing Classes:
FileUserManager

public interface UserManager
extends ItemManager

User manager.

Version:
$Id: UserManager.java 473841 2006-11-12 00:46:38Z gregor $

Method Summary
 void add(User user)
          Add the given user
 User getUser(java.lang.String userId)
          Get the user with the given user id.
 User[] getUsers()
          Get all users.
 UserType[] getUserTypes()
          Get all supported user types
 void remove(User user)
          Remove the given user
 
Methods inherited from interface org.apache.lenya.ac.ItemManager
addItemManagerListener, removeItemManagerListener
 

Method Detail

getUsers

User[] getUsers()
Get all users.

Returns:
an array of users

getUserTypes

UserType[] getUserTypes()
Get all supported user types

Returns:
a collection of user types

add

void add(User user)
         throws AccessControlException
Add the given user

Parameters:
user - User that is to be added
Throws:
AccessControlException - when the user is already contained.

remove

void remove(User user)
            throws AccessControlException
Remove the given user

Parameters:
user - User that is to be removed
Throws:
AccessControlException - when the user is not contained.

getUser

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

Parameters:
userId - user id of requested user
Returns:
the requested user or null if there is no user with the given user id


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.