com.filenet.wcm.toolkit.server.util
Class WcmHelpMap
- java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.filenet.wcm.toolkit.server.util.WcmHelpMap
All implemented interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
- public class WcmHelpMap
- extends java.util.Properties
See Also:
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
HELP_DEFAULT_PATH
|
|
HELP_EXTENSION_KEY
|
|
HELP_ROOT_PATH_KEY
|
|
helpExtension
|
| Fields inherited from class java.util.Properties |
|---|
defaults |
Constructor Summary
| Constructor and Description |
|---|
WcmHelpMap(java.io.InputStream in)
|
WcmHelpMap(java.lang.String basePath)
Deprecated. use WcmHelpMap(InputStream in)
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
get(java.lang.Object key)
Get the value for the specified key.
|
|
getHelpRootPath()
Get the help root path by looking up the key HELP_PATH_ROOT_KEY
in the help map.
|
|
getQualifiedHelpURL(java.lang.String helpKey,java.lang.String helpBaseURL)
Get the full qualified URL to the context sensitive help HTML based on
the help map.
|
|
getQualifiedHelpURL(java.lang.String helpKey,java.lang.String helpBaseURL,java.lang.String extension)
Get the full qualified URL to the context sensitive help HTML based on
the help map.
|
|
getWcmHelpMap(javax.servlet.ServletContext sc)
|
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail
HELP_ROOT_PATH_KEY
- public static final java.lang.String HELP_ROOT_PATH_KEY
See Also:
HELP_EXTENSION_KEY
- public static final java.lang.String HELP_EXTENSION_KEY
See Also:
HELP_DEFAULT_PATH
- protected static final java.lang.String HELP_DEFAULT_PATH
See Also:
helpExtension
- protected java.lang.String helpExtension
Constructor Detail
WcmHelpMap
- public WcmHelpMap(java.lang.String basePath)
Deprecated. use WcmHelpMap(InputStream in)
WcmHelpMap
- public WcmHelpMap(java.io.InputStream in)
Method Detail
getWcmHelpMap
- public static WcmHelpMap getWcmHelpMap( javax.servlet.ServletContext sc)
get
- public java.lang.Object get(java.lang.Object key)
Get the value for the specified key. If a value does not exist
for the key, the key itself is returned.
Specified by:
get in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
get in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Parameters:
key - Returns:
The value, or the key if no value exists.
getHelpRootPath
- public java.lang.String getHelpRootPath( )
Get the help root path by looking up the key HELP_PATH_ROOT_KEY
in the help map. If not defined the default value "help" is
returned.
Returns:
The help root path.
getQualifiedHelpURL
- public java.lang.String getQualifiedHelpURL( java.lang.String helpKey,
- java.lang.String helpBaseURL,
- java.lang.String extension)
Get the full qualified URL to the context sensitive help HTML based on
the help map.
The value in the help map may contain "#anchor" notation. If present, the extension is inserted
in front of it before calculating the final URL.
Parameters:
helpKey - - The help key produced by the controller. helpBaseURL - - The base url where help is located ex: "http://host:port/app" extension - - The extension. If null, the default extension of "htm" is used unless
htmlExtension is defined in the help map. Returns:
The help URL.
getQualifiedHelpURL
- public java.lang.String getQualifiedHelpURL( java.lang.String helpKey,
- java.lang.String helpBaseURL)
Get the full qualified URL to the context sensitive help HTML based on
the help map. The default extension of "htm" is used unless htmlExtension is defined
in the help map.
The value in the help map may contain "#anchor" notation. If present, the extension is inserted
in front of it before calculating the final URL.
Parameters:
helpKey - - The help key produced by the controller. helpBaseURL - - The base url where help is located ex: "http://host:port/app" Returns:
The help URL.