Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.trees.ui.managed
Class BaseHierarchyBean

java.lang.Object
  extended by oracle.apps.fnd.applcore.trees.ui.managed.TreeBackingBean
      extended by oracle.apps.fnd.applcore.trees.ui.managed.BaseHierarchyBean
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddTreeNodeHelper, BaseHierBean, CreateTreeNodeHandler, DeleteTreeNodeHandler, DuplicateTreeNodeHandler, HierarchyHandler, RemoveTreeNodeHandler

public class BaseHierarchyBean
extends TreeBackingBean
implements java.io.Serializable

JSF managed bean extension for implementing some API's for hierarchies.

Author:
Abhay K Kumar <abhay.k.kumar&064;oracle.com>
See Also:
Serialized Form

Constructor Summary
BaseHierarchyBean()
          Constructor for the Base Hierarchy.
 
Method Summary
 void clearNodeParameter()
          Clears the Node specific parameters once the node Operation is done/cancelled.
protected  java.lang.String getDisplayableMessage(oracle.jbo.JboException jbe)
           
 java.util.List<org.apache.commons.beanutils.DynaBean[]> getSelectedTreeComponetNodes(org.apache.myfaces.trinidad.component.UIXTree treeComponent)
          Gets the Selected Tree Node for which action need to be performed .
protected  java.util.List<org.apache.commons.beanutils.DynaBean> populateTreeNodeHierarchy(java.lang.String treeStructureCode, java.lang.String treeCode, java.lang.String treeVersionId)
          Populate the tree Nodes.
protected  TreeStructure populateTreeStructure(java.lang.String treeStructureCode, oracle.jbo.server.ApplicationModuleImpl am)
          Populate the tree Structure.
 void putDialogParameters(org.apache.commons.beanutils.DynaBean[] selectedNodePair, TreeStructure treeStructure, java.util.Map<java.lang.String,Tree> treesMap, java.lang.String treeCode, java.lang.String treeVersionId, UIModelConstants.SelectedNodeAction selectedAction)
          Put the parameters in Process Scope for Addition of Node.
 java.lang.String[] setPrimaryKeysEndVal(java.util.List<Attribute> pkAttrs, org.apache.commons.beanutils.DynaBean treeNode)
          Sets the primary key attributesEnd Value for the tree Node.
 java.lang.String[] setPrimaryKeysStartVal(java.util.List<Attribute> pkAttrs, org.apache.commons.beanutils.DynaBean treeNode)
          Sets the primary key attributes Start value for the tree Node.
 java.util.List<org.apache.commons.beanutils.DynaBean> sortDynaBeanNodes(java.util.List<Attribute> pkAttrs, java.util.List<org.apache.commons.beanutils.DynaBean> childrenOfRangeNode)
          Sort all the DynaBeans Tree Node so that proper range can be set.
 java.lang.String validateTreeNode(java.util.List<org.apache.commons.beanutils.DynaBean[]> selectedTreeNodes, UIModelConstants.SelectedNodeAction selectedAction, java.lang.String treeVersionId, boolean multipleRootNodeFlag)
          Validates a Tree Node operation whether it is permitted or not.
 
Methods inherited from class oracle.apps.fnd.applcore.trees.ui.managed.TreeBackingBean
evaluateExpr, getBindingContainer, getCentralTreeNodeAM, getCreateTreeAM, getHierarchyAM, getRootAM, getTreeStructureAM, getTreeStructureAuditAM, noActionMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseHierarchyBean

public BaseHierarchyBean()
Constructor for the Base Hierarchy.

Method Detail

populateTreeStructure

protected TreeStructure populateTreeStructure(java.lang.String treeStructureCode,
                                              oracle.jbo.server.ApplicationModuleImpl am)
Populate the tree Structure. This will populate the tree Structure using Tree Structure MetaData Services

Parameters:
treeStructureCode - Tree Structure Code
Returns:
Tree Structure metaData's run time representation

populateTreeNodeHierarchy

protected java.util.List<org.apache.commons.beanutils.DynaBean> populateTreeNodeHierarchy(java.lang.String treeStructureCode,
                                                                                          java.lang.String treeCode,
                                                                                          java.lang.String treeVersionId)
Populate the tree Nodes. This will populate the tree Nodes hierarchy

Parameters:
treeStructureCode - String for Tree Structure Code
treeCode - String for Tree Code
treeVersionId - String for Tree Version ID
Returns:
RootNode Dyan Bean with all the childrens populated

putDialogParameters

public void putDialogParameters(org.apache.commons.beanutils.DynaBean[] selectedNodePair,
                                TreeStructure treeStructure,
                                java.util.Map<java.lang.String,Tree> treesMap,
                                java.lang.String treeCode,
                                java.lang.String treeVersionId,
                                UIModelConstants.SelectedNodeAction selectedAction)
Put the parameters in Process Scope for Addition of Node.

Parameters:
selectedNodePair - the Selected Tree Node parent Node pair Dyna Bean array
treeStructure - Tree Structure metadata
treesMap - Map representing Tree Code and Tree as pair
treeCode - in String format
treeVersionId - in string format
selectedAction - selected action indicator

getSelectedTreeComponetNodes

public java.util.List<org.apache.commons.beanutils.DynaBean[]> getSelectedTreeComponetNodes(org.apache.myfaces.trinidad.component.UIXTree treeComponent)
Gets the Selected Tree Node for which action need to be performed .

Parameters:
treeComponent - UIX component for Tree or TreeTable
Returns:
List of pair of DynaBean for selected Node and parent of selected Tree Node in the Hierarchy

sortDynaBeanNodes

public java.util.List<org.apache.commons.beanutils.DynaBean> sortDynaBeanNodes(java.util.List<Attribute> pkAttrs,
                                                                               java.util.List<org.apache.commons.beanutils.DynaBean> childrenOfRangeNode)
Sort all the DynaBeans Tree Node so that proper range can be set.

Parameters:
pkAttrs - Primary Key Attributes fo the Data Source for this Node
childrenOfRangeNode - List of tree nodes which need to be sorted
Returns:
List of sorted Tree Node Dyna Bean

setPrimaryKeysStartVal

public java.lang.String[] setPrimaryKeysStartVal(java.util.List<Attribute> pkAttrs,
                                                 org.apache.commons.beanutils.DynaBean treeNode)
Sets the primary key attributes Start value for the tree Node.

Parameters:
pkAttrs - List of primary key attributes for the dataSource corresponding to this node
treeNode - Tree Node dynaBean
Returns:
Array of Primary key Values

setPrimaryKeysEndVal

public java.lang.String[] setPrimaryKeysEndVal(java.util.List<Attribute> pkAttrs,
                                               org.apache.commons.beanutils.DynaBean treeNode)
Sets the primary key attributesEnd Value for the tree Node.

Parameters:
pkAttrs - List of primary key attributes for the dataSource corresponding to this node
treeNode - Tree Node dynaBean
Returns:
Array of Primary key Values

clearNodeParameter

public void clearNodeParameter()
Clears the Node specific parameters once the node Operation is done/cancelled.


validateTreeNode

public java.lang.String validateTreeNode(java.util.List<org.apache.commons.beanutils.DynaBean[]> selectedTreeNodes,
                                         UIModelConstants.SelectedNodeAction selectedAction,
                                         java.lang.String treeVersionId,
                                         boolean multipleRootNodeFlag)
Validates a Tree Node operation whether it is permitted or not.

Parameters:
selectedTreeNodes - List of Selected node and its parent pair
selectedAction - selected node action indicator
treeVersionId - Tree Version Id for the actual tree
multipleRootNodeFlag - true when multiple root node is allowed
Returns:
the Error messsage if validation fails

getDisplayableMessage

protected java.lang.String getDisplayableMessage(oracle.jbo.JboException jbe)

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.