Package adams.flow.source.imapsource
Class AbstractIMAPFolderOperation<O>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.source.imapsource.AbstractIMAPOperation<O>
-
- adams.flow.source.imapsource.AbstractIMAPFolderOperation<O>
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
- Direct Known Subclasses:
ReceiveEmail
public abstract class AbstractIMAPFolderOperation<O> extends AbstractIMAPOperation<O>
Ancestor of operations that work on a specific folder.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_Folderthe folder to query.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractIMAPFolderOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringcheck(IMAPConnection conn)Hook method for checks before executing the operation.voiddefineOptions()Adds options to the internal list of options.StringfolderTipText()Returns the tip text for this property.protected StringgetDefaultFolder()Returns the default folder.StringgetFolder()Returns the folder to query.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.voidsetFolder(String value)Sets the folder to query.-
Methods inherited from class adams.flow.source.imapsource.AbstractIMAPOperation
doExecute, execute, generates
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Folder
protected String m_Folder
the folder to query.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
getDefaultFolder
protected String getDefaultFolder()
Returns the default folder.- Returns:
- the default
-
setFolder
public void setFolder(String value)
Sets the folder to query.- Parameters:
value- the folder
-
getFolder
public String getFolder()
Returns the folder to query.- Returns:
- the folder
-
folderTipText
public String folderTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.
Default implementation returns null.- Specified by:
getQuickInfoin interfaceQuickInfoSupporter- Overrides:
getQuickInfoin classAbstractIMAPOperation<O>- Returns:
- null if no info available, otherwise short string
-
check
protected String check(IMAPConnection conn)
Hook method for checks before executing the operation.- Overrides:
checkin classAbstractIMAPOperation<O>- Parameters:
conn- the connection to use- Returns:
- the generated output, can be null
-
-