org.apache.hadoop.hbase.security.access
Class Permission

java.lang.Object
  extended by org.apache.hadoop.io.VersionedWritable
      extended by org.apache.hadoop.hbase.security.access.Permission
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Direct Known Subclasses:
TablePermission

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class Permission
extends org.apache.hadoop.io.VersionedWritable

Base permissions instance representing the ability to perform a given set of actions.

See Also:
TablePermission

Nested Class Summary
static class Permission.Action
           
 
Field Summary
protected static Map<Byte,Permission.Action> ACTION_BY_CODE
           
protected  Permission.Action[] actions
           
protected static byte VERSION
           
 
Constructor Summary
Permission()
          Empty constructor for Writable implementation.
Permission(byte[] actionCodes)
           
Permission(Permission.Action... assigned)
           
 
Method Summary
 boolean equals(Object obj)
           
 Permission.Action[] getActions()
           
 byte getVersion()
           
 int hashCode()
           
 boolean implies(Permission.Action action)
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

protected static final byte VERSION
See Also:
Constant Field Values

ACTION_BY_CODE

protected static final Map<Byte,Permission.Action> ACTION_BY_CODE

actions

protected Permission.Action[] actions
Constructor Detail

Permission

public Permission()
Empty constructor for Writable implementation. Do not use.


Permission

public Permission(Permission.Action... assigned)

Permission

public Permission(byte[] actionCodes)
Method Detail

getActions

public Permission.Action[] getActions()

implies

public boolean implies(Permission.Action action)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getVersion

public byte getVersion()
Specified by:
getVersion in class org.apache.hadoop.io.VersionedWritable
Returns:
the object version number

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class org.apache.hadoop.io.VersionedWritable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class org.apache.hadoop.io.VersionedWritable
Throws:
IOException


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.