org.apache.lenya.ac.file
Class FileAccreditableManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.ac.impl.AbstractAccreditableManager
          extended by org.apache.lenya.ac.file.FileAccreditableManager
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.ac.AccreditableManager, org.apache.lenya.ac.ItemManagerListener

public class FileAccreditableManager
extends AbstractAccreditableManager

File-based accreditable manager.


Field Summary
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
           
 
Fields inherited from interface org.apache.lenya.ac.AccreditableManager
ROLE
 
Constructor Summary
FileAccreditableManager(org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.logger.Logger logger, java.lang.String configurationUri, org.apache.lenya.ac.UserType[] _userTypes)
          Creates a new FileAccessController based on a configuration directory.
 
Method Summary
 java.lang.String getConfigurationCollectionUri()
           
 java.io.File getConfigurationDirectory()
          Returns the configuration directory.
static org.apache.lenya.ac.UserType getDefaultUserType()
          Returns the default user type.
 java.lang.String getId()
           
protected  org.apache.avalon.framework.service.ServiceManager getManager()
          Returns the service manager.
 org.apache.lenya.ac.UserType[] getUserTypes()
          Returns the supported user types.
protected  org.apache.lenya.ac.GroupManager initializeGroupManager()
          Initializes the group manager.
protected  org.apache.lenya.ac.IPRangeManager initializeIPRangeManager()
          Initializes the IP range manager.
protected  org.apache.lenya.ac.RoleManager initializeRoleManager()
          Initializes the role manager.
protected  org.apache.lenya.ac.UserManager initializeUserManager()
          Initializes the user manager.
 
Methods inherited from class org.apache.lenya.ac.impl.AbstractAccreditableManager
addItemManagerListener, 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

DEFAULT_USER_TYPE_CLASS

protected static final java.lang.String DEFAULT_USER_TYPE_CLASS

DEFAULT_USER_TYPE_KEY

protected static final java.lang.String DEFAULT_USER_TYPE_KEY
See Also:
Constant Field Values

DEFAULT_USER_CREATE_USE_CASE

protected static final java.lang.String DEFAULT_USER_CREATE_USE_CASE
See Also:
Constant Field Values
Constructor Detail

FileAccreditableManager

public FileAccreditableManager(org.apache.avalon.framework.service.ServiceManager manager,
                               org.apache.avalon.framework.logger.Logger logger,
                               java.lang.String configurationUri,
                               org.apache.lenya.ac.UserType[] _userTypes)
Creates a new FileAccessController based on a configuration directory.

Parameters:
manager - The service manager.
logger - The logger.
configurationUri - The configuration directory URI.
_userTypes - The supported user types.
Method Detail

getUserTypes

public org.apache.lenya.ac.UserType[] getUserTypes()
                                            throws org.apache.lenya.ac.AccessControlException
Returns the supported user types.

Returns:
An array of user types.
Throws:
org.apache.lenya.ac.AccessControlException - if an error occurs.

getConfigurationDirectory

public java.io.File getConfigurationDirectory()
                                       throws org.apache.lenya.ac.AccessControlException
Returns the configuration directory.

Returns:
The configuration directory.
Throws:
org.apache.lenya.ac.AccessControlException - when something went wrong.

getDefaultUserType

public static org.apache.lenya.ac.UserType getDefaultUserType()
Returns the default user type.

Returns:
A user type.

getManager

protected org.apache.avalon.framework.service.ServiceManager getManager()
Returns the service manager.

Returns:
A service manager.

initializeGroupManager

protected org.apache.lenya.ac.GroupManager initializeGroupManager()
                                                           throws org.apache.lenya.ac.AccessControlException
Description copied from class: AbstractAccreditableManager
Initializes the group manager.

Specified by:
initializeGroupManager in class AbstractAccreditableManager
Returns:
A group manager.
Throws:
org.apache.lenya.ac.AccessControlException - when something went wrong.
See Also:
AbstractAccreditableManager.initializeGroupManager()

initializeIPRangeManager

protected org.apache.lenya.ac.IPRangeManager initializeIPRangeManager()
                                                               throws org.apache.lenya.ac.AccessControlException
Description copied from class: AbstractAccreditableManager
Initializes the IP range manager.

Specified by:
initializeIPRangeManager in class AbstractAccreditableManager
Returns:
An IP range manager.
Throws:
org.apache.lenya.ac.AccessControlException - when something went wrong.
See Also:
AbstractAccreditableManager.initializeIPRangeManager()

initializeRoleManager

protected org.apache.lenya.ac.RoleManager initializeRoleManager()
                                                         throws org.apache.lenya.ac.AccessControlException
Description copied from class: AbstractAccreditableManager
Initializes the role manager.

Specified by:
initializeRoleManager in class AbstractAccreditableManager
Returns:
A role manager.
Throws:
org.apache.lenya.ac.AccessControlException - when something went wrong.
See Also:
AbstractAccreditableManager.initializeRoleManager()

initializeUserManager

protected org.apache.lenya.ac.UserManager initializeUserManager()
                                                         throws org.apache.lenya.ac.AccessControlException
Description copied from class: AbstractAccreditableManager
Initializes the user manager.

Specified by:
initializeUserManager in class AbstractAccreditableManager
Returns:
A user manager.
Throws:
org.apache.lenya.ac.AccessControlException - when something went wrong.
See Also:
AbstractAccreditableManager.initializeUserManager()

getConfigurationCollectionUri

public java.lang.String getConfigurationCollectionUri()

getId

public java.lang.String getId()


Copyright $ Apache Software Foundation. All Rights Reserved.