Class AuthorizationConfigurationImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
- org.apache.jackrabbit.oak.spi.security.ConfigurationBase
-
- org.apache.jackrabbit.oak.security.authorization.AuthorizationConfigurationImpl
-
- All Implemented Interfaces:
ProviderCtx
,AuthorizationConfiguration
,SecurityConfiguration
public class AuthorizationConfigurationImpl extends ConfigurationBase implements AuthorizationConfiguration, ProviderCtx
Default implementation of theAccessControlConfiguration
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
NAME
-
-
Constructor Summary
Constructors Constructor Description AuthorizationConfigurationImpl()
AuthorizationConfigurationImpl(@NotNull SecurityProvider securityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindMountInfoProvider(MountInfoProvider mountInfoProvider)
@NotNull AccessControlManager
getAccessControlManager(@NotNull Root root, @NotNull NamePathMapper namePathMapper)
@NotNull List<? extends CommitHook>
getCommitHooks(@NotNull String workspaceName)
Returns the list of commit hooks that need to be executed for the specified workspace name.@NotNull Context
getContext()
@NotNull AuthorizationMonitor
getMonitor()
@NotNull Iterable<Monitor<?>>
getMonitors(@NotNull StatisticsProvider statisticsProvider)
@NotNull MountInfoProvider
getMountInfoProvider()
@NotNull String
getName()
Returns the name of this security configuration.@NotNull PermissionProvider
getPermissionProvider(@NotNull Root root, @NotNull String workspaceName, @NotNull Set<Principal> principals)
@NotNull List<ProtectedItemImporter>
getProtectedItemImporters()
@NotNull RestrictionProvider
getRestrictionProvider()
@NotNull List<ValidatorProvider>
getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker)
Returns the list of validators that need to be executed for the specified workspace name.@NotNull WorkspaceInitializer
getWorkspaceInitializer()
Returns a workspace initializer for this security configuration.void
unbindMountInfoProvider(MountInfoProvider mountInfoProvider)
-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.ConfigurationBase
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setParameters, setRootProvider, setSecurityProvider, setTreeProvider
-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
getConflictHandlers, getRepositoryInitializer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.security.authorization.ProviderCtx
getRootProvider, getSecurityProvider, getTreeProvider
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getConflictHandlers, getParameters, getRepositoryInitializer
-
-
-
-
Constructor Detail
-
AuthorizationConfigurationImpl
public AuthorizationConfigurationImpl()
-
AuthorizationConfigurationImpl
public AuthorizationConfigurationImpl(@NotNull @NotNull SecurityProvider securityProvider)
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:SecurityConfiguration
Returns the name of this security configuration.- Specified by:
getName
in interfaceSecurityConfiguration
- Overrides:
getName
in classSecurityConfiguration.Default
- Returns:
- The name of this configuration.
-
getWorkspaceInitializer
@NotNull public @NotNull WorkspaceInitializer getWorkspaceInitializer()
Description copied from interface:SecurityConfiguration
Returns a workspace initializer for this security configuration. If this configuration doesn't require any specific workspace initializationWorkspaceInitializer.DEFAULT
should be returned.- Specified by:
getWorkspaceInitializer
in interfaceSecurityConfiguration
- Overrides:
getWorkspaceInitializer
in classSecurityConfiguration.Default
- Returns:
- An instance of
WorkspaceInitializer
.
-
getCommitHooks
@NotNull public @NotNull List<? extends CommitHook> getCommitHooks(@NotNull @NotNull String workspaceName)
Description copied from interface:SecurityConfiguration
Returns the list of commit hooks that need to be executed for the specified workspace name.- Specified by:
getCommitHooks
in interfaceSecurityConfiguration
- Overrides:
getCommitHooks
in classSecurityConfiguration.Default
- Parameters:
workspaceName
- The name of the workspace.- Returns:
- A list of commit hooks.
-
getValidators
@NotNull public @NotNull List<ValidatorProvider> getValidators(@NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals, @NotNull @NotNull MoveTracker moveTracker)
Description copied from interface:SecurityConfiguration
Returns the list of validators that need to be executed for the specified workspace name.- Specified by:
getValidators
in interfaceSecurityConfiguration
- Overrides:
getValidators
in classSecurityConfiguration.Default
- Parameters:
workspaceName
- The name of the workspace.principals
- The set of principals associated with the subject that is committing modifications.moveTracker
- The move tracker associated with the commit.- Returns:
- A list of validators.
-
getProtectedItemImporters
@NotNull public @NotNull List<ProtectedItemImporter> getProtectedItemImporters()
- Specified by:
getProtectedItemImporters
in interfaceSecurityConfiguration
- Overrides:
getProtectedItemImporters
in classSecurityConfiguration.Default
- Returns:
- The list of protected item importers defined by this configuration.
-
getContext
@NotNull public @NotNull Context getContext()
- Specified by:
getContext
in interfaceSecurityConfiguration
- Overrides:
getContext
in classSecurityConfiguration.Default
- Returns:
- The context defined by this configuration.
-
getMonitors
@NotNull public @NotNull Iterable<Monitor<?>> getMonitors(@NotNull @NotNull StatisticsProvider statisticsProvider)
- Specified by:
getMonitors
in interfaceSecurityConfiguration
-
getAccessControlManager
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
- Specified by:
getAccessControlManager
in interfaceAuthorizationConfiguration
-
getRestrictionProvider
@NotNull public @NotNull RestrictionProvider getRestrictionProvider()
- Specified by:
getRestrictionProvider
in interfaceAuthorizationConfiguration
-
getPermissionProvider
@NotNull public @NotNull PermissionProvider getPermissionProvider(@NotNull @NotNull Root root, @NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals)
- Specified by:
getPermissionProvider
in interfaceAuthorizationConfiguration
-
getMountInfoProvider
@NotNull public @NotNull MountInfoProvider getMountInfoProvider()
- Specified by:
getMountInfoProvider
in interfaceProviderCtx
-
getMonitor
@NotNull public @NotNull AuthorizationMonitor getMonitor()
- Specified by:
getMonitor
in interfaceProviderCtx
-
bindMountInfoProvider
public void bindMountInfoProvider(MountInfoProvider mountInfoProvider)
-
unbindMountInfoProvider
public void unbindMountInfoProvider(MountInfoProvider mountInfoProvider)
-
-