com.ibm.commerce.bi.databeans

Class SegmentNotebookDataminingDatabean

  • java.lang.Object
    • com.ibm.commerce.bi.databeans.SegmentNotebookDataminingDatabean


  • public class SegmentNotebookDataminingDatabean
    extends java.lang.Object
    The data bean used to help populate the Business Intelligence Closed Loop JSP Page. This data bean reads data from three EJB beans (BIClosedLoopApplyMember, BIClosedLoopSegmentation and BIClosedLoopSegmentationRef) and transforms the data into a format usable by the JSP file.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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(javax.servlet.jsp.JspWriter out)
      Formats the data from the enterprise bean into a JavaScript array for use by the JSP file.
      java.lang.String getModelDescription(java.lang.String modelStr)
      Retrieves the segment description for the specified model and writes it to the JSP file.
      java.lang.String getModelOptions(java.lang.String modelStr, javax.servlet.jsp.JspWriter out)
      Creates the entries for the model select box in the JSP file.
      void init(CommandContext commandContext)
      First method called by the JSP file.
      boolean isThereAnyData()
      Checks to see if the EJB beans were able to find any data
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        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 the JSP file. This method initializes the data bean, calling the enterprise bean finder methods and loads the data.
        Parameters:
        CommandContext - commandContext The command context from Commerce.
      • 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 enterprise bean finder method which filters the output based on the selected model, segment and score.
        Parameters:
        String - modelStr The segmentation_id..
        String - segmentStr The segment_index.
        String - scoreStr The score (a number between 0 and 1).
        Returns:
        String A number representing to number of members in the filtered segment.
      • getJSArray

        public void getJSArray(javax.servlet.jsp.JspWriter out)
        Formats the data from the enterprise bean into a JavaScript array for use by the JSP file.
        Parameters:
        JspWriter - The response stream to the JSP.
      • getModelOptions

        public java.lang.String getModelOptions(java.lang.String modelStr,
                                                javax.servlet.jsp.JspWriter out)
        Creates the entries for the model select box in the JSP file.
        Parameters:
        String - modelStr The segmentation_id.
        JspWriter - out The response stream to the JSP file.
        Returns:
        String A String of HTML
      • isThereAnyData

        public boolean isThereAnyData()
        Checks to see if the EJB beans 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)
        Retrieves the segment description for the specified model and writes it to the JSP file.
        Parameters:
        modelStr - String The model for which to get the description
        Returns:
        String The model description