|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.ac.file.FileItemManager org.apache.lenya.ac.file.FileUserManager
public class FileUserManager
File-based user manager implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
FileItemManager.DirectoryChangeNotifier |
Field Summary | |
---|---|
protected static java.lang.String |
SUFFIX
|
Fields inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
PATH |
Constructor Summary | |
---|---|
protected |
FileUserManager(java.io.File configurationDirectory,
UserType[] userTypes)
Create a UserManager |
Method Summary | |
---|---|
void |
add(User user)
Add the given user |
protected java.lang.String |
getSuffix()
Returns the file extension to be used. |
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 |
static FileUserManager |
instance(java.io.File configurationDirectory,
UserType[] userTypes)
Describe instance method here. |
void |
remove(User user)
Remove the given user |
Methods inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
add, addItemManagerListener, contains, getConfigurationDirectory, getFileFilter, getItem, getItemClass, getItemConfiguration, getItems, loadItem, loadItems, notifyAdded, notifyRemoved, remove, removeItem, removeItemManagerListener, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lenya.ac.ItemManager |
---|
addItemManagerListener, removeItemManagerListener |
Field Detail |
---|
protected static final java.lang.String SUFFIX
Constructor Detail |
---|
protected FileUserManager(java.io.File configurationDirectory, UserType[] userTypes) throws AccessControlException
configurationDirectory
- for which the UserManager should be instanciated.userTypes
- The supported user types.
AccessControlException
- if the UserManager could not be instantiated.Method Detail |
---|
public static FileUserManager instance(java.io.File configurationDirectory, UserType[] userTypes) throws AccessControlException
instance
method here.
configurationDirectory
- a directoryuserTypes
- The supported user types.
UserManager
value
AccessControlException
- if an error occurspublic User[] getUsers()
getUsers
in interface UserManager
public void add(User user) throws AccessControlException
UserManager
add
in interface UserManager
user
- User that is to be added
AccessControlException
- when the user is already contained.UserManager.add(org.apache.lenya.ac.User)
public void remove(User user) throws AccessControlException
UserManager
remove
in interface UserManager
user
- User that is to be removed
AccessControlException
- when the user is not contained.UserManager.remove(org.apache.lenya.ac.User)
public User getUser(java.lang.String userId)
getUser
in interface UserManager
userId
- user id of requested user
public UserType[] getUserTypes()
UserManager
getUserTypes
in interface UserManager
UserManager.getUserTypes()
protected java.lang.String getSuffix()
FileItemManager
getSuffix
in class FileItemManager
FileItemManager.getSuffix()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |