Class PermissionUtil

    • Method Detail

      • getParentPathOrNull

        @Nullable
        public static @Nullable java.lang.String getParentPathOrNull​(@NotNull
                                                                     @NotNull java.lang.String path)
      • getEntryName

        @NotNull
        public static @NotNull java.lang.String getEntryName​(@Nullable
                                                             @Nullable java.lang.String accessControlledPath)
      • checkACLPath

        public static boolean checkACLPath​(@NotNull
                                           @NotNull NodeBuilder node,
                                           @NotNull
                                           @NotNull java.lang.String path)
      • checkACLPath

        public static boolean checkACLPath​(@NotNull
                                           @NotNull Tree node,
                                           @NotNull
                                           @NotNull java.lang.String path)
      • getPermissionsRoot

        @NotNull
        public static @NotNull Tree getPermissionsRoot​(@NotNull
                                                       @NotNull Root root,
                                                       @NotNull
                                                       @NotNull java.lang.String permissionRootName)
      • getPrincipalRoot

        @NotNull
        public static @NotNull Tree getPrincipalRoot​(@NotNull
                                                     @NotNull Tree permissionsTree,
                                                     @NotNull
                                                     @NotNull java.lang.String principalName)
      • isAdminOrSystem

        public static boolean isAdminOrSystem​(@NotNull
                                              @NotNull java.util.Set<java.security.Principal> principals,
                                              @NotNull
                                              @NotNull ConfigurationParameters config)
      • getPath

        @Nullable
        public static @Nullable java.lang.String getPath​(@Nullable
                                                         @Nullable Tree parentBefore,
                                                         @Nullable
                                                         @Nullable Tree parentAfter)
      • getReadOnlyTreeOrNull

        @Nullable
        public static @Nullable Tree getReadOnlyTreeOrNull​(@Nullable
                                                           @Nullable Tree tree,
                                                           @NotNull
                                                           @NotNull Root readOnlyRoot)
      • getReadOnlyTree

        @NotNull
        public static @NotNull Tree getReadOnlyTree​(@NotNull
                                                    @NotNull Tree tree,
                                                    @NotNull
                                                    @NotNull Root readOnlyRoot)