@InterfaceAudience.Private public class ShadedAccessControlUtil extends Object
Constructor and Description |
---|
ShadedAccessControlUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GetUserPermissionsRequest |
buildGetUserPermissionsRequest(GetUserPermissionsRequest request) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GetUserPermissionsResponse |
buildGetUserPermissionsResponse(List<UserPermission> permissions) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GrantRequest |
buildGrantRequest(UserPermission userPermission,
boolean mergeExistingPermissions) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.HasUserPermissionsRequest |
buildHasUserPermissionsRequest(String userName,
List<Permission> permissions) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.RevokeRequest |
buildRevokeRequest(UserPermission userPermission) |
static Permission |
toPermission(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission proto)
Converts a Permission shaded proto to a client TablePermission object.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission |
toPermission(Permission perm)
Convert a client Permission to a Permission shaded proto
|
static Permission.Action |
toPermissionAction(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action action)
Convert a Permission.Action shaded proto to a client Permission.Action object.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action |
toPermissionAction(Permission.Action action)
Convert a client user permission to a user permission shaded proto.
|
static Permission.Action[] |
toPermissionActions(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action> protoActions)
Converts a list of Permission.Action shaded proto to an array of client Permission.Action
objects.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableName |
toProtoTableName(TableName tableName) |
static TableName |
toTableName(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableName tableNamePB) |
static UserPermission |
toUserPermission(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UserPermission proto)
Converts a user permission proto to a client user permission object.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UserPermission |
toUserPermission(UserPermission perm)
Convert a client user permission to a user permission proto
|
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> |
toUserTablePermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UsersAndPermissions proto)
Convert a shaded protobuf UserTablePermissions to a ListMultimap<String, TablePermission>
where key is username.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UsersAndPermissions |
toUserTablePermissions(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,UserPermission> perm)
Convert a ListMultimap<String, TablePermission> where key is username to a shaded
protobuf UserPermission
|
public ShadedAccessControlUtil()
public static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action toPermissionAction(Permission.Action action)
public static Permission.Action toPermissionAction(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action action)
public static Permission.Action[] toPermissionActions(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action> protoActions)
protoActions
- the list of shaded protobuf Actionspublic static TableName toTableName(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableName tableNamePB)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableName toProtoTableName(TableName tableName)
public static Permission toPermission(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission proto)
proto
- the protobuf Permissionpublic static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission toPermission(Permission perm)
perm
- the client Permissionpublic static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> toUserTablePermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UsersAndPermissions proto)
proto
- the protobuf UserPermissionpublic static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UsersAndPermissions toUserTablePermissions(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,UserPermission> perm)
perm
- the list of user and table permissionspublic static UserPermission toUserPermission(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UserPermission proto)
proto
- the protobuf UserPermissionpublic static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UserPermission toUserPermission(UserPermission perm)
perm
- the client UserPermissionpublic static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GrantRequest buildGrantRequest(UserPermission userPermission, boolean mergeExistingPermissions)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.RevokeRequest buildRevokeRequest(UserPermission userPermission)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GetUserPermissionsRequest buildGetUserPermissionsRequest(GetUserPermissionsRequest request)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GetUserPermissionsResponse buildGetUserPermissionsResponse(List<UserPermission> permissions)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.HasUserPermissionsRequest buildHasUserPermissionsRequest(String userName, List<Permission> permissions)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.