Class Config

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

public class Config extends Object
Since:
1.0 Sep 17, 2008
Author:
Steph GAUDRY
  • Field Details

    • PROP_PERSON_DISPLAY

      public static final String PROP_PERSON_DISPLAY
      See Also:
      Constant Field Values
    • DEFAULT_ROLE_ID

      public static final int DEFAULT_ROLE_ID
      Provides the brol identifier of reference Mediabrol. This Mediabrol is used to store default roles for the persons.
      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

    • getOwner

      public static Person getOwner()
    • setOwner

      public static void setOwner(Person owner)
    • 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 "bibliobrol" 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
    • setDataLocation

      public static void setDataLocation(String dataLocation)
    • getPersonDisplay

      public static PersonDisplay getPersonDisplay()
    • setPersonDisplay

      public static void setPersonDisplay(PersonDisplay personDisplay)
    • savePersonDisplay

      public static void savePersonDisplay(PersonDisplay personDisplay)