Skip to content

Commit

Permalink
[datastrato#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 14, 2024
1 parent ff6f620 commit 537f481
Show file tree
Hide file tree
Showing 24 changed files with 1,128 additions and 373 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
}
}

0 comments on commit 537f481

Please sign in to comment.