pt.digitalis.dif.utils.mail
Class MailConfiguration

java.lang.Object
  extended by pt.digitalis.dif.utils.mail.MailConfiguration
All Implemented Interfaces:
IMailConfiguration

public class MailConfiguration
extends Object
implements IMailConfiguration

Author:
Galaio da Silva jgalaio@digitalis.pt
Created on:
May 24, 2012

Field Summary
static String CONFIG_ID
          The Constant CONFIG_ID.
static String CONFIG_SECTION_ID
          The Constant CONFIG_SECTION_ID.
 
Constructor Summary
MailConfiguration()
          MailConfiguration Construtor
 
Method Summary
 pt.digitalis.utils.config.IConfigurations getConfigurations()
          Gets the configurations.
 String getDebugEnabled()
          Inspector for the 'debugEnabled' attribute.
 String getDefaultFromAddress()
          Inspector for the 'defaultFromAddress' attribute.
 String getEncoding()
          Inspector for the 'enconding' attribute.
 int getGapBetweenMails()
          Inspector for the 'GapBetweenMails' attribute.
static IMailConfiguration getInstance()
           
 int getLimitMaxEmails()
          Inspector for the 'LimitMaxEmails' attribute.
 int getLimitTimeInterval()
          Inspector for the 'LimitTimeInterval' attribute.
 String getMailServer()
          Inspector for the 'mailServer' attribute.
 String getMailServerPassword()
          Inspector for the 'mailServerPassword' attribute.
 int getMailServerPort()
          Inspector for the 'mailServerPort' attribute.
 String getMailServerUsername()
          Inspector for the 'mailServerUsername' attribute.
 Properties getOriginalConfs()
          Inspector for the 'originalConfs' attribute.
 Boolean getUseSSL()
          Inspector for the 'useSSL' attribute.
 void setConfigurations(pt.digitalis.utils.config.IConfigurations configurations)
          Modifier for the 'configurations' attribute.
 void setDebugEnabled(String debugEnabled)
          Modifier for the 'debugEnabled' attribute.
 void setDefaultFromAddress(String defaultFromAddress)
          Modifier for the 'defaultFromAddress' attribute.
 void setEncoding(String enconding)
          Modifier for the 'enconding' attribute.
 void setGapBetweenMails(int gapBetweenMails)
          Modifier for the 'GapBetweenMails' attribute.
 void setLimitMaxEmails(int limitMaxEmails)
          Modifier for the 'LimitMaxEmails' attribute.
 void setLimitTimeInterval(int limitTimeInterval)
          Modifier for the 'LimitTimeInterval' attribute.
 void setMailServer(String mailServer)
          Modifier for the 'mailServer' attribute.
 void setMailServerPassword(String mailServerPassword)
          Modifier for the 'mailServerPassword' attribute.
 void setMailServerPort(int mailServerPort)
          Modifier for the 'mailServerPort' attribute.
 void setMailServerUsername(String mailServerUsername)
          Modifier for the 'mailServerUsername' attribute.
 void setOriginalConfs(Properties originalConfs)
          Modifier for the 'originalConfs' attribute.
 void setUseSSL(Boolean useSSL)
          Modifier for the 'useSSL' attribute.
 void writeConfiguration()
          Write configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_ID

public static final String CONFIG_ID
The Constant CONFIG_ID.

See Also:
Constant Field Values

CONFIG_SECTION_ID

public static final String CONFIG_SECTION_ID
The Constant CONFIG_SECTION_ID.

See Also:
Constant Field Values
Constructor Detail

MailConfiguration

public MailConfiguration()
MailConfiguration Construtor

Method Detail

getInstance

public static IMailConfiguration getInstance()
Returns:
MailConfiguration

getConfigurations

public pt.digitalis.utils.config.IConfigurations getConfigurations()
Gets the configurations.

Specified by:
getConfigurations in interface IMailConfiguration
Returns:
the configurations

getDebugEnabled

public String getDebugEnabled()
Inspector for the 'debugEnabled' attribute.

Specified by:
getDebugEnabled in interface IMailConfiguration
Returns:
the debugEnabled value

getDefaultFromAddress

public String getDefaultFromAddress()
Inspector for the 'defaultFromAddress' attribute.

Specified by:
getDefaultFromAddress in interface IMailConfiguration
Returns:
the defaultFromAddress value

getEncoding

public String getEncoding()
Inspector for the 'enconding' attribute.

Specified by:
getEncoding in interface IMailConfiguration
Returns:
the enconding value

getGapBetweenMails

public int getGapBetweenMails()
Inspector for the 'GapBetweenMails' attribute.

Specified by:
getGapBetweenMails in interface IMailConfiguration
Returns:
the gapBetweenMails value

getLimitMaxEmails

public int getLimitMaxEmails()
Inspector for the 'LimitMaxEmails' attribute.

Specified by:
getLimitMaxEmails in interface IMailConfiguration
Returns:
the limitMaxEmails value

getLimitTimeInterval

public int getLimitTimeInterval()
Inspector for the 'LimitTimeInterval' attribute.

Specified by:
getLimitTimeInterval in interface IMailConfiguration
Returns:
the limitTimeInterval value

getMailServer

public String getMailServer()
Inspector for the 'mailServer' attribute.

Specified by:
getMailServer in interface IMailConfiguration
Returns:
the mailServer value

getMailServerPassword

public String getMailServerPassword()
Inspector for the 'mailServerPassword' attribute.

Specified by:
getMailServerPassword in interface IMailConfiguration
Returns:
the mailServerPassword value

getMailServerPort

public int getMailServerPort()
Inspector for the 'mailServerPort' attribute.

Specified by:
getMailServerPort in interface IMailConfiguration
Returns:
the mailServerPort value

getMailServerUsername

public String getMailServerUsername()
Inspector for the 'mailServerUsername' attribute.

Specified by:
getMailServerUsername in interface IMailConfiguration
Returns:
the mailServerUsername value

getOriginalConfs

public Properties getOriginalConfs()
Inspector for the 'originalConfs' attribute.

Specified by:
getOriginalConfs in interface IMailConfiguration
Returns:
the originalConfs value

getUseSSL

public Boolean getUseSSL()
Inspector for the 'useSSL' attribute.

Specified by:
getUseSSL in interface IMailConfiguration
Returns:
the useSSL value

setConfigurations

public void setConfigurations(pt.digitalis.utils.config.IConfigurations configurations)
Modifier for the 'configurations' attribute.

Specified by:
setConfigurations in interface IMailConfiguration
Parameters:
configurations - the new configurations value to set

setDebugEnabled

public void setDebugEnabled(String debugEnabled)
Modifier for the 'debugEnabled' attribute.

Specified by:
setDebugEnabled in interface IMailConfiguration
Parameters:
debugEnabled - the new debugEnabled value to set

setDefaultFromAddress

public void setDefaultFromAddress(String defaultFromAddress)
Modifier for the 'defaultFromAddress' attribute.

Specified by:
setDefaultFromAddress in interface IMailConfiguration
Parameters:
defaultFromAddress - the new defaultFromAddress value to set

setEncoding

public void setEncoding(String enconding)
Modifier for the 'enconding' attribute.

Specified by:
setEncoding in interface IMailConfiguration
Parameters:
enconding - the new enconding value to set

setGapBetweenMails

public void setGapBetweenMails(int gapBetweenMails)
Modifier for the 'GapBetweenMails' attribute.

Specified by:
setGapBetweenMails in interface IMailConfiguration
Parameters:
gapBetweenMails - the new gapBetweenMails value to set

setLimitMaxEmails

public void setLimitMaxEmails(int limitMaxEmails)
Modifier for the 'LimitMaxEmails' attribute.

Specified by:
setLimitMaxEmails in interface IMailConfiguration
Parameters:
limitMaxEmails - the new limitMaxEmails value to set

setLimitTimeInterval

public void setLimitTimeInterval(int limitTimeInterval)
Modifier for the 'LimitTimeInterval' attribute.

Specified by:
setLimitTimeInterval in interface IMailConfiguration
Parameters:
limitTimeInterval - the new limitTimeInterval value to set

setMailServer

public void setMailServer(String mailServer)
Modifier for the 'mailServer' attribute.

Specified by:
setMailServer in interface IMailConfiguration
Parameters:
mailServer - the new mailServer value to set

setMailServerPassword

public void setMailServerPassword(String mailServerPassword)
Modifier for the 'mailServerPassword' attribute.

Specified by:
setMailServerPassword in interface IMailConfiguration
Parameters:
mailServerPassword - the new mailServerPassword value to set

setMailServerPort

public void setMailServerPort(int mailServerPort)
Modifier for the 'mailServerPort' attribute.

Specified by:
setMailServerPort in interface IMailConfiguration
Parameters:
mailServerPort - the new mailServerPort value to set

setMailServerUsername

public void setMailServerUsername(String mailServerUsername)
Modifier for the 'mailServerUsername' attribute.

Specified by:
setMailServerUsername in interface IMailConfiguration
Parameters:
mailServerUsername - the new mailServerUsername value to set

setOriginalConfs

public void setOriginalConfs(Properties originalConfs)
Modifier for the 'originalConfs' attribute.

Specified by:
setOriginalConfs in interface IMailConfiguration
Parameters:
originalConfs - the new originalConfs value to set

setUseSSL

public void setUseSSL(Boolean useSSL)
Modifier for the 'useSSL' attribute.

Specified by:
setUseSSL in interface IMailConfiguration
Parameters:
useSSL - the new useSSL value to set

writeConfiguration

public void writeConfiguration()
                        throws Exception
Write configuration

Specified by:
writeConfiguration in interface IMailConfiguration
Throws:
Exception


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.