Package org.exoplatform.caldav.model
Record Class ShareeSubscription
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.ShareeSubscription
- Record Components:
ownerUsername- the owner's login, for the audit line- the colleague's social identity- the colleague's eXo login, which the credentials provider maps to their account on the server- the directory entry uid eXo recorded for the colleagueserverId- the server key, zero for the legacy propertycontainerUid- the shared calendar's BlueMind container uid
public record ShareeSubscription(String ownerUsername, long shareeIdentityId, String shareeUsername, String shareeUid, long serverId, String containerUid)
extends Record
A share as the owner's grant or revoke knows it, with everything the
colleague's subscription needs and the audit line names.
-
Constructor Summary
ConstructorsConstructorDescriptionShareeSubscription(String ownerUsername, long shareeIdentityId, String shareeUsername, String shareeUid, long serverId, String containerUid) Creates an instance of aShareeSubscriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerUidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theownerUsernamerecord component.longserverId()Returns the value of theserverIdrecord component.longReturns the value of theshareeIdentityIdrecord component.Returns the value of theshareeUidrecord component.Returns the value of theshareeUsernamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShareeSubscription
public ShareeSubscription(String ownerUsername, long shareeIdentityId, String shareeUsername, String shareeUid, long serverId, String containerUid) Creates an instance of aShareeSubscriptionrecord class.- Parameters:
ownerUsername- the value for theownerUsernamerecord componentshareeIdentityId- the value for theshareeIdentityIdrecord componentshareeUsername- the value for theshareeUsernamerecord componentshareeUid- the value for theshareeUidrecord componentserverId- the value for theserverIdrecord componentcontainerUid- the value for thecontainerUidrecord 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 '=='. -
ownerUsername
Returns the value of theownerUsernamerecord component.- Returns:
- the value of the
ownerUsernamerecord component
-
serverId
public long serverId()Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-
containerUid
Returns the value of thecontainerUidrecord component.- Returns:
- the value of the
containerUidrecord component
-