|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--intradoc.shared.SecuredTreeNode
Used to construct a tree of nodes, with each being a secured Intra.doc! entity. This is for functionality where parts of the tree are visible only to those with sufficient privilege. The primary implementation is in the management of pages in the PageHandler class. Note1: This class was designed to optimized the computations involved in maanaging secured trees. In particular, it centralizes a lot of information that might normally be in different data structures. Note2: Subtrees are constructed by cloning the nodes and constructing new trees.
| Field Summary | |
int |
m_accessAllowed
Access level allowed. |
java.lang.String |
m_accessCode
Access code. |
java.lang.String |
m_account
Account for this node. |
SecuredTreeNode |
m_children
Children of node. |
java.lang.Object |
m_data
Associated data with this node. |
int |
m_dataIndex
Index into an external collection that holds data for this node. |
java.lang.String |
m_group
Security group on this node. |
boolean |
m_isDeleted
Used to mark nodes that are deleted but still reference by other nodes. |
java.lang.String |
m_lastModified
Last modified marker for this node. |
java.lang.String |
m_name
Unique identifier of this node. |
SecuredTreeNode |
m_next
Next sibling. |
SecuredTreeNode |
m_parent
Parent node. |
SecuredTreeNode |
m_prev
Previous sibling. |
java.lang.String |
m_type
Data or entity type. |
static int |
MAX_CHILDREN
|
static int |
MAX_NESTING
|
| Constructor Summary | |
SecuredTreeNode(java.lang.String name,
java.lang.String type,
java.lang.String group,
java.lang.String account)
Creates and initializes an instance of this class. |
|
| Method Summary | |
void |
appendChild(SecuredTreeNode child)
Append parentless node as a child. |
SecuredTreeNode |
createSubTreeClone()
Creates clone to be used in creating a subtree. |
void |
detachFromParent()
Detaches node from parent. |
SecuredTreeNode |
getRootParent()
Gets root parent for current node. |
void |
replaceInTree(SecuredTreeNode newNode)
Replaces this node with the passed node in the tree and detaches the current node from the tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MAX_NESTING
public static final int MAX_CHILDREN
public java.lang.String m_name
public java.lang.String m_type
public java.lang.Object m_data
public int m_dataIndex
public java.lang.String m_group
public java.lang.String m_account
public int m_accessAllowed
public java.lang.String m_accessCode
public java.lang.String m_lastModified
public boolean m_isDeleted
public SecuredTreeNode m_parent
public SecuredTreeNode m_children
public SecuredTreeNode m_prev
public SecuredTreeNode m_next
| Constructor Detail |
public SecuredTreeNode(java.lang.String name,
java.lang.String type,
java.lang.String group,
java.lang.String account)
| Method Detail |
public SecuredTreeNode createSubTreeClone()
public SecuredTreeNode getRootParent()
public void appendChild(SecuredTreeNode child)
public void detachFromParent()
public void replaceInTree(SecuredTreeNode newNode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |