Enum Class ConflictResolution

java.lang.Object
java.lang.Enum<ConflictResolution>
com.tnsai.context.entity.ConflictResolution
All Implemented Interfaces:
Serializable, Comparable<ConflictResolution>, Constable

public enum ConflictResolution extends Enum<ConflictResolution>
Strategies for resolving conflicting attribute values from different sources.

When an entity is resolved from multiple sources (CRM, Slack, Email), attributes may have conflicting values. This enum defines how to handle such conflicts.

  • Enum Constant Details

    • MOST_RECENT

      public static final ConflictResolution MOST_RECENT
      Use the most recently observed value. Best for: Dynamic attributes that change frequently (status, last_activity)
    • HIGHEST_CONFIDENCE

      public static final ConflictResolution HIGHEST_CONFIDENCE
      Use the value with the highest confidence score. Best for: Verified data from authoritative sources
    • SOURCE_PRIORITY

      public static final ConflictResolution SOURCE_PRIORITY
      Use the value from the highest priority source. Requires: Source priority configuration Best for: When certain systems are more authoritative
    • KEEP_ALL

      public static final ConflictResolution KEEP_ALL
      Keep all conflicting values as a list. Best for: When all values are potentially valid (e.g., multiple phone numbers)
    • MANUAL

      public static final ConflictResolution MANUAL
      Require manual resolution - flag the conflict for human review. Best for: Critical attributes that need human verification
  • Method Details

    • values

      public static ConflictResolution[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConflictResolution valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null