Record Class HideCalendarRequest
java.lang.Object
java.lang.Record
org.exoplatform.caldav.rest.model.HideCalendarRequest
- Record Components:
calendarId- the calendar's identity, exactly asGET /caldav/rest/calendarsreturned it
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 Summary
ConstructorsConstructorDescriptionHideCalendarRequest(String calendarId) Creates an instance of aHideCalendarRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HideCalendarRequest
Creates an instance of aHideCalendarRequestrecord class.- Parameters:
calendarId- the value for thecalendarIdrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
calendarId
Returns the value of thecalendarIdrecord component.- Returns:
- the value of the
calendarIdrecord component
-