Package org.exoplatform.caldav.client
Record Class CalendarHome
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.CalendarHome
- Record Components:
principal- thecurrent-user-principalas a server-absolute raw path, or null when the implementer names none — a fake, a server spoken to by href alone; the HTTP client throws instead, because an account whose server will not say who it is has nothing to discover fromhref- the calendar home's server-absolute raw path, never null
What one discovery walk answers: who the authenticated user is on the
server, and where that user's calendars live.
The two travel together because the listing that follows needs both. The
home is where the collections are read from; the principal is what a
collection's DAV:owner is compared against to tell the user's own
calendars from one a colleague shared with them (EXO-90235). Answering
them from one walk rather than two keeps the principal PROPFIND from being
paid twice on every pass, and keeps the two facts from coming out of two
different conversations with the server.
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarHome(String principal, String href) Creates an instance of aCalendarHomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.Returns the value of theprincipalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-