@geogirafe/lib-geoportal
    Preparing search index...

    Class BaseFilterCondition<PropertyType>Abstract

    Base class for all filter conditions.

    Type Parameters

    • PropertyType

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • PropertyType

      Parameters

      • property: string
      • operator:
            | "eq"
            | "neq"
            | "gt"
            | "gte"
            | "lt"
            | "lte"
            | "like"
            | "nlike"
            | "in"
            | "nin"
            | "before"
            | "after"
            | "between"
            | "nbetween"
            | "nul"
            | "nnul"
            | "intersects"
            | "within"
            | "contains"
      • Optionalvalue: string
      • Optionalvalue2: string
      • OptionalpropertyType: PropertyType
      • OptionalpropertyTypeGroup: AttributeTypeGroup

      Returns BaseFilterCondition<PropertyType>

    Properties

    operator:
        | "eq"
        | "neq"
        | "gt"
        | "gte"
        | "lt"
        | "lte"
        | "like"
        | "nlike"
        | "in"
        | "nin"
        | "before"
        | "after"
        | "between"
        | "nbetween"
        | "nul"
        | "nnul"
        | "intersects"
        | "within"
        | "contains"
    property: string
    propertyType?: PropertyType
    propertyTypeGroup?: AttributeTypeGroup
    value: string
    value2: string

    Accessors

    • get supportedOperators(): {
          displayName: string;
          operator: | "eq"
          | "neq"
          | "gt"
          | "gte"
          | "lt"
          | "lte"
          | "like"
          | "nlike"
          | "in"
          | "nin"
          | "before"
          | "after"
          | "between"
          | "nbetween"
          | "nul"
          | "nnul"
          | "intersects"
          | "within"
          | "contains";
      }[]

      Returns the supported operators for the given filter class.

      Returns {
          displayName: string;
          operator:
              | "eq"
              | "neq"
              | "gt"
              | "gte"
              | "lt"
              | "lte"
              | "like"
              | "nlike"
              | "in"
              | "nin"
              | "before"
              | "after"
              | "between"
              | "nbetween"
              | "nul"
              | "nnul"
              | "intersects"
              | "within"
              | "contains";
      }[]

    Methods

    • Generates a simple text representation of the filter, for example, "attributeName [attributeType] = value" Needs the context to translate the operator and other terms. If instead of the attribute name and type, an alias or translated name should be displayed, provide the string via the optional propertyDisplayName parameter

      Parameters

      Returns string

    • Returns the supported operators for the given attribute type. This function supports mapping for the three basic attribute types: string, number and date. More diverse types must be mapped in the subclass.

      Parameters

      • attributeType: string

      Returns {
          displayName: string;
          operator:
              | "eq"
              | "neq"
              | "gt"
              | "gte"
              | "lt"
              | "lte"
              | "like"
              | "nlike"
              | "in"
              | "nin"
              | "before"
              | "after"
              | "between"
              | "nbetween"
              | "nul"
              | "nnul"
              | "intersects"
              | "within"
              | "contains";
      }[]