Record Class BlueMindSessionKey

java.lang.Object
java.lang.Record
org.exoplatform.bluemind.client.model.BlueMindSessionKey
Record Components:
server - the declared server registration, as the consumer identifies it (the calendar side's server id, the mail connector's id)
exoLogin - the eXo login whose credentials open the session; blank means the call cannot be keyed and opens its own session
targetAccount - the account those credentials address on that server; blank means the call cannot be keyed
origin - the consumer's login origin

public record BlueMindSessionKey(String server, String exoLogin, String targetAccount, String origin) extends Record
Who a kept session acts as — explicit, equals-compared fields, never a folded hash.

Handed to another account, a session key is not a stale answer: it is somebody else's identity. So the key names the declared server, the eXo user the credentials are produced for, and the account those credentials address on that server — the user's own for a personal provider, the impersonated target for the technical-account one — so that the same eXo user pointed at another mailbox is another entry. The origin keeps two consumers of one node (calendar, mail) from presenting each other's sessions, whose audit trail on BlueMind names the consumer.

  • Constructor Details

    • BlueMindSessionKey

      public BlueMindSessionKey(String server, String exoLogin, String targetAccount, String origin)
      Creates an instance of a BlueMindSessionKey record class.
      Parameters:
      server - the value for the server record component
      exoLogin - the value for the exoLogin record component
      targetAccount - the value for the targetAccount record component
      origin - the value for the origin 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • server

      public String server()
      Returns the value of the server record component.
      Returns:
      the value of the server record component
    • exoLogin

      public String exoLogin()
      Returns the value of the exoLogin record component.
      Returns:
      the value of the exoLogin record component
    • targetAccount

      public String targetAccount()
      Returns the value of the targetAccount record component.
      Returns:
      the value of the targetAccount record component
    • origin

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