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

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

public abstract class EUIMetaObjectNode
extends AttributableEntitlementNode

The MetaObject node will wrap the RBAC API Meta Object implementations. This object is available to facilitate custom object creation of a selectable tree node. MetaObjects to extend the EUI functionality would be configured via metaobject_mappings.properties. These files would be loaded during startup time.

See Also:
Serialized Form

Field Summary
static java.lang.String EUI_METAOBJECT_PARM0
          MetaObject configuation constant - first parameter: specifies parent node
static java.lang.String EUI_METAOBJECT_PARM1
          MetaObject configuation constant - second parameter - RBAC meta object to use
static java.lang.String EUI_METAOBJECT_PARM2
          MetaObject configuation constant - third parameter - leaf node or not
 
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
EUIMetaObjectNode(java.lang.String type)
          EUI MetaObject constructor
EUIMetaObjectNode(java.lang.String type, com.bea.ales.rbac.MetaObject a_meta, boolean isLeaf)
          EUI MetaObject constructor
EUIMetaObjectNode(java.lang.String type, java.lang.String name, boolean isLeaf)
          EUI MetaObject constructor
EUIMetaObjectNode(java.lang.String type, TreeNodeWithSelection parentNode, com.bea.ales.rbac.MetaObject a_meta, boolean isLeaf)
          EUI MetaObject constructor
 
Method Summary
 java.lang.String addChildren()
          Action when add button is clicked
 java.lang.String finishedModifyAttribute()
          When finished modifying a rule, make sure that if it was a new rule we re-set our state back to false so that on cancel, we don't accidentally delete an existing rule.
 java.util.List getAllRbacChildren()
          Get All RBAC Meta objects associated to this node
 java.util.List getAttributes()
          Get all (QueryType.ALL) attributes for this node
 com.bea.ales.rbac.CollectionIdentity getAttributes(int queryType)
          Get Attributes for a query type
 java.util.List getChildren()
          Get children for this meta object, this implements the JSF TreeNodeBase getChildren() to load the children on startup and refresh
 java.lang.String getClassName()
          Classname for use by reflection
 AttributeElement getCurrentAttribute()
          Get current set attribute
 java.util.List getDirectAttributes()
          Get Direct Atttributes for this MetaObject node
 java.util.List getDirectRbacChildren()
          Accessor method to get direct children for this node.
 java.lang.String getFullName()
          Node full name
 TreeNodeWithSelection getNodeByName(java.lang.String name)
          Given a name, return instance of PermissionsetNode
 com.bea.ales.rbac.MetaObject getRbacMetaObject()
          Return the instance of the RBAC MetaObject representing this node
 java.util.List getSelectedNewChildren()
          Get selected new children for this node
 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.
 java.lang.String removeChildren()
          Remove children method.
 java.lang.String removeCurrentAttribute()
          Remove the currently selected rule from the list
 java.lang.String restoreChildrenInDB()
          Roll back all changes if cancel button is clicked
 void setClassName(java.lang.String a_className)
          Class name to set for reflection convenience
 void setCurrentAttribute(AttributeElement currentAttribute)
          Set new Attribute
 void setFullName(java.lang.String fullName)
          Set full name
 void setHierarchyAttributeModified(boolean hierarchyAttributeModified)
          Set Hier attribute modified status
 void setRbacMetaObject(com.bea.ales.rbac.MetaObject a_meta)
          Set RBAC MetaObject implementation to use
 void setSelectedNewChildren(java.util.List a_selectedNewChildren)
          Set new children
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.AttributableEntitlementNode
cancelModifyAttribute, removeCurrentAttributeFromList, setAttributes, setAttrIdx, setNewAttribute
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.BaseTreeNode
getNodeType
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
compareTo, getParent, isSelected, removeNode, setChildrenSelectedRecursively, setNeedUpdateChildren, setParent, setSelected
 
Methods inherited from class org.apache.myfaces.custom.tree2.TreeNodeBase
getChildCount, 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

EUI_METAOBJECT_PARM0

public static final java.lang.String EUI_METAOBJECT_PARM0
MetaObject configuation constant - first parameter: specifies parent node

See Also:
Constant Field Values

EUI_METAOBJECT_PARM1

public static final java.lang.String EUI_METAOBJECT_PARM1
MetaObject configuation constant - second parameter - RBAC meta object to use

See Also:
Constant Field Values

EUI_METAOBJECT_PARM2

public static final java.lang.String EUI_METAOBJECT_PARM2
MetaObject configuation constant - third parameter - leaf node or not

See Also:
Constant Field Values
Constructor Detail

EUIMetaObjectNode

public EUIMetaObjectNode(java.lang.String type)
EUI MetaObject constructor

Parameters:
type - type of EUI object to set

EUIMetaObjectNode

public EUIMetaObjectNode(java.lang.String type,
                         com.bea.ales.rbac.MetaObject a_meta,
                         boolean isLeaf)
EUI MetaObject constructor

Parameters:
type - type of the meta node
a_meta - instance of RBAC MetaObject
isLeaf - true if leaf, false otherwise

EUIMetaObjectNode

public EUIMetaObjectNode(java.lang.String type,
                         java.lang.String name,
                         boolean isLeaf)
EUI MetaObject constructor

Parameters:
type - type of the meta node
name - name to be used for the meta node
isLeaf - true if leaf, false otherwise

EUIMetaObjectNode

public EUIMetaObjectNode(java.lang.String type,
                         TreeNodeWithSelection parentNode,
                         com.bea.ales.rbac.MetaObject a_meta,
                         boolean isLeaf)
EUI MetaObject constructor

Parameters:
type - type of the meta node
a_meta - instance of RBAC MetaObject
parentNode - TreeNodeWithSelection parent object to use
isLeaf - true if leaf, false otherwise
Method Detail

addChildren

public java.lang.String addChildren()
Action when add button is clicked

Returns:
null mostly

finishedModifyAttribute

public java.lang.String finishedModifyAttribute()
When finished modifying a rule, make sure that if it was a new rule we re-set our state back to false so that on cancel, we don't accidentally delete an existing rule.

Returns:
null mostly

getAllRbacChildren

public java.util.List getAllRbacChildren()
Get All RBAC Meta objects associated to this node

Returns:
ArrayList of MetaObjects objects

getAttributes

public java.util.List getAttributes()
Get all (QueryType.ALL) attributes for this node

Returns:
Array list of AttributeElements

getAttributes

public com.bea.ales.rbac.CollectionIdentity getAttributes(int queryType)
                                                   throws com.bea.ales.rbac.RBACException
Get Attributes for a query type

Parameters:
queryType - ALL or DIRECT
Returns:
collection identity to return
Throws:
com.bea.ales.rbac.RBACException

getChildren

public java.util.List getChildren()
Get children for this meta object, this implements the JSF TreeNodeBase getChildren() to load the children on startup and refresh

Returns:
a list of original child objects loaded using reflection

getClassName

public java.lang.String getClassName()
Classname for use by reflection

Returns:
fully qualified name

getCurrentAttribute

public AttributeElement getCurrentAttribute()
Get current set attribute

Overrides:
getCurrentAttribute in class AttributableEntitlementNode
Returns:
current attribute

getDirectAttributes

public java.util.List getDirectAttributes()
Get Direct Atttributes for this MetaObject node

Returns:
List of AttributeElements for this node

getDirectRbacChildren

public java.util.List getDirectRbacChildren()
Accessor method to get direct children for this node. If meta is null return an empty ArrayList.

Returns:
array list of RBAC metaobjects objects

getFullName

public java.lang.String getFullName()
Node full name

Returns:
full name

getNodeByName

public TreeNodeWithSelection getNodeByName(java.lang.String name)
Given a name, return instance of PermissionsetNode

Overrides:
getNodeByName in class TreeNodeWithSelection
Parameters:
name - name of the node
Returns:
instance of PermissionSetNode

getRbacMetaObject

public com.bea.ales.rbac.MetaObject getRbacMetaObject()
Return the instance of the RBAC MetaObject representing this node

Returns:
instance of MetaObject

getSelectedNewChildren

public java.util.List getSelectedNewChildren()
Get selected new children for this node

Returns:
Returns the selectedNewChildren objec.

isNewAttribute

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

Overrides:
isNewAttribute in class AttributableEntitlementNode
Returns:
true if set, false otherwise

newAttributeAction

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

Overrides:
newAttributeAction in class AttributableEntitlementNode
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.

removeChildren

public java.lang.String removeChildren()
Remove children method. Called by the add children popup. For each selected children remove it to the current role.

Returns:
null mostly

removeCurrentAttribute

public java.lang.String removeCurrentAttribute()
Remove the currently selected rule from the list

Returns:
null mostly

restoreChildrenInDB

public java.lang.String restoreChildrenInDB()
Roll back all changes if cancel button is clicked

Returns:
null mostly

setClassName

public void setClassName(java.lang.String a_className)
Class name to set for reflection convenience

Parameters:
a_className - fully qualified name

setCurrentAttribute

public void setCurrentAttribute(AttributeElement currentAttribute)
Set new Attribute

Overrides:
setCurrentAttribute in class AttributableEntitlementNode
Parameters:
currentAttribute - attribute to set

setFullName

public void setFullName(java.lang.String fullName)
Set full name

Parameters:
fullName - to set

setHierarchyAttributeModified

public void setHierarchyAttributeModified(boolean hierarchyAttributeModified)
Set Hier attribute modified status

Returns:
status of the modified flag

setRbacMetaObject

public void setRbacMetaObject(com.bea.ales.rbac.MetaObject a_meta)
Set RBAC MetaObject implementation to use

Parameters:
a_meta - metaobject implementation to use

setSelectedNewChildren

public void setSelectedNewChildren(java.util.List a_selectedNewChildren)
Set new children



Copyright © 2007 BEA Systems Inc. All Rights Reserved.