com.bea.security.entitlements.admin.rbac
Class BaseTreeNode

java.lang.Object
  extended byorg.apache.myfaces.custom.tree2.TreeNodeBase
      extended bycom.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
          extended bycom.bea.security.entitlements.admin.rbac.BaseTreeNode
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable, org.apache.myfaces.custom.tree2.TreeNode
Direct Known Subclasses:
AttributableEntitlementNode, IdentityDirectoryNode, IdentityNode, NavigationTreeNode, ReportingNode, ResourceNode, SODNode

public abstract class BaseTreeNode
extends TreeNodeWithSelection
implements java.io.Serializable

This class provides base functionality for most tree nodes. The Abstract class mandates a nodeType for all nodes participating in the EUI tree. For MetaObjects, the getType() would be used internally for getNodeType() of the BaseTreeNode.

See Also:
Serialized Form

Field Summary
static java.lang.String IDENTITY_DIRECTORY_NODE
           
static java.lang.String IDENTITY_NODE
           
static java.lang.String NAVIGATION_NODE
           
static java.lang.String PERMISSION_NODE
           
static java.lang.String PERMISSION_SET_NODE
           
static java.lang.String REPORTING_NODE
           
static java.lang.String RESOURCE_NODE
           
static java.lang.String ROLE_NODE
          Constants defined for various nodes
static java.lang.String SOD_NODE
           
 
Constructor Summary
BaseTreeNode()
          Default constructor
BaseTreeNode(java.lang.String type, java.lang.String description, boolean leaf)
          Construct base tree node for a given type
BaseTreeNode(java.lang.String type, java.lang.String description, java.lang.String identifier, boolean leaf)
          Construct base tree node for a given type
BaseTreeNode(TreeNodeWithSelection parentNode, java.lang.String type, java.lang.String description, boolean leaf)
          Construct base tree node for a given type
 
Method Summary
abstract  java.lang.String getNodeType()
          Return the node type for the tree node to use
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
compareTo, getNodeByName, getParent, isSelected, removeNode, setChildrenSelectedRecursively, setNeedUpdateChildren, setParent, setSelected
 
Methods inherited from class org.apache.myfaces.custom.tree2.TreeNodeBase
getChildCount, getChildren, getDescription, getIdentifier, getType, isLeaf, setDescription, setIdentifier, setLeaf, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY_DIRECTORY_NODE

public static final java.lang.String IDENTITY_DIRECTORY_NODE
See Also:
Constant Field Values

IDENTITY_NODE

public static final java.lang.String IDENTITY_NODE
See Also:
Constant Field Values

NAVIGATION_NODE

public static final java.lang.String NAVIGATION_NODE
See Also:
Constant Field Values

PERMISSION_NODE

public static final java.lang.String PERMISSION_NODE
See Also:
Constant Field Values

PERMISSION_SET_NODE

public static final java.lang.String PERMISSION_SET_NODE
See Also:
Constant Field Values

REPORTING_NODE

public static final java.lang.String REPORTING_NODE
See Also:
Constant Field Values

RESOURCE_NODE

public static final java.lang.String RESOURCE_NODE
See Also:
Constant Field Values

ROLE_NODE

public static final java.lang.String ROLE_NODE
Constants defined for various nodes

See Also:
Constant Field Values

SOD_NODE

public static final java.lang.String SOD_NODE
See Also:
Constant Field Values
Constructor Detail

BaseTreeNode

public BaseTreeNode()
Default constructor


BaseTreeNode

public BaseTreeNode(java.lang.String type,
                    java.lang.String description,
                    boolean leaf)
Construct base tree node for a given type

Parameters:
type - Type to create, either of ROLE_NODE, PERMISSION_NODE etc
description - Description to use
leaf - true if leaf, false othewise

BaseTreeNode

public BaseTreeNode(java.lang.String type,
                    java.lang.String description,
                    java.lang.String identifier,
                    boolean leaf)
Construct base tree node for a given type

Parameters:
type - Type to create, either of ROLE_NODE, PERMISSION_NODE etc
description - Description to use
identifier - Identfier to sue
leaf - true if leaf, false othewise

BaseTreeNode

public BaseTreeNode(TreeNodeWithSelection parentNode,
                    java.lang.String type,
                    java.lang.String description,
                    boolean leaf)
Construct base tree node for a given type

Parameters:
parentNode - Parent node to set for a non leaf type node
type - Type to create, either of ROLE_NODE, PERMISSION_NODE etc
description - Description to use
Method Detail

getNodeType

public abstract java.lang.String getNodeType()
Return the node type for the tree node to use

Returns:


Copyright © 2007 BEA Systems Inc. All Rights Reserved.