Class ReadPolicy
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.ReadPolicy
- All Implemented Interfaces:
AccessControlPolicy,NamedAccessControlPolicy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanAccessReadPolicy(@NotNull PermissionProvider permissionProvider, @NotNull String... oakPaths) Evaluates if aReadPolicyis accessible for a session object.getName()static booleanhasEffectiveReadPolicy(@NotNull Collection<String> readPaths, @Nullable String oakPath)
-
Field Details
-
INSTANCE
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceNamedAccessControlPolicy
-
hasEffectiveReadPolicy
public static boolean hasEffectiveReadPolicy(@NotNull @NotNull Collection<String> readPaths, @Nullable @Nullable String oakPath) -
canAccessReadPolicy
public static boolean canAccessReadPolicy(@NotNull @NotNull PermissionProvider permissionProvider, @NotNull @NotNull String... oakPaths) Evaluates if aReadPolicyis accessible for a session object. Note that this method does not verify if the specified paths point to existing/accessible trees.- Parameters:
permissionProvider- A permission provider used for evaluating accessoakPaths- The set of configured readable paths.- Returns:
trueif the given permission provider has READ_ACCESS_CONTROL granted on any of the specified readable oak paths;falseotherwise.
-