Class IniFileLoader


  • public class IniFileLoader
    extends java.lang.Object
    This class loads in the default importer.ini file (or one specified from the command line when starting the app)
    • Field Detail

      • LOGFILE

        public static final java.lang.String LOGFILE
        Public in order to configure LogAppenderProxy, but then the value might as well be configured in the log4j.properties file
        See Also:
        Trac ticket #1479
    • Constructor Detail

      • IniFileLoader

        public IniFileLoader​(java.io.File userConfigFile)
        Load given file
        Parameters:
        userConfigFile - the file to load
    • Method Detail

      • flushPreferences

        public void flushPreferences()
        Flush preferences to disk
      • getDebugLevel

        public int getDebugLevel()
        Returns the level of debugging which should be set on ImportConfig Any value lower than null will not call configureDebug.
        Returns:
        the debug level
      • getUseQuaqua

        public boolean getUseQuaqua()
        Returns:
        if quaqua should be used on mac
      • getLogFile

        public java.lang.String getLogFile()
        Returns:
        location of log file
      • getHomeUrl

        public java.lang.String getHomeUrl()
        Returns:
        URL for product feature list
      • getForumUrl

        public java.lang.String getForumUrl()
        Returns:
        URL for community forums
      • getAppTitle

        public java.lang.String getAppTitle()
        Returns:
        application title
      • getForceFileArchiveOn

        public boolean getForceFileArchiveOn()
        Returns:
        application title
      • getStaticDisableHistory

        public boolean getStaticDisableHistory()
        Returns:
        application title
      • setUserDisableHistory

        public void setUserDisableHistory​(boolean b)
        Set if history should be disabled.
        Parameters:
        b - if history should be disabled
      • getUserDisableHistory

        public java.lang.Boolean getUserDisableHistory()
        Returns:
        if history should be disabled
      • setDebugLevel

        public void setDebugLevel​(int level)
        Set debug level for application
        Parameters:
        level - a debug level
      • setUseQuaqua

        public void setUseQuaqua​(boolean b)
        Parameters:
        b - - set to use quaqua yes/no
      • getVersionNote

        public java.lang.String getVersionNote()
        Returns:
        application version note
      • getVersionNumber

        public java.lang.String getVersionNumber()
        Returns:
        application version number
      • isDebugConsole

        public java.lang.Boolean isDebugConsole()
        Returns:
        if debug console should be shown
      • getServerPort

        public java.lang.String getServerPort()
        Returns:
        server port
      • updateFlexReaderServerMaps

        public void updateFlexReaderServerMaps()
        Updates the Flex reader server maps from the configuration file.
      • parseFlexMaps

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parseFlexMaps​(java.util.prefs.Preferences maps)
        Parse Flex reader server maps
        Parameters:
        maps - the Flex reader server maps
        Returns:
        the parsed maps
      • mapFlexServer

        protected void mapFlexServer​(java.lang.String key,
                                     java.lang.String mapValue)
        Append keep to server map
        Parameters:
        key -
        mapValue -
      • isDebugUI

        public java.lang.Boolean isDebugUI()
        Returns:
        is debug ui present
      • getUIBounds

        public java.awt.Rectangle getUIBounds()
        Returns:
        the ui bounds of the application
      • setUIBounds

        public void setUIBounds​(java.awt.Rectangle bounds)
        Set ui bounds for application
        Parameters:
        bounds - the bounds
      • getUserFullPath

        @Deprecated
        public boolean getUserFullPath()
        Deprecated.
      • setUserFullPath

        @Deprecated
        public void setUserFullPath​(boolean b)
        Deprecated.
      • getCustomImageNaming

        public boolean getCustomImageNaming()
      • setCustomImageNaming

        public void setCustomImageNaming​(boolean b)
      • getNumOfDirectories

        public int getNumOfDirectories()
      • setNumOfDirectories

        public void setNumOfDirectories​(int i)
      • getUserSettingsDirectory

        public java.lang.String getUserSettingsDirectory()
        Returns:
        Returns the userSettingsDirectory.