Class ImapFlag

java.lang.Object
io.jmix.imap.flags.ImapFlag
All Implemented Interfaces:
Serializable

public class ImapFlag extends Object implements Serializable
Unified IMAP Flag
See Also:
  • Field Details

    • systemFlag

      protected final ImapFlag.SystemFlag systemFlag
    • name

      protected final String name
    • SEEN

      public static final ImapFlag SEEN
      Corresponds to standard Flags.Flag.SEEN flag
    • ANSWERED

      public static final ImapFlag ANSWERED
      Corresponds to standard Flags.Flag.ANSWERED flag
    • DRAFT

      public static final ImapFlag DRAFT
      Corresponds to standard Flags.Flag.DRAFT flag
    • DELETED

      public static final ImapFlag DELETED
      Corresponds to standard Flags.Flag.DELETED flag
    • IMPORTANT

      public static final ImapFlag IMPORTANT
      Corresponds to standard Flags.Flag.FLAGGED flag
    • RECENT

      public static final ImapFlag RECENT
      Corresponds to standard Flags.Flag.RECENT flag
  • Constructor Details

    • ImapFlag

      public ImapFlag(String name)
      Constructs custom flag with specified name
      Parameters:
      name - custom flag name
    • ImapFlag

      public ImapFlag(ImapFlag.SystemFlag systemFlag)
      Constructs standard flag with specified ImapFlag.SystemFlag value
      Parameters:
      systemFlag - standard flag
    • ImapFlag

      protected ImapFlag(ImapFlag.SystemFlag systemFlag, String name)
  • Method Details

    • getName

      public String getName()
      Returns:
      name of custom flag or null for standard
    • getSystemFlag

      public ImapFlag.SystemFlag getSystemFlag()
      Returns:
      ImapFlag.SystemFlag value of standard flag or null for custom
    • imapFlags

      public jakarta.mail.Flags imapFlags()
      convert to java.mail Flags object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object