org.apache.lenya.ac.file
Class FileRole
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.ac.impl.AbstractItem
org.apache.lenya.ac.impl.AbstractRole
org.apache.lenya.ac.file.FileRole
- All Implemented Interfaces:
- java.lang.Comparable, org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.ac.Item, org.apache.lenya.ac.Role
public class FileRole
- extends AbstractRole
- implements org.apache.lenya.ac.Item
File-based role implementation.
- Version:
- $Id: FileRole.java 597037 2007-11-21 11:15:43Z andreas $
Field Summary |
protected static java.lang.String |
ATTR_ASSIGNABLE
|
protected static java.lang.String |
ROLE
|
Constructor Summary |
FileRole(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger)
Creates a new FileRole object. |
FileRole(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger,
java.lang.String id)
Creates a new file role. |
Methods inherited from class org.apache.lenya.ac.impl.AbstractItem |
compareTo, equals, getAccreditableManager, getDescription, getId, getItemManager, getName, hashCode, setDescription, setId, setName, toString |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.lenya.ac.Item |
getDescription, getId, getItemManager, getName, setDescription, setName |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
ATTR_ASSIGNABLE
protected static final java.lang.String ATTR_ASSIGNABLE
- See Also:
- Constant Field Values
ROLE
protected static final java.lang.String ROLE
- See Also:
- Constant Field Values
FileRole
public FileRole(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger,
java.lang.String id)
- Creates a new file role.
- Parameters:
itemManager
- The item manager.logger
- The logger.id
- The role ID.
FileRole
public FileRole(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger)
- Creates a new FileRole object.
- Parameters:
itemManager
- The item manager.logger
- The logger.
configure
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Configure this instance of
FileRole
- Specified by:
configure
in interface org.apache.lenya.ac.Item
- Parameters:
config
- containing the role details
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if the FileRole
could not
be configured
save
public void save()
throws org.apache.lenya.ac.AccessControlException
- Save the role
- Throws:
org.apache.lenya.ac.AccessControlException
- if the save fails
getConfigurationDirectory
public java.io.File getConfigurationDirectory()
- Returns the configuration directory.
- Returns:
- A file object.
setConfigurationDirectory
protected void setConfigurationDirectory(java.io.File file)
isAssignable
public boolean isAssignable()
- Specified by:
isAssignable
in interface org.apache.lenya.ac.Role
Copyright © $ Apache Software Foundation. All Rights Reserved.