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: 1715 $ $Date: 2010-10-27 21:21:28 +0200 (mer., 27 oct. 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(java.lang.String action, java.lang.String... aliases)
           
 void addMailAdmin(java.lang.String email)
           
 java.lang.String getApplicationVersion()
          Get current application version as string.
 java.io.File getAttachmentsDir()
           
 java.io.File getCommonsPropertiesFile()
          Deprecated. 
 java.lang.String getDataDir()
           
 java.io.File getDataDirAsFile()
           
 java.io.File getEmbeddedFilesDir()
           
 java.io.File getExportCSVDir()
           
 java.lang.String getImapHost()
           
 int getImapPort()
           
 java.io.File getImportCSVDir()
           
static VradiServiceConfiguration getInstance(java.lang.String... args)
           
 java.util.Locale getLocale()
           
 java.util.List<java.lang.String> getMailAdmin()
           
 java.lang.String getMailFrom()
           
 java.lang.String getMailFromName()
           
 java.lang.String getMailPassword()
           
 java.lang.String getMailUser()
           
 java.lang.String getOfferMailSubject()
           
 java.lang.String getOpenOfficeExecDir()
           
protected  java.io.File getOptionAsFile(java.lang.String parent, java.lang.String child)
           
 java.io.File getPdfDir()
           
 java.io.File getQueryHistoryDir()
           
 java.lang.String getServiceVersion()
          Get last saved version as string (last launch).
 java.lang.String getSessionDefaultParagraph()
           
 java.lang.String getSmtpHost()
           
 int getSmtpPort()
           
 java.io.File getTempDir()
           
 java.io.File getTemplatesDir()
           
 java.io.File getWebHarvestPreviewDir()
           
 java.io.File getWebHarvestScriptDir()
           
 boolean isMailDebug()
           
 void setLocale(java.util.Locale locale)
           
 void setServiceVersion(java.lang.String version)
          Set service version.
protected  void setSystemDefaultProps()
          Set solr and jms system configuration.
 void setWikittyCachePolicy(boolean b)
          Change wikitty cache policy.
 void setWikittyListenEvents(boolean b)
          Change listen events on cache use.
 void setWikittyNotifierTransporteurClass(java.lang.Class remoteNotifierClass)
          To specify class to use for notifier transporter
 void setWikittyPropagateEvents(boolean b)
          Change propagate events use.
 void setWikittyXMPPRoom(java.lang.String xmppRoom)
          To specify XMPP room to use
 void setWikittyXMPPServeur(java.lang.String xmppServer)
          to specify XMPP server to 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(java.lang.String... args)

addActionAlias

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

getApplicationVersion

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

Returns:
version

getServiceVersion

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

Returns:
version

setServiceVersion

public void setServiceVersion(java.lang.String version)
Set service version.

Parameters:
version - version to set

getDataDir

public java.lang.String getDataDir()

getDataDirAsFile

public java.io.File getDataDirAsFile()

getLocale

public java.util.Locale getLocale()

setLocale

public void setLocale(java.util.Locale locale)

getCommonsPropertiesFile

@Deprecated
public java.io.File getCommonsPropertiesFile()
Deprecated. 


getAttachmentsDir

public java.io.File getAttachmentsDir()

getEmbeddedFilesDir

public java.io.File getEmbeddedFilesDir()

getQueryHistoryDir

public java.io.File getQueryHistoryDir()

getTemplatesDir

public java.io.File getTemplatesDir()

getPdfDir

public java.io.File getPdfDir()

getTempDir

public java.io.File getTempDir()

getExportCSVDir

public java.io.File getExportCSVDir()

getImportCSVDir

public java.io.File getImportCSVDir()

getWebHarvestPreviewDir

public java.io.File getWebHarvestPreviewDir()

getWebHarvestScriptDir

public java.io.File getWebHarvestScriptDir()

getOpenOfficeExecDir

public java.lang.String getOpenOfficeExecDir()

getSmtpHost

public java.lang.String getSmtpHost()

getSmtpPort

public int getSmtpPort()

getImapHost

public java.lang.String getImapHost()

getImapPort

public int getImapPort()

getMailUser

public java.lang.String getMailUser()

getMailFrom

public java.lang.String getMailFrom()

getMailFromName

public java.lang.String getMailFromName()

getMailPassword

public java.lang.String getMailPassword()

getOfferMailSubject

public java.lang.String getOfferMailSubject()

isMailDebug

public boolean isMailDebug()

getMailAdmin

public java.util.List<java.lang.String> getMailAdmin()

addMailAdmin

public void addMailAdmin(java.lang.String email)

getSessionDefaultParagraph

public java.lang.String getSessionDefaultParagraph()

skipMigration

public boolean skipMigration()

setWikittyXMPPRoom

public void setWikittyXMPPRoom(java.lang.String xmppRoom)
To specify XMPP room to use

Parameters:
xmppRoom - to use
See Also:
XMPPNotifierTransporter.WIKITTY_XMPP_ROOM

setWikittyXMPPServeur

public void setWikittyXMPPServeur(java.lang.String xmppServer)
to specify XMPP server to use

Parameters:
xmppServer - to use
See Also:
XMPPNotifierTransporter.WIKITTY_XMPP_SERVER

setWikittyNotifierTransporteurClass

public void setWikittyNotifierTransporteurClass(java.lang.Class remoteNotifierClass)
To specify class to use for notifier transporter

Parameters:
remoteNotifierClass - class to use
See Also:
WikittyServiceNotifier.RemoteNotifier#WIKITTY_NOTIFIER_TRANSPORTER_CLASS

setWikittyPropagateEvents

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

Parameters:
b - new value
See Also:
WikittyServiceNotifier.RemoteNotifier#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 - cache policy
See Also:
WikittyServiceCached.WIKITTY_CACHE_ALLWAYS_RESTORE_COPIES_POLICY_OPTION

getOptionAsFile

protected java.io.File getOptionAsFile(java.lang.String parent,
                                       java.lang.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.