Package org.exoplatform.agenda.model
Record Class LandedMailInvitation
java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.LandedMailInvitation
- Record Components:
eventId- the agenda event landed, removed or already heldlink- agenda's own page for the event, built from the platform's domain; null when the event was removed or no link can be builtremoved- true when the event was removed: its organiser cancelled italreadyHeld- true when nothing was written because the message names one of this deployment's own events, in agenda already
public record LandedMailInvitation(long eventId, String link, boolean removed, boolean alreadyHeld)
extends Record
What agenda did with an invitation received by mail (EXO-90866).
-
Constructor Summary
ConstructorsConstructorDescriptionLandedMailInvitation(long eventId, String link, boolean removed, boolean alreadyHeld) Creates an instance of aLandedMailInvitationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealreadyHeldrecord component.final booleanIndicates whether some other object is "equal to" this one.longeventId()Returns the value of theeventIdrecord component.final inthashCode()Returns a hash code value for this object.link()Returns the value of thelinkrecord component.booleanremoved()Returns the value of theremovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LandedMailInvitation
Creates an instance of aLandedMailInvitationrecord class.- Parameters:
eventId- the value for theeventIdrecord componentlink- the value for thelinkrecord componentremoved- the value for theremovedrecord componentalreadyHeld- the value for thealreadyHeldrecord component
-
-
Method Details
-
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 '=='. -
eventId
public long eventId()Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
removed
public boolean removed()Returns the value of theremovedrecord component.- Returns:
- the value of the
removedrecord component
-
alreadyHeld
public boolean alreadyHeld()Returns the value of thealreadyHeldrecord component.- Returns:
- the value of the
alreadyHeldrecord component
-