Class Privileges

java.lang.Object
org.apache.gravitino.authorization.Privileges

public class Privileges extends Object
The helper class for Privilege.
  • Constructor Details

    • Privileges

      public Privileges()
  • Method Details

    • allow

      public static Privilege allow(String privilege)
      Returns the Privilege with allow condition from the string representation.
      Parameters:
      privilege - The string representation of the privilege.
      Returns:
      The Privilege.
    • allow

      public static Privilege allow(Privilege.Name name)
      Returns the Privilege with allow condition from the `Privilege.Name`.
      Parameters:
      name - The `Privilege.Name` of the privilege.
      Returns:
      The Privilege.
    • deny

      public static Privilege deny(String privilege)
      Returns the Privilege with deny condition from the string representation.
      Parameters:
      privilege - The string representation of the privilege.
      Returns:
      The Privilege.
    • deny

      public static Privilege deny(Privilege.Name name)
      Returns the Privilege with deny condition from the `Privilege.Name`.
      Parameters:
      name - The `Privilege.Name` of the privilege.
      Returns:
      The Privilege.