Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xunliu committed Oct 19, 2024
1 parent 5715376 commit 76be018
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,47 @@
* HBase, etc.
*/
public interface RangerPrivilegesMappingProvider {
/** Set the mapping Gravitino privilege name to the Ranger privileges rule. */
/**
* Set the mapping Gravitino privilege name to the Ranger privileges rule.
*
* @return The mapping Gravitino privilege name to the Ranger privileges rule.
*/
Map<Privilege.Name, Set<RangerPrivilege>> privilegesMappingRule();

/** Set the owner privileges rule. */
/**
* Set the owner Ranger privileges rule.
*
* @return The owner Ranger privileges rule.
*/
Set<RangerPrivilege> ownerMappingRule();

/** Set the policy resource defines rule. */
/**
* Set the Ranger policy resource defines rule.
*
* @return The policy resource defines rule.
*/
List<String> policyResourceDefinesRule();

/** Allow privilege operation defines rule. */
/**
* Allow Gravitino privilege operation defines rule.
*
* @return The allow Gravitino privilege operation defines rule.
*/
Set<Privilege.Name> allowPrivilegesRule();

/** Translate the Gravitino securable object to the Ranger securable object. */
/**
* Translate the Gravitino securable object to the Ranger securable object.
*
* @param securableObject The Gravitino securable object.
* @return The Ranger securable object list.
*/
List<RangerSecurableObject> translatePrivilege(SecurableObject securableObject);

/** Translate the Gravitino securable object to the Ranger owner securable object. */
/**
* Translate the Gravitino securable object to the Ranger owner securable object.
*
* @param metadataObject The Gravitino metadata object.
* @return The Ranger owner securable object list.
*/
List<RangerSecurableObject> translateOwner(MetadataObject metadataObject);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
* The Ranger securable object is the entity which access can be granted. Unless allowed by a grant,
* access is denied. <br>
* You can use the helper class `RangerSecurableObjects` to create the Ranger securable object which
* you need. </br> There is a clear difference between Ranger's Securable Object and Gravitino's
* Securable Object, Ranger's Securable Object does not have the concept of `METALAKE`, so it needs
* to be defined specifically.
* you need. <br>
* There is a clear difference between Ranger's Securable Object and Gravitino's Securable Object,
* Ranger's Securable Object does not have the concept of `METALAKE`, so it needs to be defined
* specifically.
*/
@Unstable
public interface RangerSecurableObject extends MetadataObject {
Expand Down

0 comments on commit 76be018

Please sign in to comment.