Record Class BlueMindExoRule
java.lang.Object
java.lang.Record
org.exoplatform.bluemind.mail.model.BlueMindExoRule
- Record Components:
id- BlueMind's id of the ruleref- eXo's reference of the rule, from the markerraw- the rule as BlueMind answered itrule- 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
ConstructorsConstructorDescriptionBlueMindExoRule(long id, String ref, tools.jackson.databind.node.ObjectNode raw, org.exoplatform.emailConnector.model.ServerRule rule) Creates an instance of aBlueMindExoRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.tools.jackson.databind.node.ObjectNoderaw()Returns the value of therawrecord component.booleanreadable()Whether the rule reads back in eXo's vocabulary.ref()Returns the value of therefrecord component.org.exoplatform.emailConnector.model.ServerRulerule()Returns the value of therulerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aBlueMindExoRulerecord class.
-
-
Method Details
-
readable
public boolean readable()Whether the rule reads back in eXo's vocabulary.- Returns:
- true when
rule()is known
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
raw
public tools.jackson.databind.node.ObjectNode raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-
rule
public org.exoplatform.emailConnector.model.ServerRule rule()Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-