Class SecurityConfiguration.Default
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
- All Implemented Interfaces:
SecurityConfiguration
- Direct Known Subclasses:
ConfigurationBase
,OpenAuthenticationConfiguration
,OpenAuthorizationConfiguration
- Enclosing interface:
- SecurityConfiguration
public static class SecurityConfiguration.Default extends java.lang.Object implements SecurityConfiguration
Default implementation that provides empty initializers, validators, commit hooks and parameters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
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 java.util.List<ThreeWayConflictHandler>
getConflictHandlers()
Returns the list of conflict handlers available for this security configuration.@NotNull Context
getContext()
@NotNull java.lang.String
getName()
Returns the name of this security configuration.@NotNull ConfigurationParameters
getParameters()
Returns the configuration parameters associated with this security configuration instance.@NotNull java.util.List<ProtectedItemImporter>
getProtectedItemImporters()
@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.@NotNull WorkspaceInitializer
getWorkspaceInitializer()
Returns a workspace initializer for this security configuration.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getMonitors
-
-
-
-
Method Detail
-
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
- Returns:
- The name of this configuration.
-
getParameters
@NotNull public @NotNull ConfigurationParameters getParameters()
Description copied from interface:SecurityConfiguration
Returns the configuration parameters associated with this security configuration instance. If no parameters are presentConfigurationParameters.EMPTY
should be returned.- Specified by:
getParameters
in interfaceSecurityConfiguration
- Returns:
- The configuration parameters.
-
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
- Returns:
- An instance of
WorkspaceInitializer
.
-
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
- 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
- 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
- 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.
-
getConflictHandlers
@NotNull public @NotNull java.util.List<ThreeWayConflictHandler> getConflictHandlers()
Description copied from interface:SecurityConfiguration
Returns the list of conflict handlers available for this security configuration.- Specified by:
getConflictHandlers
in interfaceSecurityConfiguration
- Returns:
- A list of
ThreeWayConflictHandler
.
-
getProtectedItemImporters
@NotNull public @NotNull java.util.List<ProtectedItemImporter> getProtectedItemImporters()
- Specified by:
getProtectedItemImporters
in interfaceSecurityConfiguration
- Returns:
- The list of protected item importers defined by this configuration.
-
getContext
@NotNull public @NotNull Context getContext()
- Specified by:
getContext
in interfaceSecurityConfiguration
- Returns:
- The context defined by this configuration.
-
-