|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.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 | |
---|---|
protected static java.lang.String |
SUFFIX
|
Constructor Summary | |
---|---|
protected |
FileRoleManager(org.apache.lenya.ac.AccreditableManager mgr)
Return the RoleManager for this configuration directory. |
Method Summary | |
---|---|
void |
add(org.apache.lenya.ac.Role role)
Add a role |
protected org.apache.lenya.ac.Item |
createItem()
|
org.apache.lenya.ac.Role |
getRole(java.lang.String roleId)
Get the role for the given ID. |
org.apache.lenya.ac.Role[] |
getRoles()
Get all roles |
protected java.lang.String |
getSuffix()
Returns the file extension to be used. |
static FileRoleManager |
instance(org.apache.lenya.ac.AccreditableManager mgr,
java.io.File configurationDirectory,
org.apache.avalon.framework.logger.Logger logger)
Returns the role manager for this configuration directory. |
void |
remove(org.apache.lenya.ac.Role role)
Remove a role |
Methods inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
add, addItemManagerListener, configure, contains, getAccreditableManager, getConfigurationDirectory, getFileFilter, getItem, getItemConfiguration, getItems, loadItem, loadItems, notifyAdded, notifyRemoved, remove, removeItem, removeItemManagerListener, update |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
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, getAccreditableManager, removeItemManagerListener |
Field Detail |
---|
protected static final java.lang.String SUFFIX
Constructor Detail |
---|
protected FileRoleManager(org.apache.lenya.ac.AccreditableManager mgr)
RoleManager
for this configuration directory. The
RoleManager
is a singleton.
mgr
- The accreditable manager.Method Detail |
---|
public static FileRoleManager instance(org.apache.lenya.ac.AccreditableManager mgr, java.io.File configurationDirectory, org.apache.avalon.framework.logger.Logger logger) throws org.apache.lenya.ac.AccessControlException
mgr
- The accreditable manager.configurationDirectory
- The configuration directory.logger
- The logger.
org.apache.lenya.ac.AccessControlException
- when something went wrong.public org.apache.lenya.ac.Role getRole(java.lang.String roleId)
getRole
in interface org.apache.lenya.ac.RoleManager
roleId
- 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 FileItemManager
FileItemManager.getSuffix()
public org.apache.lenya.ac.Role[] getRoles()
getRoles
in interface org.apache.lenya.ac.RoleManager
public void add(org.apache.lenya.ac.Role role) throws org.apache.lenya.ac.AccessControlException
add
in interface org.apache.lenya.ac.RoleManager
role
- The role to add.
org.apache.lenya.ac.AccessControlException
- if an error occurs.public void remove(org.apache.lenya.ac.Role role) throws org.apache.lenya.ac.AccessControlException
remove
in interface org.apache.lenya.ac.RoleManager
role
- The role to remove.
org.apache.lenya.ac.AccessControlException
- if an error occurs.protected org.apache.lenya.ac.Item createItem()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |