Package org.exoplatform.caldav.plugin
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
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 '=='. -
userIdentityId
public long userIdentityId()Returns the value of theuserIdentityIdrecord component.- Returns:
- the value of the
userIdentityIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
calendarId
public long calendarId()Returns the value of thecalendarIdrecord component.- Returns:
- the value of the
calendarIdrecord component
-
serverId
public long serverId()Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
pair
public org.exoplatform.caldav.model.CalendarSync pair()Returns the value of thepairrecord component.- Returns:
- the value of the
pairrecord component
-
imported
public boolean imported()Returns the value of theimportedrecord component.- Returns:
- the value of the
importedrecord component
-