public class Autocomplete extends Object
| Modifier and Type | Field and Description |
|---|---|
private MailConfigurationCache |
config |
private DeepaMehtaService |
dms |
private static Logger |
log |
static Comparator<TopicModel> |
VALUE_COMPARATOR |
| Constructor and Description |
|---|
Autocomplete(DeepaMehtaService dms,
MailConfigurationCache config) |
| Modifier and Type | Method and Description |
|---|---|
private List<TopicModel> |
getEmailAddresses(Topic topic) |
private RelatedTopic |
getParent(Topic child) |
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.
|
List<TopicModel> |
search(String query)
call a search on all configured topic types and on all email addresses
|
private final DeepaMehtaService dms
private final MailConfigurationCache config
public static final Comparator<TopicModel> VALUE_COMPARATOR
public Autocomplete(DeepaMehtaService dms, MailConfigurationCache config)
public List<TopicModel> search(String query)
query - private List<TopicModel> getEmailAddresses(Topic topic)
topic - clientState - private RelatedTopic getParent(Topic child)
private void putAddress(Map<Long,TopicModel> addresses, Topic parent, TopicModel address)
Copyright © 2015. All Rights Reserved.