@InterfaceAudience.Private public class ShadedAccessControlUtil extends Object
Constructor and Description |
---|
ShadedAccessControlUtil() |
Modifier and Type | Method and Description |
---|---|
static AccessControlProtos.Permission |
toPermission(Permission perm)
Convert a client Permission to a Permission shaded proto
|
static Permission.Action |
toPermissionAction(AccessControlProtos.Permission.Action action)
Convert a Permission.Action shaded proto to a client Permission.Action object.
|
static AccessControlProtos.Permission.Action |
toPermissionAction(Permission.Action action)
Convert a client user permission to a user permission shaded proto.
|
static List<Permission.Action> |
toPermissionActions(List<AccessControlProtos.Permission.Action> protoActions)
Converts a list of Permission.Action shaded proto to a list of client Permission.Action
objects.
|
static HBaseProtos.TableName |
toProtoTableName(TableName tableName) |
static TableName |
toTableName(HBaseProtos.TableName tableNamePB) |
static TablePermission |
toTablePermission(AccessControlProtos.Permission proto)
Converts a Permission shaded proto to a client TablePermission object.
|
static UserPermission |
toUserPermission(AccessControlProtos.UserPermission proto)
Converts a user permission proto to a client user permission object.
|
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,TablePermission> |
toUserTablePermissions(AccessControlProtos.UsersAndPermissions proto)
Convert a shaded protobuf UserTablePermissions to a ListMultimap<String, TablePermission>
where key is username.
|
static 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 static AccessControlProtos.Permission.Action toPermissionAction(Permission.Action action)
public static Permission.Action toPermissionAction(AccessControlProtos.Permission.Action action)
public static List<Permission.Action> toPermissionActions(List<AccessControlProtos.Permission.Action> protoActions)
protoActions
- the list of shaded protobuf Actionspublic static TableName toTableName(HBaseProtos.TableName tableNamePB)
public static HBaseProtos.TableName toProtoTableName(TableName tableName)
public static TablePermission toTablePermission(AccessControlProtos.Permission proto)
proto
- the protobuf Permissionpublic static AccessControlProtos.Permission toPermission(Permission perm)
perm
- the client Permissionpublic static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,TablePermission> toUserTablePermissions(AccessControlProtos.UsersAndPermissions proto)
proto
- the protobuf UserPermissionpublic static AccessControlProtos.UsersAndPermissions toUserTablePermissions(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,TablePermission> perm)
perm
- the list of user and table permissionspublic static UserPermission toUserPermission(AccessControlProtos.UserPermission proto)
proto
- the protobuf UserPermissionCopyright © 2007–2019 Cloudera. All rights reserved.