Package org.exoplatform.agenda.model
Record Class ChannelShares
java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.ChannelShares
- Record Components:
- the access the channel's server holds that eXo does not recordmeetingCopies- whether the channel writes copies of the owner's eXo meetings into that calendar, which a share would expose
Everything a delivery channel has to say about one calendar when the owner
opens the Share drawer (EXO-90385), read in one ask.
Why the two travel together. Both answers come out of the same conversation with the channel's server — the same collection resolved, the same account asked — and a channel asked for them separately holds that conversation twice. On a calendar hosted on a remote CalDAV server that cost the drawer several seconds of pure latency, which is what this record removes: the channel reads once and answers both.
-
Constructor Summary
ConstructorsConstructorDescriptionChannelShares(List<ExternalShare> shares, boolean meetingCopies) Creates an instance of aChannelSharesrecord 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.booleanReturns the value of themeetingCopiesrecord component.shares()Returns the value of thesharesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChannelShares
Creates an instance of aChannelSharesrecord class.- Parameters:
shares- the value for thesharesrecord componentmeetingCopies- the value for themeetingCopiesrecord 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 '=='. -
meetingCopies
public boolean meetingCopies()Returns the value of themeetingCopiesrecord component.- Returns:
- the value of the
meetingCopiesrecord component
-