Class NamespacePermission
java.lang.Object
org.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.security.access.Permission
org.apache.hadoop.hbase.security.access.NamespacePermission
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
Represents an authorization for access for the given namespace.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.hadoop.hbase.security.access.PermissionPermission.Action, Permission.Builder, Permission.Scope
- 
Field SummaryFieldsFields inherited from class org.apache.hadoop.hbase.security.access.PermissionACTION_BY_CODE, actions, scope, SCOPE_BY_CODE, VERSION
- 
Constructor SummaryConstructorsConstructorDescriptionNamespacePermission(String namespace, Permission.Action... assigned) Construct a namespace permission.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanCheck if two permission equals regardless of actions.inthashCode()booleanimplies(String namespace, Permission.Action action) check if given action is granted in given namespace.protected StringvoidreadFields(DataInput in) toString()voidwrite(DataOutput out) Methods inherited from class org.apache.hadoop.hbase.security.access.PermissiongetAccessScope, getActions, getVersion, implies, newBuilder, newBuilder, newBuilder, setActions
- 
Field Details- 
namespace
 
- 
- 
Constructor Details- 
NamespacePermissionNamespacePermission(String namespace, Permission.Action... assigned) Construct a namespace permission.- Parameters:
- namespace- namespace's name
- assigned- assigned actions
 
 
- 
- 
Method Details- 
getNamespace
- 
impliescheck if given action is granted in given namespace.- Parameters:
- namespace- namespace's name
- action- action to be checked
- Returns:
- true if granted, false otherwise
 
- 
equalsExceptActionsDescription copied from class:PermissionCheck if two permission equals regardless of actions. It is useful when merging a new permission with an existed permission which needs to check two permissions's fields.- Overrides:
- equalsExceptActionsin class- Permission
- Parameters:
- obj- instance
- Returns:
- true if equals, false otherwise
 
- 
hashCode- Overrides:
- hashCodein class- Permission
 
- 
equals- Overrides:
- equalsin class- Permission
 
- 
toString- Overrides:
- toStringin class- Permission
 
- 
rawExpression- Overrides:
- rawExpressionin class- Permission
 
- 
readFields- Specified by:
- readFieldsin interface- org.apache.hadoop.io.Writable
- Overrides:
- readFieldsin class- Permission
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- org.apache.hadoop.io.Writable
- Overrides:
- writein class- Permission
- Throws:
- IOException
 
 
-