Class PrivilegeUtil

  • All Implemented Interfaces:
    PrivilegeConstants

    public final class PrivilegeUtil
    extends java.lang.Object
    implements PrivilegeConstants
    Privilege management related utility methods.
    • Method Detail

      • getPrivilegesTree

        @NotNull
        public static @NotNull Tree getPrivilegesTree​(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.