Package org.exoplatform.caldav.model
Record Class CalendarShares
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.CalendarShares
- Record Components:
calendarId- the agenda calendar the collection belongs to- one entry per principal the list grants something to, in the order the server lists themsubscriptionRequired- whether a colleague sees the calendar only after subscribing to it on the server itself, as on BlueMindmeetingCopies- whether the calendar is also where eXo writes the copies of the user's eXo meetings, so that a colleague it is shared with sees those meetings too
public record CalendarShares(long calendarId, List<CalendarShares.CalendarSharee> sharees, boolean subscriptionRequired, boolean meetingCopies)
extends Record
Who an eXo personal calendar is shared with on its CalDAV server, as the
server's access control list says at the moment of asking (EXO-90253).
Never stored: the list belongs to the server, and anybody with another client can change it. Every answer is a fresh read.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne principal a calendar is shared with.static enumWhich of BlueMind's two kinds of published link a calendar was published as.static enumWhat a principal's entries grant.static enumWho a principal on a calendar's access list is, to eXo.static final recordAn eXo user, as a sharee or a candidate. -
Constructor Summary
ConstructorsConstructorDescriptionCalendarShares(long calendarId, List<CalendarShares.CalendarSharee> sharees) Shares on a server where a grant is visible to the colleague at once.CalendarShares(long calendarId, List<CalendarShares.CalendarSharee> sharees, boolean subscriptionRequired) Shares of a calendar holding no copies of the user's eXo meetings.CalendarShares(long calendarId, List<CalendarShares.CalendarSharee> sharees, boolean subscriptionRequired, boolean meetingCopies) Creates an instance of aCalendarSharesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecalendarIdrecord component.final 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.sharees()Returns the value of theshareesrecord component.booleanReturns the value of thesubscriptionRequiredrecord component.final StringtoString()Returns a string representation of this record class.withMeetingCopies(boolean holdsMeetingCopies) The same shares, saying whether the calendar also holds the copies of the user's eXo meetings.
-
Constructor Details
-
CalendarShares
Shares on a server where a grant is visible to the colleague at once.- Parameters:
calendarId- the agenda calendarsharees- the sharees
-
CalendarShares
public CalendarShares(long calendarId, List<CalendarShares.CalendarSharee> sharees, boolean subscriptionRequired) Shares of a calendar holding no copies of the user's eXo meetings.- Parameters:
calendarId- the agenda calendarsharees- the shareessubscriptionRequired- whether a colleague must subscribe on the server
-
CalendarShares
public CalendarShares(long calendarId, List<CalendarShares.CalendarSharee> sharees, boolean subscriptionRequired, boolean meetingCopies) Creates an instance of aCalendarSharesrecord class.- Parameters:
calendarId- the value for thecalendarIdrecord componentsharees- the value for theshareesrecord componentsubscriptionRequired- the value for thesubscriptionRequiredrecord componentmeetingCopies- the value for themeetingCopiesrecord component
-
-
Method Details
-
withMeetingCopies
The same shares, saying whether the calendar also holds the copies of the user's eXo meetings.- Parameters:
holdsMeetingCopies- whether eXo writes the meeting copies into it- Returns:
- the shares with that flag
-
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 '=='. -
calendarId
public long calendarId()Returns the value of thecalendarIdrecord component.- Returns:
- the value of the
calendarIdrecord component
-
subscriptionRequired
public boolean subscriptionRequired()Returns the value of thesubscriptionRequiredrecord component.- Returns:
- the value of the
subscriptionRequiredrecord component
-
meetingCopies
public boolean meetingCopies()Returns the value of themeetingCopiesrecord component.- Returns:
- the value of the
meetingCopiesrecord component
-