Serializablepublic class ACL extends Object implements Serializable
| 修饰符和类型 | 字段 | 说明 |
|---|---|---|
protected Consts.ACLAction |
action |
|
protected int |
createTime |
|
protected int |
lastModifyTime |
|
protected String |
principle |
|
protected ACLPrivileges |
privilege |
| 构造器 | 说明 |
|---|---|
ACL() |
|
ACL(ACL acl) |
construct with an acl
|
ACL(String principle,
ACLPrivileges privilege,
Consts.ACLAction action) |
construct a ACL
|
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
void |
FromJsonObject(net.sf.json.JSONObject dict) |
parse from a json object
|
void |
FromJsonString(String aclString) |
pase from json string
|
Consts.ACLAction |
GetAction() |
|
int |
GetCreateTime() |
|
int |
GetLastModifyTime() |
|
String |
GetPrinciple() |
|
ACLPrivileges |
GetPrivilege() |
|
void |
SetAction(Consts.ACLAction action) |
|
void |
SetCreateTime(int createTime) |
|
void |
SetLastModifyTime(int lastModifyTime) |
|
void |
SetPrinciple(String principle) |
|
void |
SetPrivilege(ACLPrivileges privileges) |
|
net.sf.json.JSONObject |
ToJsonObject() |
return Json object of acl
|
String |
ToJsonString() |
return json object string
|
net.sf.json.JSONObject |
ToRequestJson() |
Get request json
|
String |
ToRequestString() |
return request json string
|
protected Consts.ACLAction action
protected String principle
protected ACLPrivileges privilege
protected int lastModifyTime
protected int createTime
public ACL()
public ACL(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 String GetPrinciple()
public ACLPrivileges GetPrivilege()
public int GetLastModifyTime()
public int GetCreateTime()
public void SetAction(Consts.ACLAction action)
action - the action to setpublic void SetPrinciple(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 String ToRequestString() throws LogException
LogException - if any error happenedpublic net.sf.json.JSONObject ToJsonObject()
throws LogException
LogException - if any error happenedpublic 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(String aclString) throws LogException
aclString - acl json stringLogException - if any error happenedCopyright © 2018. All Rights Reserved.