java.lang.Object
org.apache.polaris.extension.auth.ranger.utils.RangerUtils

public class RangerUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.ranger.authz.model.RangerAccessInfo
    toAccessInfo(org.apache.polaris.core.persistence.PolarisResolvedPathWrapper entity, org.apache.polaris.core.auth.PolarisAuthorizableOperation authzOp, Set<String> privileges, String realmContextId)
     
    static String
    toResourcePath(List<org.apache.polaris.core.persistence.PolarisResolvedPathWrapper> resolvedPaths, String realmContextId)
     
    static String
    toResourcePath(org.apache.polaris.core.persistence.PolarisResolvedPathWrapper resolvedPath, String realmContextId)
     
    static String
    toResourceType(org.apache.polaris.core.entity.PolarisEntityType entityType)
     
    static org.apache.ranger.authz.model.RangerUserInfo
    toUserInfo(org.apache.polaris.core.auth.PolarisPrincipal principal)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RangerUtils

      public RangerUtils()
  • Method Details

    • toResourceType

      public static String toResourceType(org.apache.polaris.core.entity.PolarisEntityType entityType)
    • toUserInfo

      public static org.apache.ranger.authz.model.RangerUserInfo toUserInfo(org.apache.polaris.core.auth.PolarisPrincipal principal)
    • toAccessInfo

      public static org.apache.ranger.authz.model.RangerAccessInfo toAccessInfo(org.apache.polaris.core.persistence.PolarisResolvedPathWrapper entity, org.apache.polaris.core.auth.PolarisAuthorizableOperation authzOp, Set<String> privileges, String realmContextId)
    • toResourcePath

      public static String toResourcePath(List<org.apache.polaris.core.persistence.PolarisResolvedPathWrapper> resolvedPaths, String realmContextId)
    • toResourcePath

      public static String toResourcePath(org.apache.polaris.core.persistence.PolarisResolvedPathWrapper resolvedPath, String realmContextId)