Interface IMonitorFieldSPI

    • Method Detail

      • setName

        IMonitorFieldSPI setName​(java.lang.String name)
        Sets the (localizable) name of this field.
        Parameters:
        name - the (localizable) name of this field.
        Returns:
        this field for chaining.
        Since:
        9.0.0
      • setDescription

        IMonitorFieldSPI setDescription​(java.lang.String description)
        Sets the (localizable description).
        Parameters:
        description - the (localizable description).
        Returns:
        this field for chaining.
        Since:
        9.0.0
      • setUnit

        IMonitorFieldSPI setUnit​(java.lang.String unit)
        Sets the (localizable) unit of this field.
        Parameters:
        unit - the (localizable) unit of this field.
        Returns:
        this field for chaining.
        Since:
        9.0.0
      • setStringResourcePath

        IMonitorFieldSPI setStringResourcePath​(java.lang.String stringResourcePath)
        Sets this field string resource path (used, if present, to localize strings).
        Parameters:
        stringResourcePath - this field string resource path (used, if present, to localize strings).
        Returns:
        this field for chaining.
        Since:
        9.0.0
      • addInnerField

        IMonitorFieldSPI addInnerField​(IMonitorField innerField)
        Adds the given inner field.
        Parameters:
        innerField - the inner field.
        Returns:
        this field.
        Throws:
        java.lang.IllegalStateException - if this field is not a complex field.
        java.lang.IllegalArgumentException - if the given inner field's identifier does not start with this field's identifier.
        Since:
        10.2.0
      • removeInnerField

        IMonitorFieldSPI removeInnerField​(java.lang.String innerFieldId)
        Removes the given inner field.
        Parameters:
        innerFieldId - the inner field identifier.
        Returns:
        this field.
        Throws:
        java.lang.IllegalStateException - if this field is not a complex field.
        Since:
        10.2.0
      • clearInnerFields

        IMonitorFieldSPI clearInnerFields()
        Removes all inner fields.
        Returns:
        this field
        Since:
        11.0.0
      • setDataType

        IMonitorFieldSPI setDataType​(IMonitorField.DataType dataType)
        Sets the data type for this field.
        Parameters:
        dataType - the data type.
        Returns:
        this field.
        Throws:
        java.lang.IllegalArgumentException - if the data type is changed.
        Since:
        10.2.0
      • setStandard

        IMonitorFieldSPI setStandard​(boolean isStandard)
        Sets this field either as standard or custom (non-standard).
        Parameters:
        isStandard - true to mark this field as standard, false to custom.
        Returns:
        this field for chaining.
        Since:
        11.0.0
      • isStandard

        boolean isStandard()
        Returns whether this is a standard field.
        Returns:
        whether this is a standard field.
        Since:
        11.0.0
      • getParent

        IMonitorField getParent()
        Returns the parent field.
        Returns:
        the parent field.
        Since:
        11.0.0
      • setIdentifiesUserOverride

        IMonitorFieldSPI setIdentifiesUserOverride​(java.lang.Boolean identifiesUserOverride)
        Sets whether this field identifies the user and must have its value modified when anonymized, according to configuration of the current environment.
        Parameters:
        identifiesUserDefinition - true if the field was set as identifies user in the current configurations, false if set as does not identify user in the current configurations, or null if there is nothing explicit in the current configuration and it must use the definition default.
        Since:
        12.3.0
      • getIdentifiesUserOverride

        java.lang.Boolean getIdentifiesUserOverride()
        Returns whether this field identifies the user and must have its value modified when anonymized according to configuration of the current environment.
        Returns:
        true if the field was set as identifies user in the current configurations, false if set as does not identify user in the current configurations, or null if there is nothing explicit in the current configuration and it must use the definition default.
        Since:
        12.3.0
      • setIdentifiesUserDefinition

        IMonitorFieldSPI setIdentifiesUserDefinition​(boolean identifiesUserDefinition)
        Sets whether this field identifies the user and must have its value modified when anonymized according to the definition of this field.
        Parameters:
        anonymousDefinition - true if the definition of this field declares it as identifies user, false otherwise.
        Since:
        12.3.0
      • isIdentifiesUserDefinition

        boolean isIdentifiesUserDefinition()
        Returns whether this field identifies the user and must have its value modified when anonymized according to the definition of this field.
        Returns:
        true if the definition of this field declares it as identifies user, false otherwise.
        Since:
        12.3.0