Class AlertRecordRef

java.lang.Object
com.kingsrook.qqq.backend.core.alerts.AlertRecordRef
All Implemented Interfaces:
Serializable

public class AlertRecordRef extends Object implements Serializable
A record that an alert is about. The label is internal (shown in-app to users who can see the record), never sent to an external channel.
See Also:
  • Constructor Details

    • AlertRecordRef

      public AlertRecordRef()
      Constructor
    • AlertRecordRef

      public AlertRecordRef(String tableName, Serializable primaryKey)
      Constructor
  • Method Details

    • of

      public static List<AlertRecordRef> of(String tableName, Collection<? extends Serializable> primaryKeys)
      One ref per primary key, all in the same table. Null keys are skipped.
    • of

      public static AlertRecordRef of(String tableName, Serializable primaryKey)
      One ref to one record.
    • equals

      public boolean equals(Object o)
      Two refs are equal when they name the same table and the same key (keys compared by their string form, so 1 and "1" match).
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTableName

      public String getTableName()
      Getter for tableName
    • setTableName

      public void setTableName(String tableName)
      Setter for tableName
    • withTableName

      public AlertRecordRef withTableName(String tableName)
      Fluent setter for tableName
    • getPrimaryKey

      public Serializable getPrimaryKey()
      Getter for primaryKey
    • setPrimaryKey

      public void setPrimaryKey(Serializable primaryKey)
      Setter for primaryKey
    • withPrimaryKey

      public AlertRecordRef withPrimaryKey(Serializable primaryKey)
      Fluent setter for primaryKey
    • getLabel

      public String getLabel()
      Getter for label
    • setLabel

      public void setLabel(String label)
      Setter for label
    • withLabel

      public AlertRecordRef withLabel(String label)
      Fluent setter for label (internal: shown in-app only, never sent out)