Record Class HideCalendarRequest

java.lang.Object
java.lang.Record
org.exoplatform.caldav.rest.model.HideCalendarRequest
Record Components:
calendarId - the calendar's identity, exactly as GET /caldav/rest/calendars returned it

public record HideCalendarRequest(String calendarId) extends Record
What the browser sends to hide a calendar shared with the user (EXO-90239).

A body rather than a path segment or a query parameter, because the identifier is a collection href — slashes, and on Stalwart a percent-encoded login (/dav/cal/alice%40stalwart.local/default/). In a path it is rejected before any handler runs, the firewall refusing an encoded slash and an encoded percent alike; in a query it is encoded twice and decoded once. A JSON body carries it as the calendar list answered it, which is the only form the service accepts: the id is matched against the user's own current listing, never trusted further.

  • Constructor Details

    • HideCalendarRequest

      public HideCalendarRequest(String calendarId)
      Creates an instance of a HideCalendarRequest record class.
      Parameters:
      calendarId - the value for the calendarId 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • calendarId

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