Record Class SharedCalendar

java.lang.Object
java.lang.Record
org.exoplatform.caldav.plugin.SharedCalendar
Record Components:
userIdentityId - the owner, who is the caller
username - the owner's login, for the audit lines
calendarId - the agenda calendar
serverId - the server registration
href - the collection the calendar is bound to
endpoint - the owner's endpoint on that server
pair - the pair binding the calendar to the collection
imported - true for an imported collection, whose ownership on the server must be confirmed before its access list is read or anything is changed

public record SharedCalendar(long userIdentityId, String username, long calendarId, long serverId, String href, CalDavEndpoint endpoint, org.exoplatform.caldav.model.CalendarSync pair, boolean imported) extends Record
A calendar of the caller's being shared, resolved and checked by the host: the caller owns it in eXo, their account is connected, and it is bound to a collection eXo created or to an imported one. The collection was resolved from the pair, never named by the request.
  • Constructor Details

    • SharedCalendar

      public SharedCalendar(long userIdentityId, String username, long calendarId, long serverId, String href, CalDavEndpoint endpoint, org.exoplatform.caldav.model.CalendarSync pair, boolean imported)
      Creates an instance of a SharedCalendar record class.
      Parameters:
      userIdentityId - the value for the userIdentityId record component
      username - the value for the username record component
      calendarId - the value for the calendarId record component
      serverId - the value for the serverId record component
      href - the value for the href record component
      endpoint - the value for the endpoint record component
      pair - the value for the pair record component
      imported - the value for the imported record component
  • 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.
    • userIdentityId

      public long userIdentityId()
      Returns the value of the userIdentityId record component.
      Returns:
      the value of the userIdentityId record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • calendarId

      public long calendarId()
      Returns the value of the calendarId record component.
      Returns:
      the value of the calendarId record component
    • serverId

      public long serverId()
      Returns the value of the serverId record component.
      Returns:
      the value of the serverId record component
    • href

      public String href()
      Returns the value of the href record component.
      Returns:
      the value of the href record component
    • endpoint

      public CalDavEndpoint endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • pair

      public org.exoplatform.caldav.model.CalendarSync pair()
      Returns the value of the pair record component.
      Returns:
      the value of the pair record component
    • imported

      public boolean imported()
      Returns the value of the imported record component.
      Returns:
      the value of the imported record component