Class Config

java.lang.Object
be.gaudry.model.edu.config.Config

public class Config extends Object
The Config class allows a static way to get some configuration constants, and some other useful constants for the Educabrol application. Provided by the broldev.edu.model project.
Since:
1.0 Oct 13, 2008, broldev.edu.model 0.0.1-SNAPSHOT dependency
Version:
1.1 Nov 18, 2010
Author:
Steph GAUDRY
  • Field Details

    • QUOTATION_EMPTY

      public static double QUOTATION_EMPTY
      Negative value (-1000D) to store an empty quotation
    • QUOTATION_ABSENT

      public static double QUOTATION_ABSENT
      Negative value (-1001D) to store a quotation for an absent student
    • AUTHENTICATION_LANGUAGE_PATH

      public static final String AUTHENTICATION_LANGUAGE_PATH
      Path of the language resource bundle for the authentication messages
      See Also:
      Constant Field Values
    • PROP_DATA_ROOT

      public static final String PROP_DATA_ROOT
      Key used to retrieve or save the EducaBrol data path with the RememberHelper helper class.
      See Also:
      Constant Field Values
    • PROP_DATA_STORAGE_TYPE

      public static final String PROP_DATA_STORAGE_TYPE
      Key used to retrieve or save the data path type (local or roaming) with the RememberHelper helper class.
      See Also:
      Constant Field Values
  • Method Details

    • getDataLocation

      public static String getDataLocation()
      The application uses this directory path to store some data, and the persistent storage system if we choose to use an embed system (like xml, Derby database or Ms Access).
      Default value is the an "educabrol" directory into the application executable file directory.
      This uses the PROP_DATA_ROOT constant to retrieve the value.
      Returns:
      the data directory path
    • getDAOPrefType

      public static RememberHelper.StorageType getDAOPrefType()
      Returns the preferred data path type (local or roaming).
      Default value is LOCAL.
      This uses the PROP_DATA_STORAGE_TYPE constant to retrieve the value.
      Returns:
      StorageType
    • getPersonDisplay

      public static PersonDisplay getPersonDisplay()
      Loads preferred display for persons
      Returns:
      the preferred style of display