Record Class ForeignWriter

java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.ForeignWriter
Record Components:
authority - how the other deployment names itself in the copies it writes: the host and port of its configured domain, lower-cased, read off the event link its copies carry. Two deployments configured with the same address are indistinguishable, and none is reported as foreign then
lastSeen - when a copy of that deployment's was last read here, as milliseconds. Day-grained: the value answers "is this still happening", and an entry nothing has seen for a month is dropped, so the section empties on its own once the foreign copies are gone

public record ForeignWriter(String authority, long lastSeen) extends Record
Another eXo deployment seen writing meeting copies into an account on this server (EXO-89824).

Why this is worth a line in the drawer. Each mirror assumes it is the only writer of the copies in its collection: it lists them, compares each against what eXo would write, and repairs what diverges. A second deployment writing into the same CalDAV account breaks that premise, and the condition is invisible from inside either one — a foreign copy has no row in this database, so no query can see it, and on every screen it looks like an ordinary event. The inbound pass is the only place it shows, and until this record existed it showed only as a line in platform.log.

Evidence, not configuration. Nothing is imported, removed or repaired differently on the strength of an entry here, and there is no checkbox beside it: what to do with a foreign copy is a product decision nobody has taken, and the wrong one destroys real calendar entries. The resolution is an environment one — one of the two deployments moves to a different account — which is why the drawer states it in words rather than offering a control.

  • Constructor Summary

    Constructors
    Constructor
    Description
    ForeignWriter(String authority, long lastSeen)
    Creates an instance of a ForeignWriter record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the authority record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the lastSeen record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ForeignWriter

      public ForeignWriter(String authority, long lastSeen)
      Creates an instance of a ForeignWriter record class.
      Parameters:
      authority - the value for the authority record component
      lastSeen - the value for the lastSeen 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.
    • authority

      public String authority()
      Returns the value of the authority record component.
      Returns:
      the value of the authority record component
    • lastSeen

      public long lastSeen()
      Returns the value of the lastSeen record component.
      Returns:
      the value of the lastSeen record component