com.jurismarches.vradi
Class VradiServiceConfiguration

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig
      extended by com.jurismarches.vradi.VradiServiceConfiguration

public class VradiServiceConfiguration
extends org.nuiton.util.ApplicationConfig

Configuration.

Since:
26 mars 2010 21:18:08
Version:
$Revision: 1552 $ $Date: 2010-09-30 12:20:24 +0200 (jeu., 30 sept. 2010) $
Author:
schorlet

Nested Class Summary
static class VradiServiceConfiguration.ActionDefinition
          Actions can be called in command line
static class VradiServiceConfiguration.Option
          Vradi option definition.
 
Nested classes/interfaces inherited from class org.nuiton.util.ApplicationConfig
org.nuiton.util.ApplicationConfig.Action, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef
 
Field Summary
protected static VradiServiceConfiguration instance
          Singleton instance.
static int STEP_AFTER_INIT
          After init step.
 
Fields inherited from class org.nuiton.util.ApplicationConfig
actions, ADJUSTING_PROPERTY, aliases, APP_NAME, cacheAction, cacheOption, classpath, CONFIG_FILE_NAME, CONFIG_PATH, curfile, defaults, env, etcfile, homefile, inParseOptionPhase, jvm, line, options, osName, pcs, unparsed, useOnlyAliases, userPath
 
Constructor Summary
protected VradiServiceConfiguration()
           
 
Method Summary
protected  void addActionAlias(String action, String... aliases)
           
 String getApplicationVersion()
          Get current application version as string.
 File getAttachmentsDir()
           
 File getCommonsPropertiesFile()
          Deprecated. 
 String getDataDir()
           
 File getDataDirAsFile()
           
 File getEmbeddedFilesDir()
           
 String getImapHost()
           
 int getImapPort()
           
static VradiServiceConfiguration getInstance(String... args)
           
 Locale getLocale()
           
 String getMailFrom()
           
 String getMailFromName()
           
 String getMailPassword()
           
 String getMailUser()
           
 String getOfferMailSubject()
           
 String getOpenOfficeExecDir()
           
protected  File getOptionAsFile(String parent, String child)
           
 File getPdfDir()
           
 File getQueryHistoryDir()
           
 String getServiceVersion()
          Get last saved version as string (last launch).
 String getSessionDefaultParagraph()
           
 String getSmtpHost()
           
 int getSmtpPort()
           
 File getTempDir()
           
 File getTemplatesDir()
           
 File getWebHarvestPreviewDir()
           
 File getWebHarvestScriptDir()
           
 boolean isMailDebug()
           
 void setLocale(Locale locale)
           
 void setServiceVersion(String version)
          Set service version.
protected  void setSystemDefaultProps()
          Set solr and jms system configuration.
 void setWikittyCachePolicy(boolean b)
          Change wikitty cache policy.
 void setWikittyJgroupsChannelName(String channelName)
          Change jgroups channel name.
 void setWikittyListenEvents(boolean b)
          Change listen events on cache use.
 void setWikittyPropagateEvents(boolean b)
          Change propagate events use.
 boolean skipMigration()
           
 
Methods inherited from class org.nuiton.util.ApplicationConfig
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, createAction, doAction, firePropertyChange, getConfigFileName, getConfigFileNameOption, getConfigPath, getFlatOptions, getFlatOptions, getMethods, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsInt, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptions, getOptionStartsWith, getParams, getPropertyChangeListeners, getPropertyChangeListeners, getSystemConfigFile, getSystemConfigurationPath, getUnparsed, getUserConfigFile, getUserHome, getUsername, getUserPath, hasListeners, installSaveUserAction, isAdjusting, isUseOnlyAliases, migrateUserConfigurationFile, parse, printConfig, printConfig, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, save, saveForSystem, saveForUser, setAdjusting, setAppName, setConfigFileName, setDefaultOption, setOption, setOptions, setUseOnlyAliases
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STEP_AFTER_INIT

public static final int STEP_AFTER_INIT
After init step.

See Also:
Constant Field Values

instance

protected static VradiServiceConfiguration instance
Singleton instance.

Constructor Detail

VradiServiceConfiguration

protected VradiServiceConfiguration()
Method Detail

getInstance

public static VradiServiceConfiguration getInstance(String... args)

addActionAlias

protected void addActionAlias(String action,
                              String... aliases)

getApplicationVersion

public String getApplicationVersion()
Get current application version as string.

Returns:
version

getServiceVersion

public String getServiceVersion()
Get last saved version as string (last launch).

Returns:
version

setServiceVersion

public void setServiceVersion(String version)
Set service version.

Parameters:
version - version to set

getDataDir

public String getDataDir()

getDataDirAsFile

public File getDataDirAsFile()

getLocale

public Locale getLocale()

setLocale

public void setLocale(Locale locale)

getCommonsPropertiesFile

@Deprecated
public File getCommonsPropertiesFile()
Deprecated. 


getAttachmentsDir

public File getAttachmentsDir()

getEmbeddedFilesDir

public File getEmbeddedFilesDir()

getQueryHistoryDir

public File getQueryHistoryDir()

getTemplatesDir

public File getTemplatesDir()

getPdfDir

public File getPdfDir()

getTempDir

public File getTempDir()

getWebHarvestPreviewDir

public File getWebHarvestPreviewDir()

getWebHarvestScriptDir

public File getWebHarvestScriptDir()

getOpenOfficeExecDir

public String getOpenOfficeExecDir()

getSmtpHost

public String getSmtpHost()

getSmtpPort

public int getSmtpPort()

getImapHost

public String getImapHost()

getImapPort

public int getImapPort()

getMailUser

public String getMailUser()

getMailFrom

public String getMailFrom()

getMailFromName

public String getMailFromName()

getMailPassword

public String getMailPassword()

getOfferMailSubject

public String getOfferMailSubject()

isMailDebug

public boolean isMailDebug()

getSessionDefaultParagraph

public String getSessionDefaultParagraph()

skipMigration

public boolean skipMigration()

setWikittyJgroupsChannelName

public void setWikittyJgroupsChannelName(String channelName)
Change jgroups channel name.

Parameters:
channelName - new channel name
See Also:
WikittyServiceNotifier.WIKITTY_EVENT_JGROUPCHANNELNAME_OPTION

setWikittyPropagateEvents

public void setWikittyPropagateEvents(boolean b)
Change propagate events use.

Parameters:
b - new value
See Also:
WikittyServiceNotifier.WIKITTY_EVENT_PROPAGATE_OPTION

setWikittyListenEvents

public void setWikittyListenEvents(boolean b)
Change listen events on cache use.

Parameters:
b - new value
See Also:
WikittyServiceCached.WIKITTY_CACHE_LISTENEVENTS_OPTION

setWikittyCachePolicy

public void setWikittyCachePolicy(boolean b)
Change wikitty cache policy.

Parameters:
b -
See Also:
WikittyServiceCached.WIKITTY_CACHE_ALLWAYS_RESTORE_COPIES_POLICY_OPTION

getOptionAsFile

protected File getOptionAsFile(String parent,
                               String child)

setSystemDefaultProps

protected void setSystemDefaultProps()
Set solr and jms system configuration. This is the "only" way to configure embedded solr.



Copyright © 2009-2010 JurisMarches. All Rights Reserved.