Last update: 2011-06-23

org.proteios.io
Class NotificationConfiguration

java.lang.Object
  extended by org.proteios.io.NotificationConfiguration

public class NotificationConfiguration
extends Object

This class represents a notification configuration.

Version:
2.0
Author:
olle
Last modified
$Date: 2009-11-26 14:16:04 +0100 (Thu, 26 Nov 2009) $

Nested Class Summary
static class NotificationConfiguration.Mode
          The notification mode.
 
Constructor Summary
NotificationConfiguration()
          NotificationConfiguration constructor.
 
Method Summary
 void fetchConfiguration(User user)
          Fetches notification configurations that have not been explicitly set in this class from properties files and other sources.
 String getFromAddress()
          Get the "from" address to use for e-mail notification.
 String getFromName()
          Get the "from" name to use for e-mail notification.
 int getMode()
          Get the notification mode. 0 = "Never". 1 = "After every finished job". 2 = "After all jobs finished".
 String getSmtpHost()
          Get the SMTP host to use for e-mail notification.
 String getToAddress()
          Get the "to" address to use for e-mail notification.
 void setFromAddress(String fromAddress)
          Set the "from" address to use for e-mail notification.
 void setFromName(String fromName)
          Set the "from" name to use for e-mail notification.
 void setMode(int mode)
          Set the notification mode. 0 = "Never". 1 = "After every finished job". 2 = "After all jobs finished".
 void setSmtpHost(String smtpHost)
          Set the SMTP host to use for e-mail notification.
 void setToAddress(String toAddress)
          Set the "to" address to use for e-mail notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationConfiguration

public NotificationConfiguration()
NotificationConfiguration constructor.

Method Detail

getSmtpHost

public String getSmtpHost()
Get the SMTP host to use for e-mail notification.

Returns:
String The SMTP host to use for e-mail notification.

setSmtpHost

public void setSmtpHost(String smtpHost)
Set the SMTP host to use for e-mail notification.

Parameters:
smtpHost - String The SMTP host to use for e-mail notification.

getFromAddress

public String getFromAddress()
Get the "from" address to use for e-mail notification.

Returns:
String The "from" address to use for e-mail notification.

setFromAddress

public void setFromAddress(String fromAddress)
Set the "from" address to use for e-mail notification.

Parameters:
fromAddress - String The "from" address to use for e-mail notification.

getFromName

public String getFromName()
Get the "from" name to use for e-mail notification.

Returns:
String The "from" name to use for e-mail notification.

setFromName

public void setFromName(String fromName)
Set the "from" name to use for e-mail notification.

Parameters:
fromName - String The "from" name to use for e-mail notification.

getToAddress

public String getToAddress()
Get the "to" address to use for e-mail notification.

Returns:
String The "to" address to use for e-mail notification.

setToAddress

public void setToAddress(String toAddress)
Set the "to" address to use for e-mail notification.

Parameters:
toAddress - String The "to" address to use for e-mail notification.

getMode

public int getMode()
Get the notification mode. 0 = "Never". 1 = "After every finished job". 2 = "After all jobs finished".

Returns:
int The notification mode.

setMode

public void setMode(int mode)
Set the notification mode. 0 = "Never". 1 = "After every finished job". 2 = "After all jobs finished".

Parameters:
mode - int The notification mode to use.

fetchConfiguration

public void fetchConfiguration(User user)
Fetches notification configurations that have not been explicitly set in this class from properties files and other sources.

Parameters:
user - User The user for which preferences should be obtained.

Last update: 2011-06-23