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
FieldsModifier and TypeFieldDescriptionstatic StringPath of the language resource bundle for the authentication messagesstatic StringKey used to retrieve or save the EducaBrol data path with theRememberHelperhelper class.static StringKey used to retrieve or save the data path type (local or roaming) with theRememberHelperhelper class.static doubleNegative value (-1001D) to store a quotation for an absent studentstatic doubleNegative value (-1000D) to store an empty quotation -
Method Summary
Modifier and TypeMethodDescriptionstatic RememberHelper.StorageTypeReturns the preferred data path type (local or roaming).
Default value isLOCAL.
This uses thePROP_DATA_STORAGE_TYPEconstant to retrieve the value.static StringThe 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_ROOTconstant to retrieve the value.static PersonDisplayLoads 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 theRememberHelperhelper class.- See Also:
- Constant Field Values
-
PROP_DATA_STORAGE_TYPE
Key used to retrieve or save the data path type (local or roaming) with theRememberHelperhelper 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_ROOTconstant 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_TYPEconstant to retrieve the value.- Returns:
- StorageType
-
getPersonDisplay
Loads preferred display for persons- Returns:
- the preferred style of display
-