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
shareeIdentityId - the colleague's social identity
shareeUsername - the colleague's eXo login, which the credentials provider maps to their account on the server
shareeUid - the directory entry uid eXo recorded for the colleague
serverId - the server key, zero for the legacy property
containerUid - 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 Details

    • ShareeSubscription

      public ShareeSubscription(String ownerUsername, long shareeIdentityId, String shareeUsername, String shareeUid, long serverId, String containerUid)
      Creates an instance of a ShareeSubscription record class.
      Parameters:
      ownerUsername - the value for the ownerUsername record component
      shareeIdentityId - the value for the shareeIdentityId record component
      shareeUsername - the value for the shareeUsername record component
      shareeUid - the value for the shareeUid record component
      serverId - the value for the serverId record component
      containerUid - the value for the containerUid record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ownerUsername

      public String ownerUsername()
      Returns the value of the ownerUsername record component.
      Returns:
      the value of the ownerUsername record component
    • shareeIdentityId

      public long shareeIdentityId()
      Returns the value of the shareeIdentityId record component.
      Returns:
      the value of the shareeIdentityId record component
    • shareeUsername

      public String shareeUsername()
      Returns the value of the shareeUsername record component.
      Returns:
      the value of the shareeUsername record component
    • shareeUid

      public String shareeUid()
      Returns the value of the shareeUid record component.
      Returns:
      the value of the shareeUid record component
    • serverId

      public long serverId()
      Returns the value of the serverId record component.
      Returns:
      the value of the serverId record component
    • containerUid

      public String containerUid()
      Returns the value of the containerUid record component.
      Returns:
      the value of the containerUid record component