public final class MailAttributeFetcher extends java.lang.Object implements com.openexchange.search.SearchAttributeFetcher<MailMessage>
MailAttributeFetcher - The attribute fetcher for mail module.| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(java.lang.String attributeName,
MailMessage candidate)
Fetches specified attribute from given candidate.
|
static MailAttributeFetcher |
getInstance()
Gets the mail attribute fetcher instance.
|
SearchTerm<?> |
getSearchTerm(java.lang.String attributeName,
com.openexchange.search.SingleSearchTerm.SingleOperation operation,
java.lang.Object constant)
Gets the mail search term for given simple search term identifier
|
public static MailAttributeFetcher getInstance()
public <T> T getAttribute(java.lang.String attributeName,
MailMessage candidate)
com.openexchange.search.SearchAttributeFetchergetAttribute in interface com.openexchange.search.SearchAttributeFetcher<MailMessage>attributeName - The attribute namecandidate - The candidate to fetch frompublic SearchTerm<?> getSearchTerm(java.lang.String attributeName, com.openexchange.search.SingleSearchTerm.SingleOperation operation, java.lang.Object constant)
attributeName - The attribute nameoperation - The operationconstant - The constant to compare tojava.lang.IllegalArgumentException - If search term cannot be returned