public class UserConfigurationImpl extends ConfigurationBase implements UserConfiguration, SecurityConfiguration
UserConfiguration
.SecurityConfiguration.Default
NAME
Constructor and Description |
---|
UserConfigurationImpl() |
UserConfigurationImpl(SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
@NotNull java.util.List<ThreeWayConflictHandler> |
getConflictHandlers()
Returns the list of conflict handlers available for this security configuration.
|
@NotNull Context |
getContext() |
static UserAuthenticationFactory |
getDefaultAuthenticationFactory() |
@NotNull java.lang.Iterable<Monitor<?>> |
getMonitors(@NotNull StatisticsProvider statisticsProvider) |
@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 UserManager |
getUserManager(Root root,
NamePathMapper namePathMapper)
Create a new
UserManager instance |
@Nullable PrincipalProvider |
getUserPrincipalProvider(@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Optional method that allows a given user management implementation to
provide a specific and optimized implementation of the
PrincipalProvider
interface for the principals represented by the user/groups known to
this implementation. |
@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.
|
getRootProvider, getSecurityProvider, getTreeProvider, setParameters, setRootProvider, setSecurityProvider, setTreeProvider
getCommitHooks, getRepositoryInitializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommitHooks, getRepositoryInitializer
public UserConfigurationImpl()
public UserConfigurationImpl(SecurityProvider securityProvider)
public static UserAuthenticationFactory getDefaultAuthenticationFactory()
@NotNull public @NotNull java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
getName
in class SecurityConfiguration.Default
@NotNull public @NotNull ConfigurationParameters getParameters()
SecurityConfiguration
ConfigurationParameters.EMPTY
should be returned.getParameters
in interface SecurityConfiguration
getParameters
in class ConfigurationBase
@NotNull public @NotNull WorkspaceInitializer getWorkspaceInitializer()
SecurityConfiguration
WorkspaceInitializer.DEFAULT
should be returned.getWorkspaceInitializer
in interface SecurityConfiguration
getWorkspaceInitializer
in class SecurityConfiguration.Default
WorkspaceInitializer
.@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)
SecurityConfiguration
getValidators
in interface SecurityConfiguration
getValidators
in class SecurityConfiguration.Default
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.@NotNull public @NotNull java.util.List<ThreeWayConflictHandler> getConflictHandlers()
SecurityConfiguration
getConflictHandlers
in interface SecurityConfiguration
getConflictHandlers
in class SecurityConfiguration.Default
ThreeWayConflictHandler
.@NotNull public @NotNull java.util.List<ProtectedItemImporter> getProtectedItemImporters()
getProtectedItemImporters
in interface SecurityConfiguration
getProtectedItemImporters
in class SecurityConfiguration.Default
@NotNull public @NotNull Context getContext()
getContext
in interface SecurityConfiguration
getContext
in class SecurityConfiguration.Default
@NotNull public @NotNull java.lang.Iterable<Monitor<?>> getMonitors(@NotNull @NotNull StatisticsProvider statisticsProvider)
getMonitors
in interface SecurityConfiguration
@NotNull public @NotNull UserManager getUserManager(Root root, NamePathMapper namePathMapper)
UserConfiguration
UserManager
instancegetUserManager
in interface UserConfiguration
root
- The root associated with the user manager.namePathMapper
- A name path mapper used for conversion of jcr/oak names/paths.UserManager
@Nullable public @Nullable PrincipalProvider getUserPrincipalProvider(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
UserConfiguration
PrincipalProvider
interface for the principals represented by the user/groups known to
this implementation.
If this method returns null
the security setup will by default
use a basic PrincipalProvider
implementation based on public
user management API or a combination of other PrincipalProvider
s
as configured with the repository setup.getUserPrincipalProvider
in interface UserConfiguration
root
- The root used to read the principal information from.namePathMapper
- The NamePathMapper
to convert oak paths to JCR paths.PrincipalProvider
or null
if
principal discovery is provided by other means of if the default principal
provider implementation should be used that acts on public user management
API.PrincipalConfiguration
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.