cst.common.system
Class SessionProperties
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
cst.common.system.SessionProperties
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
public class SessionProperties
- extends java.util.HashMap<java.lang.String,java.lang.Object>
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Method Summary |
java.util.GregorianCalendar |
getCalendar()
|
java.lang.String[] |
getDateFormatPatterns()
|
Log |
getLog()
|
java.lang.String |
getMessage(java.lang.String key)
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.String parameter0)
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.String parameter0,
java.lang.String parameter1)
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.String parameter0,
java.lang.String parameter1,
java.lang.String parameter2)
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.String parameter0,
java.lang.String parameter1,
java.lang.String parameter2,
java.lang.String parameter3)
|
java.lang.Object |
getProperty(java.lang.String propertyName)
|
java.lang.String[] |
getShortMonths()
|
static java.util.Date |
getStandardDate(java.lang.String datePhrase)
|
static java.lang.String |
getStandardDateStamp(java.util.Date date)
|
static java.lang.String |
getStandardTimeStamp(java.util.Date date)
|
UserInterfaceFactory |
getUserInterfaceFactory()
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object object)
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
CONFIGURATION_MANAGER
public static final java.lang.String CONFIGURATION_MANAGER
- See Also:
- Constant Field Values
TRIAL_SUBJECT_MODEL_FACTORY
public static final java.lang.String TRIAL_SUBJECT_MODEL_FACTORY
- See Also:
- Constant Field Values
USER_INTERFACE_FACTORY
public static final java.lang.String USER_INTERFACE_FACTORY
- See Also:
- Constant Field Values
CURRENT_USER
public static final java.lang.String CURRENT_USER
- See Also:
- Constant Field Values
ADMIN_USER
public static final java.lang.String ADMIN_USER
- See Also:
- Constant Field Values
NAVIGATION_MANAGER
public static final java.lang.String NAVIGATION_MANAGER
- See Also:
- Constant Field Values
LOGGING_SERVICE
public static final java.lang.String LOGGING_SERVICE
- See Also:
- Constant Field Values
ADMIN_SERVICE
public static final java.lang.String ADMIN_SERVICE
- See Also:
- Constant Field Values
ADMIN_PASSWORD_UPDATER
public static final java.lang.String ADMIN_PASSWORD_UPDATER
- See Also:
- Constant Field Values
LOG
public static final java.lang.String LOG
- See Also:
- Constant Field Values
LOCALE
public static final java.lang.String LOCALE
- See Also:
- Constant Field Values
DIALOG
public static final java.lang.String DIALOG
- See Also:
- Constant Field Values
SAVE_CHANGES_MONITOR
public static final java.lang.String SAVE_CHANGES_MONITOR
- See Also:
- Constant Field Values
DATABASE_SERVER
public static final java.lang.String DATABASE_SERVER
- See Also:
- Constant Field Values
DATABASE_PORT
public static final java.lang.String DATABASE_PORT
- See Also:
- Constant Field Values
DEMO_MODE
public static final java.lang.String DEMO_MODE
- See Also:
- Constant Field Values
CURRENT_FILTER
public static final java.lang.String CURRENT_FILTER
- See Also:
- Constant Field Values
DB_USER_ID
public static final java.lang.String DB_USER_ID
- See Also:
- Constant Field Values
DB_PASSWORD
public static final java.lang.String DB_PASSWORD
- See Also:
- Constant Field Values
IS_COMPONENT_MODE
public static final java.lang.String IS_COMPONENT_MODE
- See Also:
- Constant Field Values
SCAN_PLUGIN_DIRECTORY
public static final java.lang.String SCAN_PLUGIN_DIRECTORY
- See Also:
- Constant Field Values
PLUGIN_CLASS_LOADER
public static final java.lang.String PLUGIN_CLASS_LOADER
- See Also:
- Constant Field Values
EMPTY_STRING
public static final java.lang.String EMPTY_STRING
- See Also:
- Constant Field Values
SessionProperties
public SessionProperties()
getUserInterfaceFactory
public UserInterfaceFactory getUserInterfaceFactory()
getLog
public Log getLog()
getProperty
public java.lang.Object getProperty(java.lang.String propertyName)
setProperty
public void setProperty(java.lang.String propertyName,
java.lang.Object object)
getCalendar
public java.util.GregorianCalendar getCalendar()
getShortMonths
public java.lang.String[] getShortMonths()
getStandardDate
public static java.util.Date getStandardDate(java.lang.String datePhrase)
throws java.text.ParseException
- Throws:
java.text.ParseException
getStandardDateStamp
public static java.lang.String getStandardDateStamp(java.util.Date date)
getStandardTimeStamp
public static java.lang.String getStandardTimeStamp(java.util.Date date)
getDateFormatPatterns
public java.lang.String[] getDateFormatPatterns()
getMessage
public java.lang.String getMessage(java.lang.String key)
getMessage
public java.lang.String getMessage(java.lang.String key,
java.lang.String parameter0)
getMessage
public java.lang.String getMessage(java.lang.String key,
java.lang.String parameter0,
java.lang.String parameter1)
getMessage
public java.lang.String getMessage(java.lang.String key,
java.lang.String parameter0,
java.lang.String parameter1,
java.lang.String parameter2)
getMessage
public java.lang.String getMessage(java.lang.String key,
java.lang.String parameter0,
java.lang.String parameter1,
java.lang.String parameter2,
java.lang.String parameter3)