Package org.exoplatform.caldav.model
Record Class CalendarDeletionPlan
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.CalendarDeletionPlan
- Record Components:
claimed- whether a CalDAV binding exists for this calendar at allpropagates- whether confirming also deletes the remote collection — true only for a collection eXo created. A calendar the user made in their own client is never removed by eXo, and a dialog saying otherwise would promise to destroy something we will not touch.server- the server holding it, named in the warning so the user knows which account is affected; null when nothing is claimed
public record CalendarDeletionPlan(boolean claimed, boolean propagates, String server)
extends Record
What deleting an eXo calendar would also do on the remote side, so the page
can say it before the user confirms.
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarDeletionPlan(boolean claimed, boolean propagates, String server) Creates an instance of aCalendarDeletionPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclaimed()Returns the value of theclaimedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepropagatesrecord component.server()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CalendarDeletionPlan
Creates an instance of aCalendarDeletionPlanrecord class.- Parameters:
claimed- the value for theclaimedrecord componentpropagates- the value for thepropagatesrecord componentserver- the value for theserverrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
claimed
public boolean claimed()Returns the value of theclaimedrecord component.- Returns:
- the value of the
claimedrecord component
-
propagates
public boolean propagates()Returns the value of thepropagatesrecord component.- Returns:
- the value of the
propagatesrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-