org.apache.hadoop.hdfs.web.resources
Class PermissionParam

java.lang.Object
  extended by org.apache.hadoop.hdfs.web.resources.Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
      extended by org.apache.hadoop.hdfs.web.resources.PermissionParam

public class PermissionParam
extends Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>

Permission parameter, use a Short to represent a FsPermission.


Field Summary
static String DEFAULT
          Default parameter value.
static String NAME
          Parameter name.
 
Constructor Summary
PermissionParam(org.apache.hadoop.fs.permission.FsPermission value)
          Constructor.
PermissionParam(String str)
          Constructor.
 
Method Summary
static org.apache.hadoop.fs.permission.FsPermission getDefaultFsPermission()
           
 org.apache.hadoop.fs.permission.FsPermission getFsPermission()
           
 String getName()
           
 String getValueString()
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hdfs.web.resources.Param
getValue, toSortedString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Parameter name.

See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
Default parameter value.

See Also:
Constant Field Values
Constructor Detail

PermissionParam

public PermissionParam(org.apache.hadoop.fs.permission.FsPermission value)
Constructor.

Parameters:
value - the parameter value.

PermissionParam

public PermissionParam(String str)
Constructor.

Parameters:
str - a string representation of the parameter value.
Method Detail

getDefaultFsPermission

public static org.apache.hadoop.fs.permission.FsPermission getDefaultFsPermission()
Returns:
the default FsPermission.

getName

public String getName()
Specified by:
getName in class Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
Returns:
the parameter name.

getFsPermission

public org.apache.hadoop.fs.permission.FsPermission getFsPermission()
Returns:
the represented FsPermission.

toString

public String toString()
Overrides:
toString in class Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>

getValueString

public final String getValueString()
Specified by:
getValueString in class Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
Returns:
the parameter value as a string


Copyright © 2013 Apache Software Foundation. All Rights Reserved.