de.deepamehta.plugins.mail
Class Autocomplete

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.plugins.mail.Autocomplete

public class Autocomplete
extends Object


Field Summary
private  MailConfigurationCache config
           
private  DeepaMehtaService dms
           
private static Logger log
           
static Comparator<TopicModel> VALUE_COMPARATOR
           
 
Constructor Summary
Autocomplete(DeepaMehtaService dms, MailConfigurationCache config)
           
 
Method Summary
private  List<TopicModel> getEmailAddresses(Topic topic, ClientState clientState)
           
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, ClientState clientState)
          call a search on all configured topic types and on all email addresses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Logger log

dms

private final DeepaMehtaService dms

config

private final MailConfigurationCache config

VALUE_COMPARATOR

public static final Comparator<TopicModel> VALUE_COMPARATOR
Constructor Detail

Autocomplete

public Autocomplete(DeepaMehtaService dms,
                    MailConfigurationCache config)
Method Detail

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.