Record Class BlueMindExoRule

java.lang.Object
java.lang.Record
org.exoplatform.bluemind.mail.model.BlueMindExoRule
Record Components:
id - BlueMind's id of the rule
ref - eXo's reference of the rule, from the marker
raw - the rule as BlueMind answered it
rule - the rule in eXo's vocabulary; null when its conditions or actions are not a form eXo writes

public record BlueMindExoRule(long id, String ref, tools.jackson.databind.node.ObjectNode raw, org.exoplatform.emailConnector.model.ServerRule rule) extends Record
One filter rule of a BlueMind mailbox that carries eXo's marker: client exo and, in its clientProperties, eXo's kind and eXo's reference of the rule. The reference is what eXo finds it by; BlueMind's id is only what the next call addresses.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlueMindExoRule(long id, String ref, tools.jackson.databind.node.ObjectNode raw, org.exoplatform.emailConnector.model.ServerRule rule)
    Creates an instance of a BlueMindExoRule record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    id()
    Returns the value of the id record component.
    tools.jackson.databind.node.ObjectNode
    raw()
    Returns the value of the raw record component.
    boolean
    Whether the rule reads back in eXo's vocabulary.
    ref()
    Returns the value of the ref record component.
    org.exoplatform.emailConnector.model.ServerRule
    Returns the value of the rule record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BlueMindExoRule

      public BlueMindExoRule(long id, String ref, tools.jackson.databind.node.ObjectNode raw, org.exoplatform.emailConnector.model.ServerRule rule)
      Creates an instance of a BlueMindExoRule record class.
      Parameters:
      id - the value for the id record component
      ref - the value for the ref record component
      raw - the value for the raw record component
      rule - the value for the rule record component
  • Method Details

    • readable

      public boolean readable()
      Whether the rule reads back in eXo's vocabulary.
      Returns:
      true when rule() is known
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • ref

      public String ref()
      Returns the value of the ref record component.
      Returns:
      the value of the ref record component
    • raw

      public tools.jackson.databind.node.ObjectNode raw()
      Returns the value of the raw record component.
      Returns:
      the value of the raw record component
    • rule

      public org.exoplatform.emailConnector.model.ServerRule rule()
      Returns the value of the rule record component.
      Returns:
      the value of the rule record component