it.eng.qbe.javascript
Class GenerateJavaScriptMenu

java.lang.Object
  extended by it.eng.qbe.javascript.GenerateJavaScriptMenu

Deprecated. This is an utility class to generate the Javascript code in JSP to handle the tree for field Selection, field Condition, field that are right value of a join

public class GenerateJavaScriptMenu
extends java.lang.Object

Author:
Andrea Zoppello

Constructor Summary
GenerateJavaScriptMenu(DataMartModel dataMartModel, javax.servlet.http.HttpServletRequest httpRequest)
          Deprecated.  
 
Method Summary
 java.lang.String condTree(ISingleDataMartWizardObject dataMartWizardObject, java.lang.String selectionTree)
          Deprecated.  
 java.lang.String condTreeSelectJoin(ISingleDataMartWizardObject dataMartWizardObject, java.lang.String selectionTree)
          Deprecated.  
 DataMartModel getDataMartModel()
          Deprecated.  
 java.lang.String selTree()
          Deprecated.  
 void setDataMartModel(DataMartModel dataMartModel)
          Deprecated.  
 java.lang.String writeApplicationMenuTree()
          Deprecated.  
 int writeConditionTree(ISingleDataMartWizardObject dataMartWizardObject, java.lang.String selectionTree, java.lang.StringBuffer aStringBuffer, java.lang.String nomeAlberoJavaScript, java.lang.String labelSottoAlberoFunzioni, int rootNode, int nodeCounter, boolean generateFieldsNode)
          Deprecated. Thi is the start funztion for generating the tree for Field Condition Selection
 int writeConditionTreeSelectJoin(ISingleDataMartWizardObject dataMartWizardObject, java.lang.String selectionTree, java.lang.StringBuffer aStringBuffer, java.lang.String nomeAlberoJavaScript, java.lang.String labelSottoAlberoFunzioni, int rootNode, int nodeCounter, boolean generateFieldsNode)
          Deprecated. Thi is the start funztion for generating the tree for Field that are right value of a join condition
 java.lang.String writeNavigationTreeFromClass(java.lang.String className, IURLGenerator fieldURLGenerator)
          Deprecated.  
 java.lang.String writeNavigationTreeFromClass(java.lang.String className, java.lang.String classAlias, IURLGenerator fieldURLGenerator)
          Deprecated.  
 int writeSelectionTree(java.lang.StringBuffer aStringBuffer, java.lang.String nomeAlberoJavaScript, java.lang.String labelSottoAlberoFunzioni, int rootNode, int nodeCounter, boolean generateFieldsNode)
          Deprecated. This is the start funztion for generating the tree for Field Selection
 java.lang.String writeTreeForClassSelection()
          Deprecated.  
 int writeTreeReachableFromClass(java.lang.StringBuffer aStringBuffer, java.lang.String nomeAlberoJavaScript, java.lang.String className, int rootNode, int nodeCounter, java.lang.String prefix, IURLGenerator fieldUrlGenerator)
          Deprecated. Recursive Function To write the tree of model navigable starting by className
 int writeWholeHibernateModelTree(java.lang.StringBuffer aStringBuffer, java.lang.String nomeAlberoJavaScript, java.lang.String labelSottoAlberoFunzioni, int rootNode, int nodeCounter, boolean generateFieldsNode, IURLGenerator aURLGenerator)
          Deprecated. Append to aStringBuffer the javascript code for the relative to the exploration of hibernate repository
 int writeWizardSubTree(java.lang.StringBuffer aStringBuffer, java.lang.String nomeAlberoJavaScript, java.lang.String labelSottoAlberoWizard, int rootNode, int nodeCounter)
          Deprecated. Append to aStringBuffer the javascript code for submenu related to wizards section
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateJavaScriptMenu

public GenerateJavaScriptMenu(DataMartModel dataMartModel,
                              javax.servlet.http.HttpServletRequest httpRequest)
Deprecated. 
Parameters:
dataMartModel - : The DatamartModel object reperesenting the datamart we're working on
httpRequest - : the httpRequest Object
Method Detail

writeTreeForClassSelection

public final java.lang.String writeTreeForClassSelection()
Deprecated. 

Returns:
the String with the Javascript code for Class Selection Tree

writeApplicationMenuTree

public final java.lang.String writeApplicationMenuTree()
Deprecated. 

Returns:
the String with the Javascript code that constitute the application menu ( Only in Web version )

selTree

public final java.lang.String selTree()
Deprecated. 
Returns:
the String with the Javascript code that constitute the tree for Field Selection

condTree

public final java.lang.String condTree(ISingleDataMartWizardObject dataMartWizardObject,
                                       java.lang.String selectionTree)
Deprecated. 
Returns:
the String with the Javascript code that constitute the tree for Field Condition

condTreeSelectJoin

public final java.lang.String condTreeSelectJoin(ISingleDataMartWizardObject dataMartWizardObject,
                                                 java.lang.String selectionTree)
Deprecated. 
Returns:
the String with the Javascript code that constitute the tree for Field that are right value of a join condition

writeConditionTreeSelectJoin

public final int writeConditionTreeSelectJoin(ISingleDataMartWizardObject dataMartWizardObject,
                                              java.lang.String selectionTree,
                                              java.lang.StringBuffer aStringBuffer,
                                              java.lang.String nomeAlberoJavaScript,
                                              java.lang.String labelSottoAlberoFunzioni,
                                              int rootNode,
                                              int nodeCounter,
                                              boolean generateFieldsNode)
Deprecated. 
Thi is the start funztion for generating the tree for Field that are right value of a join condition

Parameters:
dataMartWizardObject - The object representing the datamart
aStringBuffer - The StringBuffer were javascript code will be append
nomeAlberoJavaScript - the identifier of the tree in javascript
labelSottoAlberoFunzioni - a Label
rootNode - the index of the root note
nodeCounter - the counter of total node
generateFieldsNode - if true the fiells of Entitities of the datamart will be generated
Returns:
the node counter the counter of the node

writeConditionTree

public final int writeConditionTree(ISingleDataMartWizardObject dataMartWizardObject,
                                    java.lang.String selectionTree,
                                    java.lang.StringBuffer aStringBuffer,
                                    java.lang.String nomeAlberoJavaScript,
                                    java.lang.String labelSottoAlberoFunzioni,
                                    int rootNode,
                                    int nodeCounter,
                                    boolean generateFieldsNode)
Deprecated. 
Thi is the start funztion for generating the tree for Field Condition Selection

Parameters:
dataMartWizardObject - The object representing the datamart
aStringBuffer - The StringBuffer were javascript code will be append
nomeAlberoJavaScript - the identifier of the tree in javascript
labelSottoAlberoFunzioni - a Label
rootNode - the index of the root note
nodeCounter - the counter of total node
generateFieldsNode - if true the fiells of Entitities of the datamart will be generated
Returns:
the node counter the counter of the node

writeSelectionTree

public final int writeSelectionTree(java.lang.StringBuffer aStringBuffer,
                                    java.lang.String nomeAlberoJavaScript,
                                    java.lang.String labelSottoAlberoFunzioni,
                                    int rootNode,
                                    int nodeCounter,
                                    boolean generateFieldsNode)
Deprecated. 
This is the start funztion for generating the tree for Field Selection

Parameters:
aStringBuffer - The StringBuffer were javascript code will be append
nomeAlberoJavaScript - the identifier of the tree in javascript
labelSottoAlberoFunzioni - a Label
rootNode - the index of the root note
nodeCounter - the counter of total node
generateFieldsNode - if true the fiells of Entitities of the datamart will be generated
Returns:
the node counter the counter of the node

writeNavigationTreeFromClass

public final java.lang.String writeNavigationTreeFromClass(java.lang.String className,
                                                           IURLGenerator fieldURLGenerator)
Deprecated. 
Parameters:
className -
fieldURLGenerator -
Returns:

writeNavigationTreeFromClass

public final java.lang.String writeNavigationTreeFromClass(java.lang.String className,
                                                           java.lang.String classAlias,
                                                           IURLGenerator fieldURLGenerator)
Deprecated. 
Parameters:
className -
classAlias -
fieldURLGenerator -
Returns:

writeTreeReachableFromClass

public final int writeTreeReachableFromClass(java.lang.StringBuffer aStringBuffer,
                                             java.lang.String nomeAlberoJavaScript,
                                             java.lang.String className,
                                             int rootNode,
                                             int nodeCounter,
                                             java.lang.String prefix,
                                             IURLGenerator fieldUrlGenerator)
Deprecated. 
Recursive Function To write the tree of model navigable starting by className

Parameters:
aStringBuffer -
nomeAlberoJavaScript -
className -
rootNode -
nodeCounter -
prefix -
fieldUrlGenerator -
Returns:

writeWizardSubTree

public int writeWizardSubTree(java.lang.StringBuffer aStringBuffer,
                              java.lang.String nomeAlberoJavaScript,
                              java.lang.String labelSottoAlberoWizard,
                              int rootNode,
                              int nodeCounter)
Deprecated. 
Append to aStringBuffer the javascript code for submenu related to wizards section

Parameters:
aStringBuffer -
nomeAlberoJavaScript -
labelSottoAlberoWizard -
rootNode -
nodeCounter -
Returns:

writeWholeHibernateModelTree

public final int writeWholeHibernateModelTree(java.lang.StringBuffer aStringBuffer,
                                              java.lang.String nomeAlberoJavaScript,
                                              java.lang.String labelSottoAlberoFunzioni,
                                              int rootNode,
                                              int nodeCounter,
                                              boolean generateFieldsNode,
                                              IURLGenerator aURLGenerator)
Deprecated. 
Append to aStringBuffer the javascript code for the relative to the exploration of hibernate repository

Parameters:
aStringBuffer -
nomeAlberoJavaScript -
labelSottoAlberoFunzioni -
rootNode -
nodeCounter -
generateFieldsNode -
aURLGenerator -
Returns:

getDataMartModel

public DataMartModel getDataMartModel()
Deprecated. 
Returns:
the dataMartModel

setDataMartModel

public void setDataMartModel(DataMartModel dataMartModel)
Deprecated. 
Parameters:
dataMartModel -