Package org.exoplatform.caldav.model
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
The method of an organiser's cancellation.- See Also:
-
-
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
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
-
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
-