de.deepamehta.plugins.mail
Class Autocomplete
java.lang.Object
de.deepamehta.plugins.mail.Autocomplete
public class Autocomplete
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static Logger log
dms
private final DeepaMehtaService dms
config
private final MailConfigurationCache config
VALUE_COMPARATOR
public static final Comparator<TopicModel> VALUE_COMPARATOR
Autocomplete
public Autocomplete(DeepaMehtaService dms,
MailConfigurationCache config)
search
public List<TopicModel> search(String query,
ClientState clientState)
- call a search on all configured topic types and on all email addresses
- Parameters:
query
- clientState
-
- Returns:
- topic list with email ID and contact type URI
getEmailAddresses
private List<TopicModel> getEmailAddresses(Topic topic,
ClientState clientState)
- Parameters:
topic
- clientState
-
- Returns:
- list of mail addresses with at minimum one empty address
getParent
private RelatedTopic getParent(Topic child)
putAddress
private void putAddress(Map<Long,TopicModel> addresses,
Topic parent,
TopicModel address)
- puts an inconsistent model (address ID + contact type URI) of email
address into the addresses map.
Copyright © 2013. All Rights Reserved.