|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.common.SitoolsSettings
public final class SitoolsSettings
Class for managing global settings
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_BUNDLE
Default bundle name |
static java.lang.String |
DEFAULT_HOST_NAME
Default host name for HTTP server |
static java.lang.String |
DEFAULT_HOST_PORT
Default host port for HTTP server |
| Method Summary | |
|---|---|
AppRegistryApplication |
getAppRegistry()
Gets the appRegistry value |
java.lang.String |
getAuthenticationAGENT()
Gets the authenticationAGENT value |
java.lang.String |
getAuthenticationALGORITHM()
Gets the authenticationALGORITHM value |
java.lang.String |
getAuthenticationCOOKIE()
Gets the authenticationCOOKIE value |
java.lang.String |
getAuthenticationDOMAIN()
Gets the authenticationDOMAIN value |
SitoolsRealm |
getAuthenticationRealm()
Gets the authenticationRealm value |
java.lang.String |
getAuthenticationSCHEME()
Gets the authenticationSCHEME value |
java.util.ResourceBundle |
getBundle()
Gets the bundle value |
SitoolsComponent |
getComponent()
Gets the component value |
java.lang.String |
getFormattedString(java.lang.String format)
To replace "${ROOT_DIRECTORY}" in String |
static SitoolsSettings |
getInstance()
Gets default bundle settings |
static SitoolsSettings |
getInstance(java.lang.String bundle)
Gets bundle settings |
static SitoolsSettings |
getInstance(java.lang.String bundle,
java.lang.ClassLoader classloader,
java.util.Locale locale,
boolean defaultBundle)
Settings constructor |
int |
getInt(java.lang.String key)
gets the property value |
java.util.List<java.lang.String> |
getIntranetAddresses()
Gets the intranetAddresses value |
java.util.List<Category> |
getIntranetCategories()
Gets the intranetCategories value |
java.lang.Long |
getLong(java.lang.String key)
gets the property value |
java.lang.String |
getMaxConnectionsPerHost()
Gets the maxConnectionsPerHost value |
java.lang.String |
getMaxTotalConnections()
Gets the maxTotalConnections value |
NotificationManager |
getNotificationManager()
Gets the notificationManager value |
java.lang.String |
getPublicHostDomain()
Gets the publicHostDomain value |
java.lang.String |
getRootDirectory()
Gets the rootDirectory value |
java.lang.String |
getSecretKey()
Gets the secretKey value |
java.util.Map<java.lang.String,java.lang.Object> |
getSettings(java.lang.String baseName)
Gets settings starting with baseName |
java.util.Map<java.lang.String,java.lang.Object> |
getSettings(java.lang.String baseName,
java.lang.String replacement)
Gets settings starting with baseName and replaces baseName with replacement. |
java.lang.String |
getStoreDIR()
Gets the storeDIR value |
java.lang.String |
getStoreDIR(java.lang.String storeID)
Gets Store Directory for a specific ID |
java.util.Map<java.lang.String,java.lang.Object> |
getStores()
Gets the stores value |
java.lang.String |
getString(java.lang.String key)
gets the property value |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
gets the property value |
java.lang.String |
getTmpFolderUrl()
Gets the tmpFolderUrl value |
java.lang.String |
getUserStorageDir(java.lang.String username)
Get the userstorage directory for a particular username |
int |
getUserStorageRefreshDelay()
Gets the userStorageRefreshDelay value |
java.lang.String |
getVariableStoreDIR(java.lang.String storeID)
Gets Store Directory for a specific ID keeping ${ROOT_DIRECTORY} |
void |
initIntranetCategories()
Init the intranet categories |
boolean |
isSecured()
Gets the secured value |
boolean |
isStartWithMigration()
Gets the startWithMigration value |
void |
setAppRegistry(AppRegistryApplication appRegistry)
Sets the value of appRegistry |
void |
setAuthenticationAGENT(java.lang.String authenticationAGENT)
Sets the value of authenticationAGENT |
void |
setAuthenticationALGORITHM(java.lang.String authenticationALGORITHM)
Sets the value of authenticationALGORITHM |
void |
setAuthenticationCOOKIE(java.lang.String authenticationCOOKIE)
Sets the value of authenticationCOOKIE |
void |
setAuthenticationDOMAIN(java.lang.String authenticationDOMAIN)
Sets the value of authenticationDOMAIN |
void |
setAuthenticationRealm(SitoolsRealm authenticationRealmParameter)
Sets the value of authenticationRealm |
void |
setAuthenticationSCHEME(java.lang.String authenticationSCHEME)
Sets the value of authenticationSCHEME |
void |
setComponent(SitoolsComponent component)
Sets the value of component |
void |
setIntranetAddresses(java.util.List<java.lang.String> intranetAddresses)
Sets the value of intranetAddresses |
void |
setIntranetCategories(java.util.List<Category> intranetCategories)
Sets the value of intranetCategories |
void |
setMaxConnectionsPerHost(java.lang.String maxConnectionsPerHost)
Sets the value of maxConnectionsPerHost |
void |
setMaxTotalConnections(java.lang.String maxTotalConnections)
Sets the value of maxTotalConnections |
void |
setNotificationManager(NotificationManager notificationManager)
Sets the value of notificationManager |
void |
setPublicHostDomain(java.lang.String publicHostDomainParameter)
Sets the value of publicHostDomain |
void |
setRootDirectory(java.lang.String rootDirectory)
Sets the value of rootDirectory |
void |
setSecretKey(java.lang.String secretKey)
Sets the value of secretKey |
void |
setSecured(boolean secured)
Sets the value of secured |
void |
setStartWithMigration(boolean startWithMigration)
Sets the value of startWithMigration |
void |
setStoreDIR(java.lang.String storeDIRParameter)
Sets the value of storeDIR |
void |
setStores(java.util.Map<java.lang.String,java.lang.Object> stores)
Sets the value of stores |
void |
setTmpFolderUrl(java.lang.String tmpFolderUrl)
Sets the value of tmpFolderUrl |
void |
setUserStorageRefreshDelay(int userStorageRefreshDelay)
Sets the value of userStorageRefreshDelay |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_HOST_PORT
public static final java.lang.String DEFAULT_HOST_NAME
public static final java.lang.String DEFAULT_BUNDLE
| Method Detail |
|---|
public static SitoolsSettings getInstance(java.lang.String bundle,
java.lang.ClassLoader classloader,
java.util.Locale locale,
boolean defaultBundle)
bundle - String name of resource bundleclassloader - ClassLoader of the bundle (useful in osgi environment)locale - LocaledefaultBundle - true if this settings must be stored as default settings.
public static SitoolsSettings getInstance(java.lang.String bundle)
bundle - String bundle name
public static SitoolsSettings getInstance()
public void setAuthenticationDOMAIN(java.lang.String authenticationDOMAIN)
authenticationDOMAIN - the authenticationDOMAIN to setpublic java.lang.String getAuthenticationDOMAIN()
public java.lang.String getSecretKey()
public void setSecretKey(java.lang.String secretKey)
secretKey - the secretKey to setpublic java.lang.String getAuthenticationSCHEME()
public void setAuthenticationSCHEME(java.lang.String authenticationSCHEME)
authenticationSCHEME - the authenticationSCHEME to setpublic java.lang.String getRootDirectory()
public void setRootDirectory(java.lang.String rootDirectory)
rootDirectory - the rootDirectory to setpublic void setAuthenticationRealm(SitoolsRealm authenticationRealmParameter)
authenticationRealmParameter - the authenticationRealm to setpublic SitoolsRealm getAuthenticationRealm()
public java.lang.String getMaxTotalConnections()
public void setMaxTotalConnections(java.lang.String maxTotalConnections)
maxTotalConnections - the maxTotalConnections to setpublic java.lang.String getMaxConnectionsPerHost()
public void setMaxConnectionsPerHost(java.lang.String maxConnectionsPerHost)
maxConnectionsPerHost - the maxConnectionsPerHost to setpublic void setPublicHostDomain(java.lang.String publicHostDomainParameter)
publicHostDomainParameter - the publicHostDomain to setpublic java.lang.String getPublicHostDomain()
public java.lang.String getStoreDIR()
public void setStoreDIR(java.lang.String storeDIRParameter)
storeDIRParameter - the storeDIR to setpublic java.lang.String getStoreDIR(java.lang.String storeID)
storeID - property key
public java.lang.String getVariableStoreDIR(java.lang.String storeID)
storeID - the store identifier
public void setTmpFolderUrl(java.lang.String tmpFolderUrl)
tmpFolderUrl - the tmpFolderUrl to setpublic java.lang.String getTmpFolderUrl()
public java.lang.String getFormattedString(java.lang.String format)
format - the string to format
public java.lang.String getString(java.lang.String key)
key - property
public java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - propertydefaultValue - returned value if key not found
public int getInt(java.lang.String key)
key - property
public java.lang.Long getLong(java.lang.String key)
key - property
public java.util.Map<java.lang.String,java.lang.Object> getSettings(java.lang.String baseName)
baseName - String
public java.util.Map<java.lang.String,java.lang.Object> getSettings(java.lang.String baseName,
java.lang.String replacement)
baseName - Stringreplacement - String
public void initIntranetCategories()
public AppRegistryApplication getAppRegistry()
public void setAppRegistry(AppRegistryApplication appRegistry)
appRegistry - the appRegistry to setpublic NotificationManager getNotificationManager()
public void setNotificationManager(NotificationManager notificationManager)
notificationManager - the notificationManager to setpublic java.util.ResourceBundle getBundle()
public java.util.Map<java.lang.String,java.lang.Object> getStores()
public void setStores(java.util.Map<java.lang.String,java.lang.Object> stores)
stores - the stores to setpublic java.lang.String getAuthenticationALGORITHM()
public void setAuthenticationALGORITHM(java.lang.String authenticationALGORITHM)
authenticationALGORITHM - the authenticationALGORITHM to setpublic java.lang.String getAuthenticationCOOKIE()
public void setAuthenticationCOOKIE(java.lang.String authenticationCOOKIE)
authenticationCOOKIE - the authenticationCOOKIE to setpublic java.lang.String getAuthenticationAGENT()
public void setAuthenticationAGENT(java.lang.String authenticationAGENT)
authenticationAGENT - the authenticationAGENT to setpublic java.util.List<Category> getIntranetCategories()
public void setIntranetCategories(java.util.List<Category> intranetCategories)
intranetCategories - the intranetCategories to setpublic void setIntranetAddresses(java.util.List<java.lang.String> intranetAddresses)
intranetAddresses - the intranetAddresses to setpublic java.util.List<java.lang.String> getIntranetAddresses()
public void setComponent(SitoolsComponent component)
component - the component to setpublic SitoolsComponent getComponent()
public boolean isSecured()
public void setSecured(boolean secured)
secured - the secured to setpublic int getUserStorageRefreshDelay()
public void setUserStorageRefreshDelay(int userStorageRefreshDelay)
userStorageRefreshDelay - the userStorageRefreshDelay to setpublic boolean isStartWithMigration()
public void setStartWithMigration(boolean startWithMigration)
startWithMigration - the startWithMigration to setpublic java.lang.String getUserStorageDir(java.lang.String username)
username - the username
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||