Interface FilterProvider
-
- All Known Implementing Classes:
FilterProviderImpl
@ProviderType public interface FilterProviderInterface that allows to define the principals for which principal based access control management and permission evaluation can be executed. For any other principals this module would never take effect.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @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.
-
-
-
Method Detail
-
handlesPath
boolean handlesPath(@NotNull @NotNull java.lang.String oakPath)Reveals if the given implementation is able to handle access control at the tree defined by the givenoakPath.- Parameters:
oakPath- The absolute oak path to be tested.- Returns:
trueif the given path is supported by this implememntation,falseotherwise.
-
getFilterRoot
@NotNull @NotNull java.lang.String getFilterRoot()
Returns the root path handled by the filer. In case multiple paths are supported this method returns the common ancestor path.- Returns:
- An absolute oak path.
-
getFilter
@NotNull @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)
Returns aFilterfor the given parameters.- Parameters:
securityProvider- The security provider.root- The reading/editing root.namePathMapper- The name path mapper.- Returns:
- A new filter associated with the given parameters.
-
-