Class UserManagerConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.BeanConfig
-
- org.apache.jackrabbit.core.config.UserManagerConfig
-
public class UserManagerConfig extends BeanConfig
User manager configuration. This bean configuration class is used to create user manager objects.This configuration is an optional part of the SecurityManager configuration.
-
-
Constructor Summary
Constructors Constructor Description UserManagerConfig(BeanConfig config)
UserManagerConfig(BeanConfig config, BeanConfig[] actionConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizableAction[]
getAuthorizableActions()
UserManager
getUserManager(Class<? extends UserManager> assignableFrom, Class<?>[] parameterTypes, Object... initArgs)
Build a newUserManager
instance based on this configuration.-
Methods inherited from class org.apache.jackrabbit.core.config.BeanConfig
getClassLoader, getClassName, getDefaultClassLoader, getParameters, newInstance, setClassLoader, setConnectionFactory, setDefaultClassLoader, setInstanceFactory, setValidate
-
-
-
-
Constructor Detail
-
UserManagerConfig
public UserManagerConfig(BeanConfig config)
-
UserManagerConfig
public UserManagerConfig(BeanConfig config, BeanConfig[] actionConfig)
-
-
Method Detail
-
getUserManager
public UserManager getUserManager(Class<? extends UserManager> assignableFrom, Class<?>[] parameterTypes, Object... initArgs) throws ConfigurationException
Build a newUserManager
instance based on this configuration. Since the initial requirement for the User Management was to allow for implementations that don't store and retrieve user information from repository content, the otherwise usedinit
interface method has intentionally be omitted. This method attempts to retrieve a constructor matching the givenparameterTypes
and creates an new instance from theinitArgs
matching theparameterTypes
.- Parameters:
assignableFrom
- An UserManager class from which the configured implementation must be assignable.parameterTypes
- Array of classes used to lookup the constructor.initArgs
- The arguments to create the new user manager instance matching theparameterTypes
.- Returns:
- A new instance of
UserManager
that is assignable from the class passed asassignableFrom
. - Throws:
ConfigurationException
- If the configured user manager implementation is not assignable from the given UserManager class, does not provide a constructor matchingparameterTypes
or creating the instance fails.
-
getAuthorizableActions
public AuthorizableAction[] getAuthorizableActions() throws ConfigurationException
- Throws:
ConfigurationException
-
-