Package org.alfresco.repo.imap
Enum ImapService.EmailBodyFormat
- java.lang.Object
-
- java.lang.Enum<ImapService.EmailBodyFormat>
-
- org.alfresco.repo.imap.ImapService.EmailBodyFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ImapService.EmailBodyFormat>
- Enclosing interface:
- ImapService
public static enum ImapService.EmailBodyFormat extends java.lang.Enum<ImapService.EmailBodyFormat>
Helper enumeration to handle email body format text/html and text/plain for Alfresco/Share webapp
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALFRESCO_TEXT_HTMLALFRESCO_TEXT_PLAINSHARE_TEXT_HTMLSHARE_TEXT_PLAIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClasspathTemplatePath()java.lang.StringgetMimeType()java.lang.StringgetSubtype()java.lang.StringgetTypeSubtype()java.lang.StringgetWebApp()static ImapService.EmailBodyFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ImapService.EmailBodyFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALFRESCO_TEXT_PLAIN
public static final ImapService.EmailBodyFormat ALFRESCO_TEXT_PLAIN
-
SHARE_TEXT_PLAIN
public static final ImapService.EmailBodyFormat SHARE_TEXT_PLAIN
-
ALFRESCO_TEXT_HTML
public static final ImapService.EmailBodyFormat ALFRESCO_TEXT_HTML
-
SHARE_TEXT_HTML
public static final ImapService.EmailBodyFormat SHARE_TEXT_HTML
-
-
Method Detail
-
values
public static ImapService.EmailBodyFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImapService.EmailBodyFormat c : ImapService.EmailBodyFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImapService.EmailBodyFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getSubtype
public java.lang.String getSubtype()
-
getTypeSubtype
public java.lang.String getTypeSubtype()
-
getMimeType
public java.lang.String getMimeType()
-
getClasspathTemplatePath
public java.lang.String getClasspathTemplatePath()
-
getWebApp
public java.lang.String getWebApp()
-
-