限定符和类型 | 字段和说明 |
---|---|
static String |
WILDCARD_ACL_VALUE |
构造器和说明 |
---|
AccessControlList()
This constructor exists primarily for AccessControlList to be Writable.
|
AccessControlList(String aclString)
Construct a new ACL from a String representation of the same.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addUser(String user) |
String |
getACLString()
Returns the String representation of this ACL.
|
boolean |
isAllAllowed() |
boolean |
isUserAllowed(UserGroupInformation ugi) |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public AccessControlList()
public AccessControlList(String aclString)
aclString
- String representation of the ACLpublic boolean isAllAllowed()
public void addUser(String user)
public boolean isUserAllowed(UserGroupInformation ugi)
public void write(DataOutput out) throws IOException
Writable
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public String getACLString()
Copyright © 2009 The Apache Software Foundation