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) for CalendarShares.ShareeKind.EVERYONE, or a fixed key naming the mode for CalendarShares.ShareeKind.PUBLISHED_LINK, never the link's secret
kind - who the principal is to eXo
users - the eXo users connected to the server as that principal — several when they share one login — empty unless CalendarShares.ShareeKind.EXO_USERS
displayName - what to call a principal eXo cannot name as a user: the server's DAV:displayname, else the decoded last segment of its path; null for eXo users, for everyone and for a published link
access - what the entries grant
removable - whether eXo may remove the grant: a read-only grant to eXo users, that the server lets be changed
publishedLink - how a link BlueMind published gives access; null unless CalendarShares.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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • principal

      public String principal()
      Returns the value of the principal record component.
      Returns:
      the value of the principal record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • users

      public List<CalendarShares.ShareUser> users()
      Returns the value of the users record component.
      Returns:
      the value of the users record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • access

      public CalendarShares.ShareAccess access()
      Returns the value of the access record component.
      Returns:
      the value of the access record component
    • removable

      public boolean removable()
      Returns the value of the removable record component.
      Returns:
      the value of the removable record component
    • publishedLink

      public CalendarShares.PublishedLinkMode publishedLink()
      Returns the value of the publishedLink record component.
      Returns:
      the value of the publishedLink record component