Class FilterProviderImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authorization.principalbased.impl.FilterProviderImpl
-
- All Implemented Interfaces:
FilterProvider
public class FilterProviderImpl extends java.lang.Object implements FilterProvider
Implementation of theFilterinterface that consists of the following two filtering conditions:- All principals in the set must be of type
SystemUserPrincipal - All principals in the set must be located in the repository below the configured path.
-
-
Constructor Summary
Constructors Constructor Description FilterProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(org.apache.jackrabbit.oak.spi.security.authorization.principalbased.impl.FilterProviderImpl.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> properties)@NotNull FiltergetFilter(@NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider, @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)Returns aFilterfor the given parameters.@NotNull java.lang.StringgetFilterRoot()Returns the root path handled by the filer.booleanhandlesPath(@NotNull java.lang.String oakPath)Reveals if the given implementation is able to handle access control at the tree defined by the givenoakPath.protected voidmodified(org.apache.jackrabbit.oak.spi.security.authorization.principalbased.impl.FilterProviderImpl.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> properties)
-
-
-
Method Detail
-
handlesPath
public boolean handlesPath(@NotNull @NotNull java.lang.String oakPath)Description copied from interface:FilterProviderReveals if the given implementation is able to handle access control at the tree defined by the givenoakPath.- Specified by:
handlesPathin interfaceFilterProvider- Parameters:
oakPath- The absolute oak path to be tested.- Returns:
trueif the given path is supported by this implememntation,falseotherwise.
-
getFilterRoot
@NotNull public @NotNull java.lang.String getFilterRoot()
Description copied from interface:FilterProviderReturns the root path handled by the filer. In case multiple paths are supported this method returns the common ancestor path.- Specified by:
getFilterRootin interfaceFilterProvider- Returns:
- An absolute oak path.
-
getFilter
@NotNull public @NotNull Filter getFilter(@NotNull @NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider, @NotNull @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Description copied from interface:FilterProviderReturns aFilterfor the given parameters.- Specified by:
getFilterin interfaceFilterProvider- Parameters:
securityProvider- The security provider.root- The reading/editing root.namePathMapper- The name path mapper.- Returns:
- A new filter associated with the given parameters.
-
activate
protected void activate(org.apache.jackrabbit.oak.spi.security.authorization.principalbased.impl.FilterProviderImpl.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> properties)
-
modified
protected void modified(org.apache.jackrabbit.oak.spi.security.authorization.principalbased.impl.FilterProviderImpl.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> properties)
-
-