Class PrivilegeUtil

    • Method Detail

      • getPrivilegesTree

        @NotNull
        public static @NotNull Tree getPrivilegesTree​(@NotNull
                                                      @NotNull Root root)
        Returns the root tree for all privilege definitions stored in the content repository.
        Returns:
        The privileges root.
      • readDefinition

        @NotNull
        public static @NotNull PrivilegeDefinition readDefinition​(@NotNull
                                                                  @NotNull Tree definitionTree)
        Reads the privilege definition stored in the specified definition tree. Note, that this utility does not check the existence nor the node type of the specified tree.
        Parameters:
        definitionTree - An existing tree storing a privilege definition.
        Returns:
        A new instance of PrivilegeDefinition.