public class AccessControlList extends GenericResult implements Serializable
Grantee,Permission> pair.| 构造器和说明 | 
|---|
AccessControlList()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
CannedAccessControlList | 
getCannedACL()
Gets the canned ACL. 
 | 
Set<Grant> | 
getGrants()
已过时。  
 | 
Owner | 
getOwner()
Gets  
Owner. | 
void | 
grantPermission(Grantee grantee,
               Permission permission)
Grants the  
Grantee with the Permission. | 
void | 
revokeAllPermissions(Grantee grantee)
Revokes the  
Grantee all its permissions. | 
void | 
setCannedACL(CannedAccessControlList cannedACL)
Sets the ACL. 
 | 
void | 
setOwner(Owner owner)
Sets the  
Owner. | 
String | 
toString()
Serializes the ACL and the owner information to string()). 
 | 
getClientCRC, getRequestId, getResponse, getServerCRC, setClientCRC, setRequestId, setResponse, setServerCRCpublic void grantPermission(Grantee grantee, Permission permission)
grantee - The grantee, it must be GroupGrantee.AllUsers for now.permission - The permission defined in Permission.public void revokeAllPermissions(Grantee grantee)
Grantee all its permissions. For now the Grantee must
 be GroupGrantee.AllUsers.grantee - The grantee, it must be GroupGrantee.AllUsers for now.@Deprecated public Set<Grant> getGrants()
Grant.public CannedAccessControlList getCannedACL()
public void setCannedACL(CannedAccessControlList cannedACL)
cannedACL - Copyright © 2019. All Rights Reserved.