|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlProviderFactory
The AccessControlProviderFactory
is used to create
AccessControlProvider
s for the various workspaces present in the
repository. If a provider is no longer used by the workspace, it is
closed
.
AccessControlProvider
s.
They are used during the entire lifetime of their workspace, and are cached
together with the respective workspace related objects by the repository
implementation.
The AccessControlProvider
s are requested using a
system Session
. The system sessions have a distinct access
control rules in order to prevent chicken-egg problems when setting up
security for a workspace.
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. |
Method Detail |
---|
void init(Session securitySession) throws RepositoryException
securitySession
-
RepositoryException
void close() throws RepositoryException
AccessControlProviderFactory
and its resources.
RepositoryException
- if an error occurs.AccessControlProvider createProvider(Session systemSession, WorkspaceSecurityConfig config) throws RepositoryException
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.
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.
RepositoryException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |