Package be.gaudry.model.edu.config
Class Config
java.lang.Object
be.gaudry.model.edu.config.Config
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 Summary
Modifier and TypeFieldDescriptionstatic String
Path of the language resource bundle for the authentication messagesstatic String
Key used to retrieve or save the EducaBrol data path with theRememberHelper
helper class.static String
Key used to retrieve or save the data path type (local or roaming) with theRememberHelper
helper class.static double
Negative value (-1001D) to store a quotation for an absent studentstatic double
Negative value (-1000D) to store an empty quotation -
Method Summary
Modifier and TypeMethodDescriptionstatic RememberHelper.StorageType
Returns the preferred data path type (local or roaming).
Default value isLOCAL
.
This uses thePROP_DATA_STORAGE_TYPE
constant to retrieve the value.static String
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 thePROP_DATA_ROOT
constant to retrieve the value.static PersonDisplay
Loads preferred display for persons
-
Field Details
-
QUOTATION_EMPTY
public static double QUOTATION_EMPTYNegative value (-1000D) to store an empty quotation -
QUOTATION_ABSENT
public static double QUOTATION_ABSENTNegative value (-1001D) to store a quotation for an absent student -
AUTHENTICATION_LANGUAGE_PATH
Path of the language resource bundle for the authentication messages- See Also:
- Constant Field Values
-
PROP_DATA_ROOT
Key used to retrieve or save the EducaBrol data path with theRememberHelper
helper class.- See Also:
- Constant Field Values
-
PROP_DATA_STORAGE_TYPE
Key used to retrieve or save the data path type (local or roaming) with theRememberHelper
helper class.- See Also:
- Constant Field Values
-
-
Method Details
-
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 thePROP_DATA_ROOT
constant to retrieve the value.- Returns:
- the data directory path
-
getDAOPrefType
Returns the preferred data path type (local or roaming).
Default value isLOCAL
.
This uses thePROP_DATA_STORAGE_TYPE
constant to retrieve the value.- Returns:
- StorageType
-
getPersonDisplay
Loads preferred display for persons- Returns:
- the preferred style of display
-