public class ACLPrivileges
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
ACLPrivileges() |
ACLPrivileges(ACLPrivileges other)
construct from another privilege list
|
ACLPrivileges(java.util.List<Consts.ACLPrivilege> privileges)
construct from privilege list
|
限定符和类型 | 方法和说明 |
---|---|
void |
AddPrivilege(Consts.ACLPrivilege privilege)
Add a privilege
|
void |
AddPrivileges(java.util.List<Consts.ACLPrivilege> privileges)
Add privilege list
|
void |
FromJsonArray(net.sf.json.JSONArray privilegesArray)
Set privilege from json array
|
void |
FromJsonString(java.lang.String privilegesStr)
Set privilege from json array string
|
java.util.List<Consts.ACLPrivilege> |
GetPrivileges()
Return the privilege list
|
void |
SetPrivileges(java.util.List<Consts.ACLPrivilege> privileges)
set privilege list
|
net.sf.json.JSONArray |
ToJsonArray()
return privilege in json array
|
java.lang.String |
ToJsonString()
return privilege in json string
|
public ACLPrivileges()
public ACLPrivileges(java.util.List<Consts.ACLPrivilege> privileges)
privileges
- the privilege listpublic ACLPrivileges(ACLPrivileges other)
other
- another privliege listpublic void AddPrivilege(Consts.ACLPrivilege privilege)
privilege
- the privilege to addpublic void AddPrivileges(java.util.List<Consts.ACLPrivilege> privileges)
privileges
- the privilege list to addpublic void SetPrivileges(java.util.List<Consts.ACLPrivilege> privileges)
privileges
- the privilege to setpublic java.util.List<Consts.ACLPrivilege> GetPrivileges()
public net.sf.json.JSONArray ToJsonArray()
public java.lang.String ToJsonString()
public void FromJsonArray(net.sf.json.JSONArray privilegesArray) throws LogException
privilegesArray
- the privilege json arrayLogException
- throw exception is any error happenpublic void FromJsonString(java.lang.String privilegesStr) throws LogException
privilegesStr
- the privilege json array stringLogException
- throw exception is any error happen