es.cesar.quitesleep.operations
Class CheckSettingsOperations

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

public class CheckSettingsOperations
extends java.lang.Object

Author:
Cesar Valiente Gordo

Constructor Summary
CheckSettingsOperations()
           
 
Method Summary
static boolean checkDayWeek(Schedule schedule)
          Check if today is a selected day for use the banned contacts list and schedule.
static boolean checkMailService(ClientDDBB clientDDBB)
          Check if the mail service for send email is activated or not
static boolean checkQuiteSleepServiceState()
          Check if the Settings object is created in the ddbb.
static boolean checkSmsService(ClientDDBB clientDDBB)
          Check if the sms service for send sms is activated or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckSettingsOperations

public CheckSettingsOperations()
Method Detail

checkQuiteSleepServiceState

public static boolean checkQuiteSleepServiceState()
Check if the Settings object is created in the ddbb. If it's created check this attribute serviceState for check if the service is up or is down.

Returns:
true if the service is running or false if not.

checkDayWeek

public static boolean checkDayWeek(Schedule schedule)
Check if today is a selected day for use the banned contacts list and schedule.

Parameters:
schedule -
Returns:
true if today is one "banned day" or false if isn't
See Also:
boolean

checkMailService

public static boolean checkMailService(ClientDDBB clientDDBB)
Check if the mail service for send email is activated or not

Parameters:
clientDDBB -
Returns:
true or false if it is activated or not

checkSmsService

public static boolean checkSmsService(ClientDDBB clientDDBB)
Check if the sms service for send sms is activated or not

Parameters:
clientDDBB -
Returns:
true or false depends of the state
See Also:
boolean