Class PrivilegeConfigurationImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
- org.apache.jackrabbit.oak.spi.security.ConfigurationBase
-
- org.apache.jackrabbit.oak.security.privilege.PrivilegeConfigurationImpl
-
- All Implemented Interfaces:
PrivilegeConfiguration
,SecurityConfiguration
public class PrivilegeConfigurationImpl extends ConfigurationBase implements PrivilegeConfiguration
Configuration for the privilege management component.
-
-
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.privilege.PrivilegeConfiguration
NAME
-
-
Constructor Summary
Constructors Constructor Description PrivilegeConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.List<? extends CommitHook>
getCommitHooks(@NotNull java.lang.String workspaceName)
Returns the list of commit hooks that need to be executed for the specified workspace name.@NotNull Context
getContext()
@NotNull java.lang.String
getName()
Returns the name of this security configuration.@NotNull PrivilegeManager
getPrivilegeManager(@NotNull Root root, @NotNull NamePathMapper namePathMapper)
Creates a new instance ofPrivilegeManager
.@NotNull RepositoryInitializer
getRepositoryInitializer()
Returns a repository initializer for this security configuration.@NotNull java.util.List<? extends ValidatorProvider>
getValidators(@NotNull java.lang.String workspaceName, @NotNull java.util.Set<java.security.Principal> principals, @NotNull MoveTracker moveTracker)
Returns the list of validators that need to be executed for the specified workspace name.-
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, getProtectedItemImporters, getWorkspaceInitializer
-
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.spi.security.SecurityConfiguration
getConflictHandlers, getMonitors, getParameters, getProtectedItemImporters, getWorkspaceInitializer
-
-
-
-
Method Detail
-
getPrivilegeManager
@NotNull public @NotNull PrivilegeManager getPrivilegeManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
Description copied from interface:PrivilegeConfiguration
Creates a new instance ofPrivilegeManager
.- Specified by:
getPrivilegeManager
in interfacePrivilegeConfiguration
- Parameters:
root
- The root for which the privilege manager should be created.namePathMapper
- The name and path mapper to be used.- Returns:
- A new
PrivilegeManager
.
-
getName
@NotNull public @NotNull java.lang.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.
-
getRepositoryInitializer
@NotNull public @NotNull RepositoryInitializer getRepositoryInitializer()
Description copied from interface:SecurityConfiguration
Returns a repository initializer for this security configuration. If this configuration doesn't require any specific repository initializationRepositoryInitializer.DEFAULT
should be returned.- Specified by:
getRepositoryInitializer
in interfaceSecurityConfiguration
- Overrides:
getRepositoryInitializer
in classSecurityConfiguration.Default
- Returns:
- An instance of
RepositoryInitializer
.
-
getCommitHooks
@NotNull public @NotNull java.util.List<? extends CommitHook> getCommitHooks(@NotNull @NotNull java.lang.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 java.util.List<? extends ValidatorProvider> getValidators(@NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.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.
-
getContext
@NotNull public @NotNull Context getContext()
- Specified by:
getContext
in interfaceSecurityConfiguration
- Overrides:
getContext
in classSecurityConfiguration.Default
- Returns:
- The context defined by this configuration.
-
-