Enum Class SyncOrigin

java.lang.Object
java.lang.Enum<SyncOrigin>
org.exoplatform.caldav.model.SyncOrigin
All Implemented Interfaces:
Serializable, Comparable<SyncOrigin>, Constable

public enum SyncOrigin extends Enum<SyncOrigin>
Which side of the pair created the collection, and therefore which side owns its existence. The engine reads this before every structural decision — what may be created, what may be deleted, and what the inbound sweep must ignore — so it is recorded once, at binding time, and never inferred afterwards.
  • Enum Constant Details

    • EXO

      public static final SyncOrigin EXO
      eXo created the remote collection from a local personal calendar. The inbound sweep must skip these: they are already represented locally, and materialising them again would create a second eXo calendar, which the outbound half would then push as a third collection, and so on.
    • REMOTE

      public static final SyncOrigin REMOTE
      The collection existed on the server and eXo materialised a personal calendar for it. eXo may write events into it, but never delete the collection: it is the user's, created outside eXo and outliving it.
    • MIRROR

      public static final SyncOrigin MIRROR
      The single dedicated collection space events are copied into. Not a personal calendar on either side, excluded from the inbound sweep, and the only pair whose local calendar anchor is absent.
  • Method Details

    • values

      public static SyncOrigin[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SyncOrigin valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null