com.metamatrix.console.ui.views.entitlements
Class DataNodesTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.metamatrix.console.ui.tree.ChildSortingTreeNode
com.metamatrix.console.ui.views.entitlements.DataNodesTreeNode
- All Implemented Interfaces:
- SortsChildren, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
public class DataNodesTreeNode
- extends ChildSortingTreeNode
- See Also:
- Serialized Form
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary |
DataNodesTreeNode(java.lang.String displayName,
java.lang.String fullName,
TreeNode treeNode,
boolean root,
int create,
int read,
int update,
int delete,
boolean userCanModifyEntitlements)
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataNodesTreeNode
public DataNodesTreeNode(java.lang.String displayName,
java.lang.String fullName,
TreeNode treeNode,
boolean root,
int create,
int read,
int update,
int delete,
boolean userCanModifyEntitlements)
hasDelete
public static boolean hasDelete(AuthorizationActions actions)
hasCreate
public static boolean hasCreate(AuthorizationActions actions)
hasRead
public static boolean hasRead(AuthorizationActions actions)
hasUpdate
public static boolean hasUpdate(AuthorizationActions actions)
stringArrayContains
public static boolean stringArrayContains(java.lang.String[] array,
java.lang.String str)
setTreeTable
public void setTreeTable(AuthorizationsTreeTable treeTbl)
isRootNode
public boolean isRootNode()
setRootNode
public void setRootNode(boolean flag)
parentIsRoot
public boolean parentIsRoot()
getCorrespondingTreeNode
public TreeNode getCorrespondingTreeNode()
getNodeDisplayName
public java.lang.String getNodeDisplayName()
setNodeDisplayName
public void setNodeDisplayName(java.lang.String name)
getNodeFullName
public java.lang.String getNodeFullName()
getCreateState
public int getCreateState()
setCreateState
public void setCreateState(java.lang.Integer val)
setCreateState
public void setCreateState(int val)
getInitialCreateState
public int getInitialCreateState()
setInitialCreateState
public void setInitialCreateState(int state)
getReadState
public int getReadState()
setReadState
public void setReadState(java.lang.Integer val)
setReadState
public void setReadState(int val)
getInitialReadState
public int getInitialReadState()
setInitialReadState
public void setInitialReadState(int state)
getUpdateState
public int getUpdateState()
setUpdateState
public void setUpdateState(java.lang.Integer val)
setUpdateState
public void setUpdateState(int val)
getInitialUpdateState
public int getInitialUpdateState()
setInitialUpdateState
public void setInitialUpdateState(int state)
getDeleteState
public int getDeleteState()
setDeleteState
public void setDeleteState(java.lang.Integer val)
setDeleteState
public void setDeleteState(int val)
getInitialDeleteState
public int getInitialDeleteState()
setInitialDeleteState
public void setInitialDeleteState(int state)
isCreateEnabled
public boolean isCreateEnabled()
isReadEnabled
public boolean isReadEnabled()
isUpdateEnabled
public boolean isUpdateEnabled()
isDeleteEnabled
public boolean isDeleteEnabled()
sortChildren
public boolean sortChildren()
- Description copied from class:
ChildSortingTreeNode
- Sort the child nodes.
- Specified by:
sortChildren
in interface SortsChildren
- Overrides:
sortChildren
in class ChildSortingTreeNode
hasDescendantUnauthorized
public boolean hasDescendantUnauthorized(int columnID)
hasDescendantAuthorized
public boolean hasDescendantAuthorized(int columnID)
recalculateStates
public void recalculateStates()
recalculateState
public int recalculateState(int col)
- Recalculates the initial state of a node for a given column (c, r, u, or d).
Will change to SELECTED all setable descendant nodes are set for the
column.
- Parameters:
col
- column indicator: AuthorizationsModel.CREATE_COLUMN_NUM, etc.
- Returns:
- int one of CheckBox.DESELECTED or CheckBox.SELECTED
Copyright © 2009. All Rights Reserved.