org.apache.jackrabbit.core.security.authorization
Class AccessControlProviderFactoryImpl

java.lang.Object
  extended by org.apache.jackrabbit.core.security.authorization.AccessControlProviderFactoryImpl
All Implemented Interfaces:
AccessControlProviderFactory

public class AccessControlProviderFactoryImpl
extends Object
implements AccessControlProviderFactory

Default implementation of the AccessControlProviderFactory


Constructor Summary
AccessControlProviderFactoryImpl()
           
 
Method Summary
 void close()
          Dispose this AccessControlProviderFactory and its resources.
 AccessControlProvider createProvider(Session systemSession, WorkspaceSecurityConfig config)
          Creates an AccessControlProvider for the workspace of the given system session.
 void init(Session securitySession)
          Initalize this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessControlProviderFactoryImpl

public AccessControlProviderFactoryImpl()
Method Detail

init

public void init(Session securitySession)
          throws RepositoryException
Description copied from interface: AccessControlProviderFactory
Initalize this factory.

Specified by:
init in interface AccessControlProviderFactory
Parameters:
securitySession - Security Session.
Throws:
RepositoryException - If an error occurs.
See Also:
AccessControlProviderFactory.init(Session)

close

public void close()
           throws RepositoryException
Description copied from interface: AccessControlProviderFactory
Dispose this AccessControlProviderFactory and its resources.

Specified by:
close in interface AccessControlProviderFactory
Throws:
RepositoryException - if an error occurs.
See Also:
AccessControlProviderFactory.close()

createProvider

public AccessControlProvider createProvider(Session systemSession,
                                            WorkspaceSecurityConfig config)
                                     throws RepositoryException
Description copied from interface: AccessControlProviderFactory
Creates an AccessControlProvider for the workspace of the given system session. If the passed configuration is null or does not have a provider entry, this factory must create a default provider. In any case the provider must be initialized before it is returned to the caller.

Specified by:
createProvider in interface AccessControlProviderFactory
Parameters:
systemSession - the system session for the workspace the AccessControlProvider should be created for.
config - The security configuration for that workspace or null if no config entry is present. In this case the factory must use its default. The configuration is used to determine the implementation of AccessControlProvider to be used and to retrieve eventual configuration parameters.
Returns:
a new, initialized AccessControlProvider.
Throws:
RepositoryException - if an error occurs
See Also:
AccessControlProviderFactory.createProvider(Session, WorkspaceSecurityConfig)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.