Options
All
  • Public
  • Public/Protected
  • All
Menu

Class V2FilterProcessor

Converts a Filter into ReSTv2 FIQL parameters.

Hierarchy

  • V2FilterProcessor

Implements

Index

Constructors

constructor

Properties

Private searchPropertyAccessor

searchPropertyAccessor: ISearchPropertyAccessor

The accessor for Properties

Static NULL_DATE

NULL_DATE: string = "1970-01-01T00:00:00.000+0000"

Constant used to represent null dates in the V2 API. This must be explicitly set as the restriction value when using either the NULL or NOTNULL comparators on date fields.

Static NULL_VALUE

NULL_VALUE: string = ""

Constant used to represent null values in the V2 API.

Methods

Private applyDateConversion

  • applyDateConversion(value: any): any
  • If the given value is a date value, it is converted to be properly parsed by the OpenNMS ReST API, otherwise it is not modified.

    Parameters

    • value: any

      Any value which may need conversion.

    Returns any

getParameters

Private toFIQL

  • toFIQL(clauses: Clause[]): string

Private toFIQLComparator

  • toFIQLComparator(comparator: Comparator): "==" | "!=" | "=gt=" | "=lt=" | "=ge=" | "=le="
  • Given a comparator, convert it to a correspond comparator that can be used in the FIQL expression.

    Parameters

    Returns "==" | "!=" | "=gt=" | "=lt=" | "=ge=" | "=le="

Private toFIQLOperator

  • toFIQLOperator(operator: Operator): ";" | ","

Private toFIQLValue

Generated using TypeDoc