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
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 -
Method Summary
Modifier and TypeMethodDescription@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 List<ThreeWayConflictHandler>Returns the list of conflict handlers available for this security configuration.@NotNull Context@NotNull StringgetName()Returns the name of this security configuration.@NotNull ConfigurationParametersReturns the configuration parameters associated with this security configuration instance.@NotNull List<ProtectedItemImporter>@NotNull RepositoryInitializerReturns a repository initializer for this security configuration.@NotNull List<? extends 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 WorkspaceInitializerReturns a workspace initializer for this security configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getMonitors
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
getName
Description copied from interface:SecurityConfigurationReturns the name of this security configuration.- Specified by:
getNamein interfaceSecurityConfiguration- Returns:
- The name of this configuration.
-
getParameters
Description copied from interface:SecurityConfigurationReturns the configuration parameters associated with this security configuration instance. If no parameters are presentConfigurationParameters.EMPTYshould be returned.- Specified by:
getParametersin interfaceSecurityConfiguration- Returns:
- The configuration parameters.
-
getWorkspaceInitializer
Description copied from interface:SecurityConfigurationReturns a workspace initializer for this security configuration. If this configuration doesn't require any specific workspace initializationWorkspaceInitializer.DEFAULTshould be returned.- Specified by:
getWorkspaceInitializerin interfaceSecurityConfiguration- Returns:
- An instance of
WorkspaceInitializer.
-
getRepositoryInitializer
Description copied from interface:SecurityConfigurationReturns a repository initializer for this security configuration. If this configuration doesn't require any specific repository initializationRepositoryInitializer.DEFAULTshould be returned.- Specified by:
getRepositoryInitializerin interfaceSecurityConfiguration- Returns:
- An instance of
RepositoryInitializer.
-
getCommitHooks
@NotNull public @NotNull List<? extends CommitHook> getCommitHooks(@NotNull @NotNull String workspaceName) Description copied from interface:SecurityConfigurationReturns the list of commit hooks that need to be executed for the specified workspace name.- Specified by:
getCommitHooksin interfaceSecurityConfiguration- Parameters:
workspaceName- The name of the workspace.- Returns:
- A list of commit hooks.
-
getValidators
@NotNull public @NotNull List<? extends ValidatorProvider> getValidators(@NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals, @NotNull @NotNull MoveTracker moveTracker) Description copied from interface:SecurityConfigurationReturns the list of validators that need to be executed for the specified workspace name.- Specified by:
getValidatorsin 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
Description copied from interface:SecurityConfigurationReturns the list of conflict handlers available for this security configuration.- Specified by:
getConflictHandlersin interfaceSecurityConfiguration- Returns:
- A list of
ThreeWayConflictHandler.
-
getProtectedItemImporters
- Specified by:
getProtectedItemImportersin interfaceSecurityConfiguration- Returns:
- The list of protected item importers defined by this configuration.
-
getContext
- Specified by:
getContextin interfaceSecurityConfiguration- Returns:
- The context defined by this configuration.
-