Class CompositeAuthorizationConfiguration
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.CompositeConfiguration<AuthorizationConfiguration>
-
- org.apache.jackrabbit.oak.security.authorization.composite.CompositeAuthorizationConfiguration
-
- All Implemented Interfaces:
AuthorizationConfiguration,SecurityConfiguration
public class CompositeAuthorizationConfiguration extends CompositeConfiguration<AuthorizationConfiguration> implements AuthorizationConfiguration
CompositeAuthorizationConfigurationthat combines different authorization models. This implementation has the following characteristics:AccessControlManager
- This method will return an aggregation of
AccessControlManagers in case multipleAuthorizationConfigurations are present (seeCompositeAccessControlManager). - If the composite only contains a single entry the
AccessControlManagerof this implementation is return without extra wrapping. - If the list of configurations is empty an
IllegalStateExceptionis thrown.
PermissionProvider
- This method will return an aggregation of
PermissionProviders in case multipleAuthorizationConfigurations exposing anAggregatedPermissionProviderare present (seeCompositePermissionProvider. Note however, that providers not implementing theAggregatedPermissionProviderextension will be ignored. - If the composite only contains a single entry the
PermissionProviderof this implementation is return without extra wrapping. - If the list of configurations is empty an
IllegalStateExceptionis thrown.
RestrictionProvider
- This method will return an aggregation of
RestrictionProviders in case multipleAuthorizationConfigurations are present (seeCompositeRestrictionProvider). - If the composite only contains a single entry the
RestrictionProviderof this implementation is return without extra wrapping. - If the list of configurations is empty
RestrictionProvider.EMPTYis returned.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompositeAuthorizationConfiguration.CompositionType-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.oak.spi.security.CompositeConfiguration
PARAM_RANKING
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration
NAME
-
-
Constructor Summary
Constructors Constructor Description CompositeAuthorizationConfiguration()CompositeAuthorizationConfiguration(@NotNull SecurityProvider securityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AccessControlManagergetAccessControlManager(@NotNull Root root, @NotNull NamePathMapper namePathMapper)@NotNull PermissionProvidergetPermissionProvider(@NotNull Root root, @NotNull String workspaceName, @NotNull Set<Principal> principals)@NotNull RestrictionProvidergetRestrictionProvider()voidwithAggregationFilter(@NotNull AggregationFilter aggregationFilter)voidwithCompositionType(@Nullable String ct)-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.CompositeConfiguration
addConfiguration, addConfiguration, getCommitHooks, getConfigurations, getConflictHandlers, getContext, getDefaultConfig, getMonitors, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getRootProvider, getSecurityProvider, getTreeProvider, getValidators, getWorkspaceInitializer, removeConfiguration, setDefaultConfig, setRootProvider, setSecurityProvider, setTreeProvider
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getCommitHooks, getConflictHandlers, getContext, getMonitors, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
-
-
-
-
Constructor Detail
-
CompositeAuthorizationConfiguration
public CompositeAuthorizationConfiguration()
-
CompositeAuthorizationConfiguration
public CompositeAuthorizationConfiguration(@NotNull @NotNull SecurityProvider securityProvider)
-
-
Method Detail
-
withCompositionType
public void withCompositionType(@Nullable @Nullable String ct)
-
withAggregationFilter
public void withAggregationFilter(@NotNull @NotNull AggregationFilter aggregationFilter)
-
getAccessControlManager
@NotNull public @NotNull AccessControlManager getAccessControlManager(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
- Specified by:
getAccessControlManagerin interfaceAuthorizationConfiguration
-
getRestrictionProvider
@NotNull public @NotNull RestrictionProvider getRestrictionProvider()
- Specified by:
getRestrictionProviderin interfaceAuthorizationConfiguration
-
getPermissionProvider
@NotNull public @NotNull PermissionProvider getPermissionProvider(@NotNull @NotNull Root root, @NotNull @NotNull String workspaceName, @NotNull @NotNull Set<Principal> principals)
- Specified by:
getPermissionProviderin interfaceAuthorizationConfiguration
-
-