Record Class CalendarShares.CalendarSharee
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.CalendarShares.CalendarSharee
- Record Components:
principal- the principal's href as the server wrote it, the pseudo-principal's Clark name ({DAV:}all) forCalendarShares.ShareeKind.EVERYONE, or a fixed key naming the mode forCalendarShares.ShareeKind.PUBLISHED_LINK, never the link's secretkind- who the principal is to eXousers- the eXo users connected to the server as that principal — several when they share one login — empty unlessCalendarShares.ShareeKind.EXO_USERSdisplayName- what to call a principal eXo cannot name as a user: the server'sDAV:displayname, else the decoded last segment of its path; null for eXo users, for everyone and for a published linkaccess- what the entries grantremovable- whether eXo may remove the grant: a read-only grant to eXo users, that the server lets be changedpublishedLink- how a link BlueMind published gives access; null unlessCalendarShares.ShareeKind.PUBLISHED_LINK
- Enclosing class:
CalendarShares
public static record CalendarShares.CalendarSharee(String principal, CalendarShares.ShareeKind kind, List<CalendarShares.ShareUser> users, String displayName, CalendarShares.ShareAccess access, boolean removable, CalendarShares.PublishedLinkMode publishedLink)
extends Record
One principal a calendar is shared with.
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarSharee(String principal, CalendarShares.ShareeKind kind, List<CalendarShares.ShareUser> users, String displayName, CalendarShares.ShareAccess access, boolean removable) A sharee that is not a published link.CalendarSharee(String principal, CalendarShares.ShareeKind kind, List<CalendarShares.ShareUser> users, String displayName, CalendarShares.ShareAccess access, boolean removable, CalendarShares.PublishedLinkMode publishedLink) Creates an instance of aCalendarShareerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccess()Returns the value of theaccessrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of theprincipalrecord component.Returns the value of thepublishedLinkrecord component.booleanReturns the value of theremovablerecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Constructor Details
-
Method Details
-
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. -
principal
-
kind
-
users
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
access
-
removable
-
publishedLink
Returns the value of thepublishedLinkrecord component.- Returns:
- the value of the
publishedLinkrecord component
-