public class RoleInfoObject
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| private java.util.List<RoleInfoObject> | childrenThe children. | 
| private int | idThe id. | 
| private java.lang.String | nameThe name. | 
| private RoleInfoObject | parentThe parent. | 
| private int | parentIdThe parent id. | 
| private java.util.List<TableInfoObject> | tablesThe tables. | 
| private java.util.List<UserInfoObject> | usersThe users. | 
| Constructor and Description | 
|---|
| RoleInfoObject()Empty Ctor for Flex. | 
| RoleInfoObject(java.lang.String name,
              int id,
              int parentId)Create the node given the name, id, and parentId. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBranchToList(java.util.List<RoleInfoObject> branchlist)Get this RoleNode and all child nodes below it. | 
| void | addBranchToMap(java.util.Map<java.lang.String,RoleInfoObject> branchMap)Add this RoleNode once and all unique child nodes below it to a Map | 
| void | addChild(RoleInfoObject child)Add a RoleNode child to this RoleNode. | 
| RoleInfoObject | deepCopy()Deep copy. | 
| void | delete()Delete. | 
| boolean | equals(RoleInfoObject rio)Equals. | 
| RoleInfoObject | findChildById(int id)Go down the branches below this node looking for a child that
 has the given id. | 
| java.util.List<RoleInfoObject> | getChildren()Get all the RoleNodes that are children of this RoleNode. | 
| java.lang.String | getFullName()Gets the full name. | 
| int | getId()Get the ID of this RoleNode. | 
| java.lang.String | getName()Get the name of this RoleNode. | 
| RoleInfoObject | getParent()Get the RoleNode that is the parent of this RoleNode. | 
| int | getParentId()Get the id of the parent of this RoleNode. | 
| void | getRoleHierarchyAbove(java.util.List<java.lang.String> parentList)Get a list of the names of all the RoleNodes that exist above this RoleNode in a direct line towards the root. | 
| void | getRoleHierarchyBelow(java.util.List<java.lang.String> childList)Get a list of the names of all the RoleNodes that exist below this RoleNode (i.e. | 
| void | getRoleHierarchyBelowById(java.util.List<java.lang.Integer> childList)Get a list of the id's of all the RoleNodes that exist below this RoleNode (i.e. | 
| java.util.List<TableInfoObject> | getTables()Gets the tables. | 
| java.util.List<UserInfoObject> | getUsers()Gets the users. | 
| boolean | isRoleAbove(RoleInfoObject lowRole)Checks if is role above. | 
| void | setChildren(java.util.List<RoleInfoObject> children)Set the List | 
| void | setId(int id)Sets the id. | 
| void | setName(java.lang.String name)Sets the name. | 
| void | setParent(RoleInfoObject parent)Set the RoleNode that is the parent of this RoleNode. | 
| void | setParentId(int parentId)Set the id of the parent of this RoleNode. | 
| void | setTables(java.util.List<TableInfoObject> tables)Sets the tables. | 
| void | setUsers(java.util.List<UserInfoObject> users)Sets the users. | 
| void | toFlexTree(FlexTreeObject ftoParent)Return the hierarchy as a tree. | 
| java.lang.String | toString() | 
private RoleInfoObject parent
private java.util.List<RoleInfoObject> children
private int id
private int parentId
private java.lang.String name
private java.util.List<UserInfoObject> users
private java.util.List<TableInfoObject> tables
public RoleInfoObject()
public RoleInfoObject(java.lang.String name,
              int id,
              int parentId)
name - the nameid - the idparentId - the parent idpublic void setParent(RoleInfoObject parent)
parent - the new parentpublic RoleInfoObject getParent()
public java.util.List<RoleInfoObject> getChildren()
public void addBranchToList(java.util.List<RoleInfoObject> branchlist)
branchlist - the branchlist that will be appendedpublic void addBranchToMap(java.util.Map<java.lang.String,RoleInfoObject> branchMap)
branchMap - the branch map to appendpublic RoleInfoObject deepCopy()
public void setChildren(java.util.List<RoleInfoObject> children)
children - the new childrenpublic int getId()
public void setId(int id)
id - the new idpublic int getParentId()
public void setParentId(int parentId)
parentId - the new parent idpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic void addChild(RoleInfoObject child)
child - the childpublic void delete()
public RoleInfoObject findChildById(int id)
id - the idpublic boolean isRoleAbove(RoleInfoObject lowRole)
lowRole - the low rolepublic void getRoleHierarchyBelow(java.util.List<java.lang.String> childList)
the - Listpublic void getRoleHierarchyBelowById(java.util.List<java.lang.Integer> childList)
the - Listpublic void getRoleHierarchyAbove(java.util.List<java.lang.String> parentList)
the - Listpublic java.lang.String getFullName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(RoleInfoObject rio)
rio - the RoleInfoObjectpublic void toFlexTree(FlexTreeObject ftoParent)
ftoParent - the FlexTreeObject to populatepublic java.util.List<UserInfoObject> getUsers()
public void setUsers(java.util.List<UserInfoObject> users)
users - the new userspublic java.util.List<TableInfoObject> getTables()
public void setTables(java.util.List<TableInfoObject> tables)
tables - the new tables