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

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
              extended bycom.bea.security.entitlements.admin.rbac.AttributableEntitlementNode
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable, org.apache.myfaces.custom.tree2.TreeNode
Direct Known Subclasses:
EUIMetaObjectNode, PermissionNode, RolePermissionSetNode

public abstract class AttributableEntitlementNode
extends BaseTreeNode

This class provides core functionality for all nodes that could have attributes associated to its definition.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bea.security.entitlements.admin.rbac.BaseTreeNode
IDENTITY_DIRECTORY_NODE, IDENTITY_NODE, NAVIGATION_NODE, PERMISSION_NODE, PERMISSION_SET_NODE, REPORTING_NODE, RESOURCE_NODE, ROLE_NODE, SOD_NODE
 
Constructor Summary
AttributableEntitlementNode()
          Default Constructor
AttributableEntitlementNode(java.lang.String type, java.lang.String description, boolean leaf)
          Constructor with type and description
AttributableEntitlementNode(java.lang.String type, java.lang.String description, java.lang.String identifier, boolean leaf)
          Constructor with type, description and an identifier
AttributableEntitlementNode(TreeNodeWithSelection parentNode, java.lang.String type, java.lang.String description, boolean leaf)
          Constructor with an associated parent node
 
Method Summary
 java.lang.String cancelModifyAttribute()
          When canceling the modification of a rule, If the new rule is canceled, make sure we delete the rule.
 AttributeElement getCurrentAttribute()
          Get current set attribute
 boolean isNewAttribute()
          Status of newAttribute, just a session state holder for new node create popup dialogs
 java.lang.String newAttributeAction()
          Create a new rule to be edited in the UI.
 void removeCurrentAttributeFromList()
          Remove the currently selected Attribute from the list of direct attributes for the given node
 void setAttributes(java.util.List attributes)
          Set a new set of attributes
 void setAttrIdx(int attrIdx)
          Set the currently selected attribute in the role attribute table of the UI.
 void setCurrentAttribute(AttributeElement currentAttribute)
          Set new Attribute
 void setNewAttribute(boolean newAttribute)
          Set status of newAttribute, session state holder
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.BaseTreeNode
getNodeType
 
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
 

Constructor Detail

AttributableEntitlementNode

public AttributableEntitlementNode()
Default Constructor


AttributableEntitlementNode

public AttributableEntitlementNode(java.lang.String type,
                                   java.lang.String description,
                                   boolean leaf)
Constructor with type and description

Parameters:
type - type of the node for example "Role" etc
description - description to use
leaf - true if leaf, false otherwise

AttributableEntitlementNode

public AttributableEntitlementNode(java.lang.String type,
                                   java.lang.String description,
                                   java.lang.String identifier,
                                   boolean leaf)
Constructor with type, description and an identifier

Parameters:
type - type of the node for example "Role" etc
description - description to use
identifier - identifier for node
leaf - true if leaf, false otherwise

AttributableEntitlementNode

public AttributableEntitlementNode(TreeNodeWithSelection parentNode,
                                   java.lang.String type,
                                   java.lang.String description,
                                   boolean leaf)
Constructor with an associated parent node

Parameters:
parentNode - parent node to set
type - type of the node for example "Role" etc
description - description to use
leaf - true if leaf, false otherwise
Method Detail

cancelModifyAttribute

public java.lang.String cancelModifyAttribute()
When canceling the modification of a rule, If the new rule is canceled, make sure we delete the rule.


getCurrentAttribute

public AttributeElement getCurrentAttribute()
Get current set attribute

Returns:
current attribute

isNewAttribute

public boolean isNewAttribute()
Status of newAttribute, just a session state holder for new node create popup dialogs

Returns:
true if set, false otherwise

newAttributeAction

public java.lang.String newAttributeAction()
Create a new rule to be edited in the UI.

Returns:
"Success" Once created the success return value causes the popup to be forwarded to the modifymemberrule.jsp page which will be pointing to the newly created rule.

removeCurrentAttributeFromList

public void removeCurrentAttributeFromList()
Remove the currently selected Attribute from the list of direct attributes for the given node

Returns:
null mostly, exception otherwise

setAttributes

public void setAttributes(java.util.List attributes)
Set a new set of attributes

Parameters:
attributes - list of AttributeElements to set

setAttrIdx

public void setAttrIdx(int attrIdx)
Set the currently selected attribute in the role attribute table of the UI.

Parameters:
attrIdx - attribute to set

setCurrentAttribute

public void setCurrentAttribute(AttributeElement currentAttribute)
Set new Attribute

Parameters:
currentAttribute - attribute to set

setNewAttribute

public void setNewAttribute(boolean newAttribute)
Set status of newAttribute, session state holder



Copyright © 2007 BEA Systems Inc. All Rights Reserved.