org.dftproject.pgvagent.core.preferences
Class PreferenceManager

java.lang.Object
  extended by org.dftproject.pgvagent.core.preferences.PreferenceManager

public class PreferenceManager
extends java.lang.Object

The PreferenceManager is used to store and retrieve preferences.


Field Summary
static java.lang.String P_AUTOMATIC_UPDATE
          Preference name for whether automatic update is enabled or not.
static java.lang.String P_ENABLE_BY_DEFAULT
          Preference name for whether new PGV sites should be enabled or not.
 
Constructor Summary
PreferenceManager()
           
 
Method Summary
static boolean getAutomaticUpdate()
          Returns whether or not automatic update is enabled.
static boolean getDefaultAutomaticUpdate()
          Returns whether or not automatic update should be enabled by default.
static boolean getDefaultEnableByDefault()
          Returns whether new PGV websites should be enabled or not by default.
static boolean getEnableByDefault()
          Returns whether new PGV websites should be enabled or not.
static void setAutomaticUpdate(boolean bAutomaticUpdate)
          Sets whether or not automatic update is enabled.
static void setEnableByDefault(boolean bEnableByDefault)
          Sets whether or not new PGV websites should be enabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_AUTOMATIC_UPDATE

public static final java.lang.String P_AUTOMATIC_UPDATE
Preference name for whether automatic update is enabled or not.

See Also:
Constant Field Values

P_ENABLE_BY_DEFAULT

public static final java.lang.String P_ENABLE_BY_DEFAULT
Preference name for whether new PGV sites should be enabled or not.

See Also:
Constant Field Values
Constructor Detail

PreferenceManager

public PreferenceManager()
Method Detail

getDefaultAutomaticUpdate

public static boolean getDefaultAutomaticUpdate()
Returns whether or not automatic update should be enabled by default.

Returns:
automatic update default

getAutomaticUpdate

public static boolean getAutomaticUpdate()
Returns whether or not automatic update is enabled.

Returns:
automatic update enabled or not

setAutomaticUpdate

public static void setAutomaticUpdate(boolean bAutomaticUpdate)
Sets whether or not automatic update is enabled.

Parameters:
bAutomaticUpdate - enabled or not

getDefaultEnableByDefault

public static boolean getDefaultEnableByDefault()
Returns whether new PGV websites should be enabled or not by default.

Returns:
new PGV website enablement default

getEnableByDefault

public static boolean getEnableByDefault()
Returns whether new PGV websites should be enabled or not.

Returns:
new PGV website enablement default

setEnableByDefault

public static void setEnableByDefault(boolean bEnableByDefault)
Sets whether or not new PGV websites should be enabled

Parameters:
bEnableByDefault - enablement default