@InterfaceAudience.Public @InterfaceStability.Unstable public class SingleUGIResolver extends UGIResolver implements Configurable
Modifier and Type | Field and Description |
---|---|
static String |
GID |
static String |
GROUP |
static String |
UID |
static String |
USER |
Constructor and Description |
---|
SingleUGIResolver() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String name) |
void |
addUser(String name) |
Configuration |
getConf()
Return the configuration used by this object.
|
String |
group(FileStatus s) |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
String |
user(FileStatus s) |
addGroup, addUser, buildPermissionStatus, permission, resetUGInfo, resolve, ugiMap
public static final String UID
public static final String USER
public static final String GID
public static final String GROUP
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
conf
- configuration to be usedpublic Configuration getConf()
Configurable
getConf
in interface Configurable
public String user(FileStatus s)
user
in class UGIResolver
public String group(FileStatus s)
group
in class UGIResolver
public void addUser(String name)
addUser
in class UGIResolver
public void addGroup(String name)
addGroup
in class UGIResolver
Copyright © 2019 Apache Software Foundation. All rights reserved.