@InterfaceAudience.Public public class UserPermission extends Object
Modifier and Type | Field and Description |
---|---|
private Permission |
permission |
private String |
user |
Constructor and Description |
---|
UserPermission(String user,
Permission permission)
Construct a user permission given permission.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsExceptActions(Object obj) |
Permission.Scope |
getAccessScope()
Get this permission access scope.
|
Permission |
getPermission() |
String |
getUser() |
int |
hashCode() |
String |
toString() |
private Permission permission
public UserPermission(String user, Permission permission)
user
- user namepermission
- one of [Global, Namespace, Table] permissionpublic Permission.Scope getAccessScope()
public Permission getPermission()
public boolean equalsExceptActions(Object obj)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.