Enum Class ImapEventType

java.lang.Object
java.lang.Enum<ImapEventType>
io.jmix.imap.entity.ImapEventType
All Implemented Interfaces:
EnumClass<String>, Serializable, Comparable<ImapEventType>, Constable

public enum ImapEventType extends Enum<ImapEventType> implements EnumClass<String>
  • Enum Constant Details

    • NEW_EMAIL

      public static final ImapEventType NEW_EMAIL
      Event type to capture new message in folder
    • EMAIL_SEEN

      public static final ImapEventType EMAIL_SEEN
      Event type to capture mark message as read
    • NEW_ANSWER

      public static final ImapEventType NEW_ANSWER
      Event type to capture new reply for message
    • EMAIL_MOVED

      public static final ImapEventType EMAIL_MOVED
      Event type to capture move message to different folder
    • FLAGS_UPDATED

      public static final ImapEventType FLAGS_UPDATED
      Event type to capture any change in IMAP flags of message
    • EMAIL_DELETED

      public static final ImapEventType EMAIL_DELETED
      Event type to capture message removal
    • NEW_THREAD

      public static final ImapEventType NEW_THREAD
      Event type to capture new message thread in folder
  • Method Details

    • values

      public static ImapEventType[] 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 ImapEventType 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
    • getId

      public String getId()
      Specified by:
      getId in interface EnumClass<String>
    • getEventClass

      public Class<? extends BaseImapEvent> getEventClass()
    • fromId

      @Nullable public static ImapEventType fromId(String id)
    • getByEventType

      public static Collection<ImapEventType> getByEventType(Class<? extends BaseImapEvent> eventClass)