public class ThreeRolesAuthorizationConfiguration extends ConfigurationBase implements AuthorizationConfiguration, ThreeRolesConstants
SecurityConfiguration.Default
NAME
MIX_REP_THREE_ROLES_POLICY, NAMES, NT_REP_THREE_ROLES_POLICY, REP_3_ROLES_POLICY, REP_EDITORS, REP_OWNERS, REP_READERS, SUPPORTED_PERMISSIONS
Constructor and Description |
---|
ThreeRolesAuthorizationConfiguration() |
Modifier and Type | Method and Description |
---|---|
@NotNull AccessControlManager |
getAccessControlManager(@NotNull Root root,
@NotNull NamePathMapper namePathMapper) |
@NotNull Context |
getContext() |
@NotNull java.lang.String |
getName()
Returns the name of this security configuration.
|
@NotNull PermissionProvider |
getPermissionProvider(@NotNull Root root,
@NotNull java.lang.String workspaceName,
@NotNull java.util.Set<java.security.Principal> principals) |
@NotNull java.util.List<ProtectedItemImporter> |
getProtectedItemImporters() |
@NotNull RepositoryInitializer |
getRepositoryInitializer()
Returns a repository initializer for this security configuration.
|
@NotNull RestrictionProvider |
getRestrictionProvider() |
@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.
|
void |
setParameters(@NotNull ConfigurationParameters config) |
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setRootProvider, setSecurityProvider, setTreeProvider
getCommitHooks, getConflictHandlers, getWorkspaceInitializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommitHooks, getConflictHandlers, getMonitors, getParameters, getWorkspaceInitializer
public ThreeRolesAuthorizationConfiguration()
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
getAccessControlManager
in interface AuthorizationConfiguration
@NotNull public @NotNull RestrictionProvider getRestrictionProvider()
getRestrictionProvider
in interface AuthorizationConfiguration
@NotNull public @NotNull PermissionProvider getPermissionProvider(@NotNull @NotNull Root root, @NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.Principal> principals)
getPermissionProvider
in interface AuthorizationConfiguration
@NotNull public @NotNull java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
getName
in class SecurityConfiguration.Default
@NotNull public @NotNull RepositoryInitializer getRepositoryInitializer()
SecurityConfiguration
RepositoryInitializer.DEFAULT
should be returned.getRepositoryInitializer
in interface SecurityConfiguration
getRepositoryInitializer
in class SecurityConfiguration.Default
RepositoryInitializer
.@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<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
public void setParameters(@NotNull @NotNull ConfigurationParameters config)
setParameters
in class ConfigurationBase
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.