de.deepamehta.plugins.mail
Class MailConfigurationCache

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

 class MailConfigurationCache
extends Object

Reveals and caches mail configuration parts.


Field Summary
private  Topic config
           
private  RecipientType defaultRecipientType
           
private  RelatedTopic defaultSender
           
private  boolean defaultSenderIsNull
           
private  DeepaMehtaService dms
           
private static Logger log
           
static String MAIL_CONFIG
           
private  ResultSet<RelatedTopic> recipientTypes
           
private  Set<String> recipientTypeUris
           
private  Map<String,Topic> searchParentTypes
           
private  ResultSet<RelatedTopic> searchTypes
           
private  Set<String> searchTypeUris
           
static String SMTP_HOST
           
private  String smtpHost
           
 
Constructor Summary
MailConfigurationCache(DeepaMehtaService dms)
           
 
Method Summary
 RecipientType checkRecipientType(String type)
          Returns the corresponding enumeration value or the configured default recipient type.
private  Topic getConfiguration()
           
 RecipientType getDefaultRecipientType()
           
 RelatedTopic getDefaultSender()
           
 ResultSet<RelatedTopic> getRecipientTypes()
           
 Set<String> getRecipientTypeUris()
           
 Collection<Topic> getSearchParentTypes()
           
 ResultSet<RelatedTopic> getSearchTypes()
           
 Set<String> getSearchTypeUris()
           
 String getSmtpHost()
           
 Topic getTopic()
           
private  Map<String,Topic> revealSearchParentTypes()
           
 
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

MAIL_CONFIG

public static final String MAIL_CONFIG
See Also:
Constant Field Values

SMTP_HOST

public static final String SMTP_HOST
See Also:
Constant Field Values

config

private Topic config

defaultRecipientType

private RecipientType defaultRecipientType

defaultSender

private RelatedTopic defaultSender

defaultSenderIsNull

private boolean defaultSenderIsNull

dms

private final DeepaMehtaService dms

recipientTypes

private ResultSet<RelatedTopic> recipientTypes

recipientTypeUris

private Set<String> recipientTypeUris

searchParentTypes

private Map<String,Topic> searchParentTypes

searchTypes

private ResultSet<RelatedTopic> searchTypes

searchTypeUris

private Set<String> searchTypeUris

smtpHost

private String smtpHost
Constructor Detail

MailConfigurationCache

public MailConfigurationCache(DeepaMehtaService dms)
Method Detail

checkRecipientType

public RecipientType checkRecipientType(String type)
Returns the corresponding enumeration value or the configured default recipient type.

Parameters:
type - Valid recipient type enumeration value.
Returns:
Recipient type.

getConfiguration

private Topic getConfiguration()

getTopic

public Topic getTopic()

getDefaultRecipientType

public RecipientType getDefaultRecipientType()

getDefaultSender

public RelatedTopic getDefaultSender()

getRecipientTypes

public ResultSet<RelatedTopic> getRecipientTypes()

getRecipientTypeUris

public Set<String> getRecipientTypeUris()

getSearchParentTypes

public Collection<Topic> getSearchParentTypes()

getSearchTypes

public ResultSet<RelatedTopic> getSearchTypes()

getSearchTypeUris

public Set<String> getSearchTypeUris()

getSmtpHost

public String getSmtpHost()

revealSearchParentTypes

private Map<String,Topic> revealSearchParentTypes()


Copyright © 2013. All Rights Reserved.