| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.file.FileItemManager
org.apache.lenya.ac.file.FileRoleManager
public final class FileRoleManager
File-based role manager implementation.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class org.apache.lenya.ac.file.FileItemManager | 
|---|
FileItemManager.DirectoryChangeNotifier | 
| Field Summary | 
|---|
| Fields inherited from class org.apache.lenya.ac.file.FileItemManager | 
|---|
PATH | 
| Constructor Summary | |
|---|---|
protected  | 
FileRoleManager(java.io.File configurationDirectory)
Return the RoleManager for this configuration directory. | 
| Method Summary | |
|---|---|
 void | 
add(Role role)
Add a role  | 
 Role | 
getRole(java.lang.String roleId)
Get the role for the given ID.  | 
 Role[] | 
getRoles()
Get all roles  | 
protected  java.lang.String | 
getSuffix()
Returns the file extension to be used.  | 
static FileRoleManager | 
instance(java.io.File configurationDirectory)
Returns the role manager for this configuration directory.  | 
 void | 
remove(Role role)
Remove a role  | 
| 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 | 
| Constructor Detail | 
|---|
protected FileRoleManager(java.io.File configurationDirectory)
                   throws AccessControlException
RoleManager for this configuration directory.
 The RoleManager is a singleton.
configurationDirectory - the directory for which the RoleManager is requested.
AccessControlException - if the RoleManager could not be instantiated| Method Detail | 
|---|
public static FileRoleManager instance(java.io.File configurationDirectory)
                                throws AccessControlException
configurationDirectory - The configuration directory.
AccessControlException - when something went wrong.public Role getRole(java.lang.String roleId)
getRole in interface RoleManagerroleId - The name of the role requested.
Role or null if no role with the given name foundprotected java.lang.String getSuffix()
FileItemManager
getSuffix in class FileItemManagerFileItemManager.getSuffix()public Role[] getRoles()
getRoles in interface RoleManager
public void add(Role role)
         throws AccessControlException
add in interface RoleManagerrole - The role to add.
AccessControlException - if an error occurs.
public void remove(Role role)
            throws AccessControlException
remove in interface RoleManagerrole - The role to remove.
AccessControlException - if an error occurs.
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||