Class AccessControlProviderFactoryImpl
- java.lang.Object
-
- 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
Constructors Constructor Description AccessControlProviderFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Dispose thisAccessControlProviderFactory
and its resources.AccessControlProvider
createProvider(Session systemSession, WorkspaceSecurityConfig config)
Creates an AccessControlProvider for the workspace of the given system session.void
init(Session securitySession)
Initialize this factory.
-
-
-
Method Detail
-
init
public void init(Session securitySession) throws RepositoryException
Description copied from interface:AccessControlProviderFactory
Initialize this factory.- Specified by:
init
in interfaceAccessControlProviderFactory
- 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 thisAccessControlProviderFactory
and its resources.- Specified by:
close
in interfaceAccessControlProviderFactory
- 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 isnull
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 interfaceAccessControlProviderFactory
- Parameters:
systemSession
- the system session for the workspace theAccessControlProvider
should be created for.config
- The security configuration for that workspace ornull
if no config entry is present. In this case the factory must use its default. The configuration is used to determine the implementation ofAccessControlProvider
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)
-
-