Skip to content

Commit

Permalink
[apache#3342] Refactor the role and privilege model
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Qin committed May 15, 2024
1 parent ff6f620 commit f1a5741
Show file tree
Hide file tree
Showing 34 changed files with 1,354 additions and 574 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public interface Privilege {
/** @return A readable string representation for the privilege. */
String simpleString();

/**
* @return The effect of the privilege. `ALLOW` means that you can use the privilege, `DENY` means
* that you can't use the privilege
*/
Effect effect();

/** The name of this privilege. */
enum Name {
/** The privilege to create a catalog. */
Expand Down Expand Up @@ -116,4 +122,9 @@ public long getHighBits() {
return highBits;
}
}

enum Effect {
ALLOW,
DENY
}
}
Loading

0 comments on commit f1a5741

Please sign in to comment.