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 - 子节点JSONExceptionpublic JSONObject createPrivilegeJSONConfig(long userid) throws JSONException
userid - 用户idJSONExceptionpublic JSONObject createJSONConfig() throws JSONException
JSONExceptionpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic void setDepartment(Department department)