uk.co.mullsoft.file
Class FileConfiguration

java.lang.Object
  extended by uk.co.mullsoft.jean.JEANConfig
      extended by uk.co.mullsoft.file.FileConfiguration

public class FileConfiguration
extends JEANConfig


Field Summary
 
Fields inherited from class uk.co.mullsoft.jean.JEANConfig
configDocument, newConfig
 
Constructor Summary
FileConfiguration(FileUtilities fileUtilities)
           
 
Method Summary
 NamedValue[] getNewParameters(JEANAPI api)
          These are application parameters that must be provided during the first run of the application.
 void setStartupParameters(JEANAPI api, NamedValue[] params)
          application parameters with no user are set up during startup.
 
Methods inherited from class uk.co.mullsoft.jean.JEANConfig
createNewParameters, getConfigDocument, getParameter, getParameterNames, isNewConfig, loadColors, loadConfigDocument, removeParameter, save, setColors, setColorsWithoutSaving, setParameter, setParameters, setParameters, setSystemParameter, setSystemParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileConfiguration

public FileConfiguration(FileUtilities fileUtilities)
Method Detail

getNewParameters

public NamedValue[] getNewParameters(JEANAPI api)
These are application parameters that must be provided during the first run of the application. These are policies for deleteing obsolete items. Details of a policy are in a string which may take one of two forms "type|value" or "type|value|value|id". where the values are eithe ints representing the number of updates (type is "updates") or date/times representing the date/time "times". The first of the two values is when the item should be deleted (0 means never) and the second is when it should be moved to a category, which is the final id.

Specified by:
getNewParameters in class JEANConfig
Parameters:
api - the current JEANAPI
Returns:
an array of NamedValues, name and String[2] {value of each parameter,username}

setStartupParameters

public void setStartupParameters(JEANAPI api,
                                 NamedValue[] params)
application parameters with no user are set up during startup.

Specified by:
setStartupParameters in class JEANConfig