|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.impl.AbstractItem
org.apache.lenya.ac.impl.AbstractRole
org.apache.lenya.ac.file.FileRole
public class FileRole
File-based role implementation.
| Field Summary | |
|---|---|
static java.lang.String |
ROLE
|
| Constructor Summary | |
|---|---|
FileRole()
Creates a new FileRole object. |
|
FileRole(java.io.File configurationDirectory,
java.lang.String id)
Creates a new file role. |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Configure this instance of FileRole |
java.io.File |
getConfigurationDirectory()
Returns the configuration directory. |
void |
save()
Save the role |
void |
setConfigurationDirectory(java.io.File file)
Sets the configuration directory of this item. |
| Methods inherited from class org.apache.lenya.ac.impl.AbstractItem |
|---|
equals, getDescription, getId, getName, hashCode, isValidId, setDescription, setId, setName, toString |
| 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, getName, setDescription, setName |
| Field Detail |
|---|
public static final java.lang.String ROLE
| Constructor Detail |
|---|
public FileRole(java.io.File configurationDirectory,
java.lang.String id)
configurationDirectory - The configuration directory.id - The role ID.public FileRole()
| Method Detail |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
FileRole
config - containing the role details
org.apache.avalon.framework.configuration.ConfigurationException - if the FileRole could not be configured
public void save()
throws AccessControlException
AccessControlException - if the save failspublic java.io.File getConfigurationDirectory()
public void setConfigurationDirectory(java.io.File file)
Item
file - The configuration directory.Item.setConfigurationDirectory(java.io.File)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||