Record Class MailInvitation
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.MailInvitation
- Record Components:
username- the user who asked, the only person the landing acts forattendeeAddress- the user's own mailbox address, possibly nullmethod- the iTIP method, upper-cased: REQUEST, PUBLISH, CANCEL…; null when the object names noneuid- the UID the reader showedsequence- the SEQUENCE the reader read, 0 when the message carries noneresponse- the answer, as agenda holds it; null to add or remove the event without answeringicalendar- the message's iCalendar object, as receivedfromOrganizer- whether the reader established that the mail is from the event's organiser (its From is the ORGANIZER's address alone): without it, a copy the user holds is never changed or removed
public record MailInvitation(String username, String attendeeAddress, String method, String uid, int sequence, org.exoplatform.agenda.constant.EventAttendeeResponse response, String icalendar, boolean fromOrganizer)
extends Record
A calendar invitation a user wants in their calendar — answered, added as it
is, or removed because its organiser cancelled it — as this add-on lands it
(EXO-90848). This add-on's own words for what the mail reader hands over, so
that nothing but the one bean conditional on the reader names a type of the
reader's: a bean whose signature did would make this whole add-on fail to
boot on a server without the mail reader installed, since Spring introspects
every method of every bean it creates.
The object is the sender's. The only person a landing acts for is
username, in their own calendar; the attendee address is that same
user's mailbox, the one the organiser invited.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 the organiser calling the event off.method()Returns the value of themethodrecord 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
-
-
Constructor Details
-
MailInvitation
public MailInvitation(String username, String attendeeAddress, String method, String uid, int sequence, org.exoplatform.agenda.constant.EventAttendeeResponse response, String icalendar, boolean fromOrganizer) Refuses an invitation missing what the landing needs.- Parameters:
username- the userattendeeAddress- their mailbox addressmethod- the iTIP methoduid- the event's UIDsequence- the SEQUENCEresponse- the answer, or nullicalendar- the objectfromOrganizer- whether the mail is from the event's organiser- Throws:
IllegalArgumentException- without a user, a UID or an object, or with an answer that is none
-
-
Method Details
-
isCancellation
public boolean isCancellation()Whether the message is the organiser calling the event off.- Returns:
- true for a CANCEL
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
username
-
attendeeAddress
Returns the value of theattendeeAddressrecord component.- Returns:
- the value of the
attendeeAddressrecord component
-
method
-
uid
-
sequence
-
response
-
icalendar
-
fromOrganizer
public boolean fromOrganizer()Returns the value of thefromOrganizerrecord component.- Returns:
- the value of the
fromOrganizerrecord component
-