Interface FilterProvider
-
- All Known Implementing Classes:
FilterProviderImpl
@ProviderType public interface FilterProvider
Interface 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 Filter
getFilter(@NotNull SecurityProvider securityProvider, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
Returns aFilter
for the given parameters.@NotNull String
getFilterRoot()
Returns the root path handled by the filer.boolean
handlesPath(@NotNull 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 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:
true
if the given path is supported by this implememntation,false
otherwise.
-
getFilterRoot
@NotNull @NotNull 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 SecurityProvider securityProvider, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)
Returns aFilter
for 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.
-
-