public class CompositeAuthorizationConfiguration extends CompositeConfiguration<AuthorizationConfiguration> implements AuthorizationConfiguration
CompositeAuthorizationConfiguration
that combines different
authorization models. This implementation has the following characteristics:
AccessControlManager
s in case
multiple AuthorizationConfiguration
s are present (see CompositeAccessControlManager
).AccessControlManager
of this implementation is return without extra wrapping.IllegalStateException
is thrown.PermissionProvider
s in case
multiple AuthorizationConfiguration
s exposing an AggregatedPermissionProvider
are present (see CompositePermissionProvider
. Note however, that
providers not implementing the AggregatedPermissionProvider
extension
will be ignored.PermissionProvider
of this implementation is return without extra wrapping.IllegalStateException
is thrown.RestrictionProvider
s in case
multiple AuthorizationConfiguration
s are present (see CompositeRestrictionProvider
).RestrictionProvider
of this implementation is return without extra wrapping.RestrictionProvider.EMPTY
is returned.Modifier and Type | Class and Description |
---|---|
static class |
CompositeAuthorizationConfiguration.CompositionType |
SecurityConfiguration.Default
PARAM_RANKING
NAME
Constructor and Description |
---|
CompositeAuthorizationConfiguration() |
CompositeAuthorizationConfiguration(@NotNull SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
@NotNull AccessControlManager |
getAccessControlManager(@NotNull Root root,
@NotNull NamePathMapper namePathMapper) |
@NotNull PermissionProvider |
getPermissionProvider(@NotNull Root root,
@NotNull java.lang.String workspaceName,
@NotNull java.util.Set<java.security.Principal> principals) |
@NotNull RestrictionProvider |
getRestrictionProvider() |
void |
withAggregationFilter(@NotNull AggregationFilter aggregationFilter) |
void |
withCompositionType(@Nullable java.lang.String ct) |
addConfiguration, addConfiguration, getCommitHooks, getConfigurations, getConflictHandlers, getContext, getDefaultConfig, getMonitors, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getRootProvider, getSecurityProvider, getTreeProvider, getValidators, getWorkspaceInitializer, removeConfiguration, setDefaultConfig, setRootProvider, setSecurityProvider, setTreeProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommitHooks, getConflictHandlers, getContext, getMonitors, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
public CompositeAuthorizationConfiguration()
public CompositeAuthorizationConfiguration(@NotNull @NotNull SecurityProvider securityProvider)
public void withCompositionType(@Nullable @Nullable java.lang.String ct)
public void withAggregationFilter(@NotNull @NotNull AggregationFilter aggregationFilter)
@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
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.