es.cesar.quitesleep.operations
Class MailOperations

java.lang.Object
  extended by es.cesar.quitesleep.operations.MailOperations

public class MailOperations
extends java.lang.Object

Author:
Cesar Valiente Gordo

Constructor Summary
MailOperations()
           
 
Method Summary
static boolean saveMailServiceState(boolean mailServiceState)
          Function that save the mailService sending state, in both, the Settings object in the ddbb and the static variable for more fast access later.
static boolean saveMailSettings(java.lang.String user, java.lang.String passwd, java.lang.String subject, java.lang.String body)
          Function that save the mail settings into Settings object from the ddbb, if the Settings object doesn't exists we create it, and if it exists, update one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailOperations

public MailOperations()
Method Detail

saveMailSettings

public static boolean saveMailSettings(java.lang.String user,
                                       java.lang.String passwd,
                                       java.lang.String subject,
                                       java.lang.String body)
Function that save the mail settings into Settings object from the ddbb, if the Settings object doesn't exists we create it, and if it exists, update one.

Parameters:
user -
passwd -
subject -
body -
Returns:
true or false if the operation was sucessfully or not
See Also:
boolean

saveMailServiceState

public static boolean saveMailServiceState(boolean mailServiceState)
Function that save the mailService sending state, in both, the Settings object in the ddbb and the static variable for more fast access later.

Parameters:
mailServiceState -
Returns:
true or false depends of sucessfully operation
See Also:
boolean