@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class UGIResolver extends Object
Constructor and Description |
---|
UGIResolver() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addGroup(String name) |
protected void |
addGroup(String name,
int id) |
abstract void |
addUser(String name) |
protected void |
addUser(String name,
int id) |
protected long |
buildPermissionStatus(String owner,
String group,
short permission)
Permission is serialized as a 64-bit long.
|
String |
group(FileStatus s) |
FsPermission |
permission(FileStatus s) |
protected void |
resetUGInfo() |
long |
resolve(FileStatus s) |
Map<Integer,String> |
ugiMap() |
String |
user(FileStatus s) |
protected final long buildPermissionStatus(String owner, String group, short permission)
owner
- name of ownergroup
- name of grouppermission
- Permission octectspublic abstract void addUser(String name)
protected void addUser(String name, int id)
public abstract void addGroup(String name)
protected void addGroup(String name, int id)
protected void resetUGInfo()
public long resolve(FileStatus s)
public String user(FileStatus s)
public String group(FileStatus s)
public FsPermission permission(FileStatus s)
Copyright © 2021 Apache Software Foundation. All rights reserved.