Class ReadPolicy

    • Method Detail

      • hasEffectiveReadPolicy

        public static boolean hasEffectiveReadPolicy​(@NotNull
                                                     @NotNull java.util.Collection<java.lang.String> readPaths,
                                                     @Nullable
                                                     @Nullable java.lang.String oakPath)
      • canAccessReadPolicy

        public static boolean canAccessReadPolicy​(@NotNull
                                                  @NotNull PermissionProvider permissionProvider,
                                                  @NotNull
                                                  @NotNull java.lang.String... oakPaths)
        Evaluates if a ReadPolicy is 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 access
        oakPaths - The set of configured readable paths.
        Returns:
        true if the given permission provider has READ_ACCESS_CONTROL granted on any of the specified readable oak paths; false otherwise.