Class AbstractIMAPOperation<O>

    • Constructor Detail

      • AbstractIMAPOperation

        public AbstractIMAPOperation()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • generates

        public abstract Class generates()
        Returns the type of output the operation generates.
        Returns:
        the class
      • check

        protected String check​(IMAPConnection conn)
        Hook method for checks before executing the operation.
        Parameters:
        conn - the connection to use
        Returns:
        the generated output, can be null
      • doExecute

        protected abstract O doExecute​(IMAPConnection conn,
                                       MessageCollection errors)
        Executes the operation and returns the generated output.
        Parameters:
        conn - the connection to use
        errors - for collecting errors
        Returns:
        the generated output, null in case of error or failed check
      • execute

        public O execute​(IMAPConnection conn,
                         MessageCollection errors)
        Executes the operation and returns the generated output.
        Parameters:
        conn - the connection to use
        errors - for collecting errors
        Returns:
        the generated output, can be null