public class DepartmentTreeNode
extends java.lang.Object
implements java.io.Serializable
限定符 | 构造器和说明 |
---|---|
protected |
DepartmentTreeNode(Department department) |
限定符和类型 | 方法和说明 |
---|---|
void |
addNode(long did,
DepartmentTreeNode node)
添加节点
|
JSONObject |
createJSONConfig()
获取json输出
|
JSONObject |
createJSONConfigIncludeParent(JSONArray childNodes)
获取json输出, 包含父节点
|
JSONObject |
createPrivilegeJSONConfig(long userid)
获取权限的json输出
|
boolean |
equals(java.lang.Object obj) |
Department |
getDepartment() |
protected java.lang.Long[] |
getNodeIDs() |
DepartmentTreeNode[] |
getNodes() |
DepartmentTreeNode[] |
getNodes(long userid,
java.util.List list) |
java.lang.Long[] |
getPath() |
java.lang.String |
getShowName(java.lang.String prefix) |
int |
hashCode()
获取哈希码
|
protected void |
removeSelf() |
void |
setDepartment(Department department) |
protected DepartmentTreeNode(Department department)
public void addNode(long did, DepartmentTreeNode node)
did
- 序号node
- 节点protected void removeSelf()
public java.lang.String getShowName(java.lang.String prefix)
public java.lang.Long[] getPath()
public DepartmentTreeNode[] getNodes()
public DepartmentTreeNode[] getNodes(long userid, java.util.List list)
protected java.lang.Long[] getNodeIDs()
public Department getDepartment()
public JSONObject createJSONConfigIncludeParent(JSONArray childNodes) throws JSONException
childNodes
- 子节点JSONException
public JSONObject createPrivilegeJSONConfig(long userid) throws JSONException
userid
- 用户idJSONException
public JSONObject createJSONConfig() throws JSONException
JSONException
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public void setDepartment(Department department)