Package org.exoplatform.agenda.model
Record Class MailInvitation
java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.MailInvitation
- Record Components:
username- the user who asked, the only person the landing acts forattendeeAddress- the address of the user's own mailbox, the one the invitation names them by; may be nullmethod- the iTIP method as the reader read it, upper-cased, null when the object names noneuid- the event's UID, as the reader read itrecurrenceId- the RECURRENCE-ID as written when the mail is about one occurrence, null for a series or a single eventsequence- the SEQUENCE as the reader read itresponse- the answer given, null when the user only asked to add or remove the eventicalendar- the iCalendar object, as textfromOrganizer- whether the mail reader established that the mail is from the event's organiser (its From is the ORGANIZER's address alone): without it, an event the user holds is never changed or removed
public record MailInvitation(String username, String attendeeAddress, String method, String uid, String recurrenceId, int sequence, org.exoplatform.agenda.constant.EventAttendeeResponse response, String icalendar, boolean fromOrganizer)
extends Record
A calendar invitation a user received by mail and wants in their eXo
calendar — answered, added as it is, or removed because its organiser
cancelled it (EXO-90866). Agenda's own words for what the mail reader hands
over, so that only the plugin bridging the two add-ons names the reader's
types.
Every field but username is the sender's content or was read from
it: a claim, not a fact.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMailInvitation(String username, String attendeeAddress, String method, String uid, String recurrenceId, int sequence, org.exoplatform.agenda.constant.EventAttendeeResponse response, String icalendar, boolean fromOrganizer) Creates an instance of aMailInvitationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattendeeAddressrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromOrganizerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theicalendarrecord component.booleanWhether the message is its organiser's cancellation.method()Returns the value of themethodrecord component.Returns the value of therecurrenceIdrecord component.org.exoplatform.agenda.constant.EventAttendeeResponseresponse()Returns the value of theresponserecord component.intsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.username()Returns the value of theusernamerecord component.
-
Field Details
-
CANCEL
The iTIP method by which an organiser calls an event off.- See Also:
-
-
Constructor Details
-
MailInvitation
public MailInvitation(String username, String attendeeAddress, String method, String uid, String recurrenceId, int sequence, org.exoplatform.agenda.constant.EventAttendeeResponse response, String icalendar, boolean fromOrganizer) Creates an instance of aMailInvitationrecord class.- Parameters:
username- the value for theusernamerecord componentattendeeAddress- the value for theattendeeAddressrecord componentmethod- the value for themethodrecord componentuid- the value for theuidrecord componentrecurrenceId- the value for therecurrenceIdrecord componentsequence- the value for thesequencerecord componentresponse- the value for theresponserecord componenticalendar- the value for theicalendarrecord componentfromOrganizer- the value for thefromOrganizerrecord component
-
-
Method Details
-
isCancellation
public boolean isCancellation()Whether the message is its organiser's cancellation.- Returns:
- true for a CANCEL
-
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 '=='. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
attendeeAddress
Returns the value of theattendeeAddressrecord component.- Returns:
- the value of the
attendeeAddressrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
uid
Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
recurrenceId
Returns the value of therecurrenceIdrecord component.- Returns:
- the value of the
recurrenceIdrecord component
-
sequence
public int sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
response
public org.exoplatform.agenda.constant.EventAttendeeResponse response()Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-
icalendar
Returns the value of theicalendarrecord component.- Returns:
- the value of the
icalendarrecord component
-
fromOrganizer
public boolean fromOrganizer()Returns the value of thefromOrganizerrecord component.- Returns:
- the value of the
fromOrganizerrecord component
-