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 voidclose()Dispose thisAccessControlProviderFactoryand its resources.AccessControlProvidercreateProvider(Session systemSession, WorkspaceSecurityConfig config)Creates an AccessControlProvider for the workspace of the given system session.voidinit(Session securitySession)Initialize this factory.
-
-
-
Method Detail
-
init
public void init(Session securitySession) throws RepositoryException
Description copied from interface:AccessControlProviderFactoryInitialize this factory.- Specified by:
initin interfaceAccessControlProviderFactory- Parameters:
securitySession- Security Session.- Throws:
RepositoryException- If an error occurs.- See Also:
AccessControlProviderFactory.init(Session)
-
close
public void close() throws RepositoryExceptionDescription copied from interface:AccessControlProviderFactoryDispose thisAccessControlProviderFactoryand its resources.- Specified by:
closein 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:AccessControlProviderFactoryCreates an AccessControlProvider for the workspace of the given system session. If the passed configuration isnullor 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:
createProviderin interfaceAccessControlProviderFactory- Parameters:
systemSession- the system session for the workspace theAccessControlProvidershould be created for.config- The security configuration for that workspace ornullif no config entry is present. In this case the factory must use its default. The configuration is used to determine the implementation ofAccessControlProviderto 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)
-
-