|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.ac.impl.AbstractAccreditableManager
org.apache.lenya.ac.file.FileAccreditableManager
public class FileAccreditableManager
File-based accreditable manager.
| Field Summary | |
|---|---|
protected static java.lang.String |
A_M_TAG
|
protected static java.lang.String |
DEFAULT_USER_CREATE_USE_CASE
|
protected static java.lang.String |
DEFAULT_USER_TYPE_CLASS
|
protected static java.lang.String |
DEFAULT_USER_TYPE_KEY
|
protected static java.lang.String |
DIRECTORY
|
protected static java.lang.String |
U_M_CHILD_TAG
|
protected static java.lang.String |
U_T_CHILD_TAG
|
protected static java.lang.String |
U_T_CLASS_ATTRIBUTE
|
protected static java.lang.String |
U_T_CREATE_ATTRIBUTE
|
| Fields inherited from interface org.apache.lenya.ac.AccreditableManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
FileAccreditableManager()
Creates a new FileAccreditableManager. |
|
FileAccreditableManager(java.io.File configurationDirectory,
UserType[] userTypes)
Creates a new FileAccessController based on a configuration directory. |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
java.io.File |
getConfigurationDirectory()
Returns the configuration directory. |
static UserType |
getDefaultUserType()
Returns the default user type. |
protected org.apache.avalon.framework.service.ServiceManager |
getManager()
Returns the service manager. |
UserType[] |
getUserTypes()
Returns the supported user types. |
protected GroupManager |
initializeGroupManager()
Initializes the group manager. |
protected IPRangeManager |
initializeIPRangeManager()
Initializes the IP range manager. |
protected RoleManager |
initializeRoleManager()
Initializes the role manager. |
protected UserManager |
initializeUserManager()
Initializes the user manager. |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
|
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Set the global component manager. |
void |
setConfigurationDirectory(java.io.File file)
Sets the configuration directory. |
| Methods inherited from class org.apache.lenya.ac.impl.AbstractAccreditableManager |
|---|
addItemManagerListener, dispose, getGroupManager, getIPRangeManager, getRoleManager, getUserManager, itemAdded, itemRemoved, notifyAdded, notifyRemoved, removeItemManagerListener |
| 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 |
| Field Detail |
|---|
protected static final java.lang.String DIRECTORY
protected static final java.lang.String A_M_TAG
protected static final java.lang.String U_M_CHILD_TAG
protected static final java.lang.String U_T_CHILD_TAG
protected static final java.lang.String U_T_CLASS_ATTRIBUTE
protected static final java.lang.String U_T_CREATE_ATTRIBUTE
protected static final java.lang.String DEFAULT_USER_TYPE_CLASS
protected static final java.lang.String DEFAULT_USER_TYPE_KEY
protected static final java.lang.String DEFAULT_USER_CREATE_USE_CASE
| Constructor Detail |
|---|
public FileAccreditableManager()
setConfigurationDirectory(File)or by
calling parameterize(Parameters).
public FileAccreditableManager(java.io.File configurationDirectory,
UserType[] userTypes)
configurationDirectory - The configuration directory.userTypes - The supported user types.| Method Detail |
|---|
public UserType[] getUserTypes()
throws AccessControlException
AccessControlException - if an error occurs.
public java.io.File getConfigurationDirectory()
throws AccessControlException
AccessControlException - when something went wrong.
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.avalon.framework.parameters.ParameterException
parameterize in interface org.apache.avalon.framework.parameters.Parameterizableorg.apache.avalon.framework.parameters.ParameterExceptionParameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionadded to read new user-manager block within accreditable-managerpublic static UserType getDefaultUserType()
public void setConfigurationDirectory(java.io.File file)
throws AccessControlException
file - The configuration directory.
AccessControlException - if an error occurs
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceablemanager - The global component manager
org.apache.avalon.framework.service.ServiceException - when something went wrong.protected org.apache.avalon.framework.service.ServiceManager getManager()
protected GroupManager initializeGroupManager()
throws AccessControlException
AbstractAccreditableManager
initializeGroupManager in class AbstractAccreditableManagerAccessControlException - when something went wrong.AbstractAccreditableManager.initializeGroupManager()
protected IPRangeManager initializeIPRangeManager()
throws AccessControlException
AbstractAccreditableManager
initializeIPRangeManager in class AbstractAccreditableManagerAccessControlException - when something went wrong.AbstractAccreditableManager.initializeIPRangeManager()
protected RoleManager initializeRoleManager()
throws AccessControlException
AbstractAccreditableManager
initializeRoleManager in class AbstractAccreditableManagerAccessControlException - when something went wrong.AbstractAccreditableManager.initializeRoleManager()
protected UserManager initializeUserManager()
throws AccessControlException
AbstractAccreditableManager
initializeUserManager in class AbstractAccreditableManagerAccessControlException - when something went wrong.AbstractAccreditableManager.initializeUserManager()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||