Record Class SharedCalendar
java.lang.Object
java.lang.Record
org.exoplatform.caldav.plugin.SharedCalendar
- Record Components:
userIdentityId- the owner, who is the callerusername- the owner's login, for the audit linescalendarId- the agenda calendarserverId- the server registrationhref- the collection the calendar is bound toendpoint- the owner's endpoint on that serverpair- the pair binding the calendar to the collectionimported- 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 Summary
ConstructorsConstructorDescriptionSharedCalendar(long userIdentityId, String username, long calendarId, long serverId, String href, CalDavEndpoint endpoint, org.exoplatform.caldav.model.CalendarSync pair, boolean imported) Creates an instance of aSharedCalendarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecalendarIdrecord component.endpoint()Returns the value of theendpointrecord component.final 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.booleanimported()Returns the value of theimportedrecord component.org.exoplatform.caldav.model.CalendarSyncpair()Returns the value of thepairrecord component.longserverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theuserIdentityIdrecord component.username()Returns the value of theusernamerecord component.
-
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 aSharedCalendarrecord class.- Parameters:
userIdentityId- the value for theuserIdentityIdrecord componentusername- the value for theusernamerecord componentcalendarId- the value for thecalendarIdrecord componentserverId- the value for theserverIdrecord componenthref- the value for thehrefrecord componentendpoint- the value for theendpointrecord componentpair- the value for thepairrecord componentimported- the value for theimportedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
userIdentityId
public long userIdentityId()Returns the value of theuserIdentityIdrecord component.- Returns:
- the value of the
userIdentityIdrecord component
-
username
-
calendarId
public long calendarId()Returns the value of thecalendarIdrecord component.- Returns:
- the value of the
calendarIdrecord component
-
serverId
-
href
-
endpoint
-
pair
-
imported
-