-
Notifications
You must be signed in to change notification settings - Fork 330
Simplify PolarisGrantManager #1171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1330,6 +1330,11 @@ private void revokeGrantRecord( | |
|
|
||
| /** {@inheritDoc} */ | ||
|
||
| @Override | ||
| public @Nonnull LoadGrantsResult loadGrantsOnSecurable( | ||
| @Nonnull PolarisCallContext callCtx, PolarisEntityCore securable) { | ||
| return loadGrantsOnSecurable(callCtx, securable.getCatalogId(), securable.getId()); | ||
| } | ||
|
|
||
| public @Nonnull LoadGrantsResult loadGrantsOnSecurable( | ||
| @Nonnull PolarisCallContext callCtx, long securableCatalogId, long securableId) { | ||
| // get metastore we should be using | ||
|
|
@@ -1371,6 +1376,11 @@ private void revokeGrantRecord( | |
|
|
||
| /** {@inheritDoc} */ | ||
|
||
| @Override | ||
| public @Nonnull LoadGrantsResult loadGrantsToGrantee( | ||
| @Nonnull PolarisCallContext callCtx, PolarisEntityCore grantee) { | ||
| return loadGrantsToGrantee(callCtx, grantee.getCatalogId(), grantee.getId()); | ||
| } | ||
|
|
||
| public @Nonnull LoadGrantsResult loadGrantsToGrantee( | ||
| @Nonnull PolarisCallContext callCtx, long granteeCatalogId, long granteeId) { | ||
| // get metastore we should be using | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1757,6 +1757,11 @@ private PolarisEntityResolver resolveSecurableToRoleGrant( | |
|
|
||
| /** {@inheritDoc} */ | ||
| @Override | ||
| public @Nonnull LoadGrantsResult loadGrantsOnSecurable( | ||
| @Nonnull PolarisCallContext callCtx, PolarisEntityCore securable) { | ||
| return loadGrantsOnSecurable(callCtx, securable.getCatalogId(), securable.getId()); | ||
| } | ||
|
|
||
| public @Nonnull LoadGrantsResult loadGrantsOnSecurable( | ||
| @Nonnull PolarisCallContext callCtx, long securableCatalogId, long securableId) { | ||
| // get metastore we should be using | ||
|
|
@@ -1807,6 +1812,11 @@ private PolarisEntityResolver resolveSecurableToRoleGrant( | |
|
|
||
| /** {@inheritDoc} */ | ||
| @Override | ||
| public @Nonnull LoadGrantsResult loadGrantsToGrantee( | ||
| @Nonnull PolarisCallContext callCtx, PolarisEntityCore grantee) { | ||
| return loadGrantsToGrantee(callCtx, grantee.getCatalogId(), grantee.getId()); | ||
| } | ||
|
|
||
| public @Nonnull LoadGrantsResult loadGrantsToGrantee( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [question] Does this still need to be public?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, but I did not want to expand the scope of changes unnecessarily. |
||
| @Nonnull PolarisCallContext callCtx, long granteeCatalogId, long granteeId) { | ||
| // get metastore we should be using | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, the doc itself was removed. Can we re-introduce a javadoc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole method that hosted this javadoc was removed from the interface