public class ACL
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
ACL() |
ACL(ACL acl)
construct with an acl
|
ACL(java.lang.String principle,
ACLPrivileges privilege,
Consts.ACLAction action)
construct a ACL
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FromJsonObject(net.sf.json.JSONObject dict)
parse from a json object
|
void |
FromJsonString(java.lang.String aclString)
pase from json string
|
Consts.ACLAction |
GetAction() |
int |
GetCreateTime() |
int |
GetLastModifyTime() |
java.lang.String |
GetPrinciple() |
ACLPrivileges |
GetPrivilege() |
void |
SetAction(Consts.ACLAction action) |
void |
SetCreateTime(int createTime) |
void |
SetLastModifyTime(int lastModifyTime) |
void |
SetPrinciple(java.lang.String principle) |
void |
SetPrivilege(ACLPrivileges privileges) |
net.sf.json.JSONObject |
ToJsonObject()
return Json object of acl
|
java.lang.String |
ToJsonString()
return json object string
|
net.sf.json.JSONObject |
ToRequestJson()
Get request json
|
java.lang.String |
ToRequestString()
return request json string
|
public ACL()
public ACL(java.lang.String principle, ACLPrivileges privilege, Consts.ACLAction action)
principle - the aliyun_id or "ANONYMOUS"privilege - privileges to grant or revokeaction - ACLAction.GRANT or ACLAction.REVOKEpublic ACL(ACL acl)
acl - the exist aclpublic Consts.ACLAction GetAction()
public java.lang.String GetPrinciple()
public ACLPrivileges GetPrivilege()
public int GetLastModifyTime()
public int GetCreateTime()
public void SetAction(Consts.ACLAction action)
action - the action to setpublic void SetPrinciple(java.lang.String principle)
principle - the principle to setpublic void SetPrivilege(ACLPrivileges privileges)
privileges - the privileges to setpublic void SetLastModifyTime(int lastModifyTime)
lastModifyTime - the lastModifyTime to setpublic void SetCreateTime(int createTime)
createTime - the createTime to setpublic net.sf.json.JSONObject ToRequestJson()
throws LogException
LogException - if any error happenedpublic java.lang.String ToRequestString()
throws LogException
LogException - if any error happenedpublic net.sf.json.JSONObject ToJsonObject()
throws LogException
LogException - if any error happenedpublic java.lang.String ToJsonString()
throws LogException
LogException - if any error happenedpublic void FromJsonObject(net.sf.json.JSONObject dict)
throws LogException
dict - the acl json objectLogException - if any error happenedpublic void FromJsonString(java.lang.String aclString)
throws LogException
aclString - acl json stringLogException - if any error happened