com.ibm.commerce.bi.databeans
Class SegmentNotebookDataminingDatabean

java.lang.Object
  |
  +--com.ibm.commerce.bi.databeans.SegmentNotebookDataminingDatabean

public class SegmentNotebookDataminingDatabean
extends java.lang.Object

Databean used to help populate the BI Closed Loop JSP Page. This bean reads data from 3 EJBs (BIClosedLoopApplyMember, BIClosedLoopSegmentation and BIClosedLoopSegmentationRef) and transforms the data into a format usable by the JSP.


Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright field.
 
Constructor Summary
SegmentNotebookDataminingDatabean()
          Constructor which simply initializes instance variables.
  entries for the model select box on the JSP.
Method Summary
 java.lang.String getFilteredResults(java.lang.String modelStr, java.lang.String segmentStr, java.lang.String scoreStr)
          Called only if the user has clicked the Refresh button and has entered a score threshold.
 void getJSArray(JspWriter out)
          Formats the data from EJBs into a JavaScript array for use by the JSP.
 java.lang.String getModelDescription(java.lang.String modelStr)
          Retrieve the segment description for the specified modelStr and write it to the JSP.
 java.lang.String getModelOptions(java.lang.String modelStr, JspWriter out)
          Creates the
 void init( CommandContext commandContext)
          First method called by JSP.
 boolean isThereAnyData()
          Checks to see if the EJBs were able to find any data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM Copyright field.
See Also:
Constant Field Values
Constructor Detail

SegmentNotebookDataminingDatabean

public SegmentNotebookDataminingDatabean()
Constructor which simply initializes instance variables.
Method Detail

init

public void init(CommandContext commandContext)
First method called by JSP. This method initializes the databean, calling the EJB finder methods and loading the data.

getFilteredResults

public java.lang.String getFilteredResults(java.lang.String modelStr,
                                           java.lang.String segmentStr,
                                           java.lang.String scoreStr)
Called only if the user has clicked the Refresh button and has entered a score threshold. This will call an EJB finder method which filters the output based on the selected model, segment and score.
Returns:
String A number representing to number of members in the filtered segment.

getJSArray

public void getJSArray(JspWriter out)
Formats the data from EJBs into a JavaScript array for use by the JSP.
Returns:
String The javaScript array.

getModelOptions

public java.lang.String getModelOptions(java.lang.String modelStr,
                                        JspWriter out)
Creates the
entries for the model select box on the JSP.
Returns:
String A String of HTML
tags.

isThereAnyData

public boolean isThereAnyData()
Checks to see if the EJBs were able to find any data
Returns:
boolean True if there is data that can be used for BIClosedLoop

getModelDescription

public java.lang.String getModelDescription(java.lang.String modelStr)
Retrieve the segment description for the specified modelStr and write it to the JSP.
Parameters:
modelStr - String The model for which to get the description
Returns:
String The model description