Class FilterDefinition

    • Field Detail

      • descriptionItem

        protected String descriptionItem
        name of the column to retrieve the names of the items placed in the filter panel's control related to the member variable nameColumnNo
      • valueItem

        protected String valueItem
        name of the column to retrieve the values of the items placed in the filter panel's control related to the member variable valueColumnNo
      • node

        protected org.dom4j.Element node
      • formName

        protected String formName
      • logger

        protected org.pentaho.platform.api.engine.ILogger logger
      • session

        protected org.pentaho.platform.api.engine.IPentahoSession session
    • Constructor Detail

      • FilterDefinition

        protected FilterDefinition​(org.dom4j.Element node,
                                   org.pentaho.platform.api.engine.IPentahoSession session,
                                   org.pentaho.platform.api.engine.ILogger logger)
        Ctor, duh.
        Parameters:
        node -
        formName -
        logger -
    • Method Detail

      • getTitle

        public String getTitle()
      • getName

        public String getName()
      • fromXml

        public void fromXml​(org.dom4j.Element xMLnode)
                     throws FilterPanelException
        order of precedence: session-attribute, global-attribute, data-solution, static-list
        Parameters:
        xMLnode -
        Throws:
        FilterPanelException
      • setDefaultValue

        public void setDefaultValue​(String[] defaultValue)
      • isValid

        public boolean isValid​(String[] values)
      • isValid

        protected boolean isValid​(String value)
      • getResultSet

        protected abstract org.pentaho.commons.connection.IPentahoResultSet getResultSet​(Map parameterProviders)
      • populate

        public boolean populate​(Map parameterProviders,
                                String[] value)
      • getXForm

        public void getXForm​(StringBuffer xformHeader,
                             StringBuffer xformBody)
                      throws org.pentaho.platform.api.engine.ComponentException
        Create the XForm header and XForm body, and place the results in the parameters xformHeader and xformBody.
        Parameters:
        xformHeader - StringBuffer containing the XForm header
        xformBody - StringBuffer containing the XForm body
        Throws:
        org.pentaho.platform.api.engine.ComponentException - if this.nameColumnNo is -1, this.valueColumnNo is -1, or the this.resultSet is null. nameColumnNo is likely to be -1 if this.descriptionItem does not correlate with the value of the element in the filter panel definition file and the name of a column in the resultSet. valueColumnNo is likely to be -1 if this.valueItem does not correlate with the value of the element in the filter panel definition file and the name of a column in the resultSet. resultSet is likely to be null if a result-set was not placed in session or global scope under the key identified by the or element in the filter panel definition file, or if the action sequence identified by element in the filter panel definition file failed to return a result set
      • main

        public static void main​(String[] args)