Class TableSourceFilter

    • Constructor Detail

      • TableSourceFilter

        public TableSourceFilter()
    • Method Detail

      • getQueryFilter

        public IQueryFilter getQueryFilter​(QueryField queryField,
                                           IQueryValue queryValue)
                                    throws PortalException
        Creates a query filter, filtering the query field by the value, according to this filter definitions.
        Parameters:
        queryField - the query field.
        queryValue - the query value.
        Returns:
        the query filter.
        Throws:
        PortalException
        Since:
        4.0.4
      • calculateFilterOperator

        protected String calculateFilterOperator​(Node filterNode)
                                          throws PortalException
        Analyzes this filter and returns the operator that should be used with it.
        Parameters:
        filterNode - the filter definition node.
        Returns:
        the filter operator.
        Throws:
        PortalException
        Since:
        4.0.4
      • convertOperatorStandardValue

        protected String convertOperatorStandardValue​(String operator)
      • calculateFilterValue

        protected IQueryValue calculateFilterValue​(Node filterNode)
                                            throws PortalException
        Analyzes this filter and returns the value that should be used with it.
        Parameters:
        filterNode - the filter definition node.
        Returns:
        the filter value.
        Throws:
        PortalException
        Since:
        4.0.4
      • convertFilterStandardValue

        protected Object convertFilterStandardValue​(String value,
                                                    Node filterNode)
                                             throws PortalException
        Checks and converts the filter "standard" value to real value.
        Parameters:
        value -
        filterNode -
        Returns:
        Throws:
        PortalException
        Since:
        4.0.4
      • shouldHideAllResults

        public boolean shouldHideAllResults()
      • getFieldId

        public String getFieldId()
      • setFieldId

        public void setFieldId​(String fieldId)
      • getOperator

        public String getOperator()
      • setOperator

        public void setOperator​(String operator)
      • isOrNull

        public boolean isOrNull()
      • setOrNull

        public void setOrNull​(boolean orNull)
      • setParameters

        public void setParameters​(IParameters parameters)
      • isRequired

        public boolean isRequired()
      • setRequired

        public void setRequired​(boolean required)
      • setFilterValue

        public void setFilterValue​(IQueryValue value)
      • isValueInLookup

        public boolean isValueInLookup()
      • setValueInLookup

        public void setValueInLookup​(boolean valueInLookup)
      • isEnabled

        public boolean isEnabled()
                          throws PortalException
        Description copied from interface: ISourceFilter
        Returns if this filter is enabled. If not enabled, this filter should be ignored, as if it was not present.
        Returns:
        true if this filter is enabled, false otherwise.
        Throws:
        PortalException