|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.security.access.Permission
org.apache.hadoop.hbase.security.access.TablePermission
org.apache.hadoop.hbase.security.access.UserPermission
public class UserPermission
Represents an authorization for access over the given table, column family plus qualifier, for the given user.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.security.access.Permission |
---|
Permission.Action |
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.security.access.Permission |
---|
ACTION_BY_CODE, actions, VERSION |
Constructor Summary | |
---|---|
UserPermission()
Nullary constructor for Writable, do not use |
|
UserPermission(byte[] user,
byte[] actionCodes)
Creates a new instance for the given user, matching the actions with the given codes. |
|
UserPermission(byte[] user,
Permission.Action... assigned)
Creates a new instance for the given user. |
|
UserPermission(byte[] user,
String namespace,
byte[] actionCodes)
Creates a new instance for the given user, matching the actions with the given codes. |
|
UserPermission(byte[] user,
String namespace,
Permission.Action... assigned)
Creates a new instance for the given user. |
|
UserPermission(byte[] user,
TableName table,
byte[] family,
byte[] qualifier,
byte[] actionCodes)
Creates a new instance for the given user, table, column family and qualifier, matching the actions with the given codes. |
|
UserPermission(byte[] user,
TableName table,
byte[] family,
byte[] qualifier,
Permission.Action... assigned)
Creates a new permission for the given user, table, column family and column qualifier. |
|
UserPermission(byte[] user,
TableName table,
byte[] family,
Permission.Action... assigned)
Creates a new instance for the given user, table and column family. |
|
UserPermission(byte[] user,
TablePermission perm)
Creates a new instance for the given user, table, column family and qualifier, matching the actions with the given codes. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
byte[] |
getUser()
|
int |
hashCode()
|
boolean |
isGlobal()
Returns true if this permission describes a global user permission. |
void |
readFields(DataInput in)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class org.apache.hadoop.hbase.security.access.TablePermission |
---|
getFamily, getNamespace, getQualifier, getTableName, hasFamily, hasNamespace, hasQualifier, hasTable, implies, implies, implies, matchesFamily, matchesFamilyQualifier |
Methods inherited from class org.apache.hadoop.hbase.security.access.Permission |
---|
getActions, getVersion, implies |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserPermission()
public UserPermission(byte[] user, Permission.Action... assigned)
user
- the userassigned
- the list of allowed actionspublic UserPermission(byte[] user, byte[] actionCodes)
user
- the useractionCodes
- the list of allowed action codespublic UserPermission(byte[] user, String namespace, Permission.Action... assigned)
user
- the usernamespace
- assigned
- the list of allowed actionspublic UserPermission(byte[] user, String namespace, byte[] actionCodes)
user
- the usernamespace
- actionCodes
- the list of allowed action codespublic UserPermission(byte[] user, TableName table, byte[] family, Permission.Action... assigned)
user
- the usertable
- the tablefamily
- the family, can be null if action is allowed over the entire
tableassigned
- the list of allowed actionspublic UserPermission(byte[] user, TableName table, byte[] family, byte[] qualifier, Permission.Action... assigned)
user
- the usertable
- the tablefamily
- the family, can be null if action is allowed over the entire
tablequalifier
- the column qualifier, can be null if action is allowed
over the entire column familyassigned
- the list of allowed actionspublic UserPermission(byte[] user, TableName table, byte[] family, byte[] qualifier, byte[] actionCodes)
user
- the usertable
- the tablefamily
- the family, can be null if action is allowed over the entire
tablequalifier
- the column qualifier, can be null if action is allowed
over the entire column familyactionCodes
- the list of allowed action codespublic UserPermission(byte[] user, TablePermission perm)
user
- the userperm
- a TablePermissionMethod Detail |
---|
public byte[] getUser()
public boolean isGlobal()
public boolean equals(Object obj)
equals
in class TablePermission
public int hashCode()
hashCode
in class TablePermission
public String toString()
toString
in class TablePermission
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class TablePermission
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class TablePermission
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |