Enum Class CaldavAnswerAdoptionService.Outcome

java.lang.Object
java.lang.Enum<CaldavAnswerAdoptionService.Outcome>
org.exoplatform.caldav.service.CaldavAnswerAdoptionService.Outcome
All Implemented Interfaces:
Serializable, Comparable<CaldavAnswerAdoptionService.Outcome>, Constable
Enclosing class:
CaldavAnswerAdoptionService

public static enum CaldavAnswerAdoptionService.Outcome extends Enum<CaldavAnswerAdoptionService.Outcome>
What one adoption pass over one object did.
  • Enum Constant Details

    • NOTHING

      public static final CaldavAnswerAdoptionService.Outcome NOTHING
      The object carries no answer eXo does not already hold.
    • ADOPTED

      public static final CaldavAnswerAdoptionService.Outcome ADOPTED
      At least one answer was read off the object and recorded in agenda.
    • FAILED

      public static final CaldavAnswerAdoptionService.Outcome FAILED
      An answer was found and recording it failed; nothing may overwrite it.
    • UNREADABLE

      public static final CaldavAnswerAdoptionService.Outcome UNREADABLE
      The object could not be read, so whether it carries an answer is unknown; nothing may overwrite it either.

      Its own outcome rather than NOTHING, and that is the whole point of it. "Nothing was answered here" and "I could not tell" lead to opposite decisions: the first lets the caller repair the copy back to what eXo holds, the second must not, because the copy may be the only record of an answer the user gave in their own client (EXO-89820).

  • Method Details

    • values

      public static CaldavAnswerAdoptionService.Outcome[] 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 CaldavAnswerAdoptionService.Outcome 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