@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.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 List<Permission.Action> |
toPermissionActions(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Action> protoActions)
Converts a list of Permission.Action shaded proto to a list 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 TablePermission |
toTablePermission(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission proto)
Converts a Permission shaded proto to a client TablePermission object.
|
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,TablePermission> |
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,TablePermission> 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 List<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 TablePermission toTablePermission(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,TablePermission> 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,TablePermission> perm)
perm
- the list of user and table permissionsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.