public class NavigatorConfiguration extends Object implements NavigatorConfigurationIF
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOLOAD_ALL_KEY |
protected Set |
autoloads |
protected Map |
classmap |
protected boolean |
isAutoloadAll |
protected MVSConfig |
mvsConfig |
protected Map |
plugins |
protected Map |
properties |
ALLOW_LOAD_ON_REQUEST, ASSOC_CONTEXT_DECIDER, BASENAME_CONTEXT_DECIDER, CHECK_FOR_CHANGED_MODULES, DEF_CHAR_ENCODING, DEF_COMPARATOR, DEF_CONTENT_TYPE, DEF_DECIDER, DEF_FUNC_ONTRUNCATE, DEF_VAL_MAX_LIST_LENGTH, DEF_VAL_USERACTION_LOG_LENGTH, DEFVAL_COMPARATOR, DEFVAL_DECIDER, DEFVAL_OCC_EMPTYLOC, DEFVAL_OCC_EMPTYVALUE, DEFVAL_OCC_NULLLOC, DEFVAL_OCC_NULLVALUE, DEFVAL_OCCTYPE_DEFAULT, DEFVAL_OCCTYPE_DESCRIPTION, DEFVAL_OCCTYPE_METADATA, MAX_LIST_LENGTH, MODULE_READER, NAMESTRING_EMPTYVALUE, NAMESTRING_NONEXISTENT, NAMESTRING_NULLVALUE, OCC_CONTEXT_DECIDER, OCCTYPE_DEFAULT, OCCTYPE_DESCRIPTION, OCCTYPE_METADATA, OCCURRENCE_EMPTYLOCATOR, OCCURRENCE_EMPTYVALUE, OCCURRENCE_NULLLOCATOR, OCCURRENCE_NULLVALUE, PLUGINS_ORDER, USERACTION_LOG_LENGTH, VARIANT_CONTEXT_DECIDER| Constructor and Description |
|---|
NavigatorConfiguration()
INTERNAL: default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAutoloadTopicMap(String topicmapId) |
void |
addClass(String shortcut,
String fullClassName) |
void |
addModel(String name,
String title,
boolean isDefault) |
void |
addPlugin(PluginIF aPlugin)
Add a plugin to list of known plugins.
|
void |
addProperty(String name,
String value) |
void |
addSkin(String name,
String title,
boolean isDefault) |
void |
addView(String name,
String title,
boolean isDefault) |
Collection |
getAutoloadTopicMaps()
Get Set of Topicmaps which are supposed to be
autoloaded by application as a
Collection
of TopicMap ID Strings (used by TopicMapRegistry). |
String |
getClass(String shortcut)
Get full-qualified java classname for the
specified shortcut name, which can be used by
the some tags as attribute value.
|
Map |
getClassmap()
Get Java-Classname Mapping as a Map containing
key (=shortcut) - value (=full class name) pairs.
|
String |
getDefaultModel()
Retrieve the name of the application default model.
|
String |
getDefaultSkin()
Retrieve the name of the application default skin.
|
String |
getDefaultView()
Retrieve the name of the application default view.
|
Collection |
getModels()
Get all available models.
|
MVSConfig |
getMVSConfig()
get storage object for Model/View/Skin settings.
|
Collection |
getOrderedPlugins()
Get all plugins independent of their state in alphabetical order.
|
PluginIF |
getPlugin(String id)
Returns plugin object for specified identifier.
|
List |
getPluginGroups()
Return a list of all available plugin groups, that is achieved by
looping over all existing plugins and gather all distinct groups..
|
Collection |
getPlugins()
Return all plugin objects stored whatever their state (activated,
deactivated) is.
|
Collection |
getPlugins(String groupId)
Return plugin objects stored whatever their state (activated,
deactivated) is that match the specified
groupId. |
Map |
getProperties()
Get all Configuration Properties as a Map
containing key (=property-name) - value pairs.
|
String |
getProperty(String name)
Get Property value as String for specified name.
|
int |
getProperty(String name,
int defaultValue)
INTERNAL: Get Property value as int for specified name.
|
String |
getProperty(String name,
String defaultValue)
Get Property value as String for specified name.
|
Collection |
getSkins()
Get all available skins.
|
Collection |
getViews()
Get all available views.
|
boolean |
isAutoloadAllTopicMaps()
Returns true if all available topicmaps should be
autoloaded at startup time.
|
boolean |
isAutoloadTopicMap(String topicmapId)
Returns true if specified TopicMap ID (used by TopicMapRegistry)
should be autoloaded at startup or can be loaded
afterwards by request otherwise false.
|
void |
setAutoloads(Collection autoloads) |
void |
setClassmap(Map classmap) |
void |
setMVSConfig(MVSConfig mvsConfig) |
void |
setProperties(Map properties) |
String |
toString() |
public static final String AUTOLOAD_ALL_KEY
protected Map properties
protected Map classmap
protected Map plugins
protected MVSConfig mvsConfig
protected Set autoloads
protected boolean isAutoloadAll
public NavigatorConfiguration()
public String getProperty(String name)
NavigatorConfigurationIFgetProperty in interface NavigatorConfigurationIFpublic String getProperty(String name, String defaultValue)
NavigatorConfigurationIFdefaultValue.getProperty in interface NavigatorConfigurationIFpublic int getProperty(String name, int defaultValue)
NavigatorConfigurationIFdefaultValue.getProperty in interface NavigatorConfigurationIFpublic Map getProperties()
NavigatorConfigurationIFgetProperties in interface NavigatorConfigurationIFpublic void setProperties(Map properties)
public String getClass(String shortcut)
NavigatorConfigurationIFgetClass in interface NavigatorConfigurationIFpublic Map getClassmap()
NavigatorConfigurationIFgetClassmap in interface NavigatorConfigurationIFpublic void setClassmap(Map classmap)
public void addAutoloadTopicMap(String topicmapId)
public boolean isAutoloadTopicMap(String topicmapId)
NavigatorConfigurationIFisAutoloadTopicMap in interface NavigatorConfigurationIFTopicMapRepositoryIFpublic boolean isAutoloadAllTopicMaps()
NavigatorConfigurationIFisAutoloadAllTopicMaps in interface NavigatorConfigurationIFpublic Collection getAutoloadTopicMaps()
NavigatorConfigurationIFCollection
of TopicMap ID Strings (used by TopicMapRegistry).getAutoloadTopicMaps in interface NavigatorConfigurationIFpublic void setAutoloads(Collection autoloads)
public MVSConfig getMVSConfig()
NavigatorConfigurationIFgetMVSConfig in interface NavigatorConfigurationIFpublic void setMVSConfig(MVSConfig mvsConfig)
public Collection getModels()
NavigatorConfigurationIFgetModels in interface NavigatorConfigurationIFpublic String getDefaultModel()
NavigatorConfigurationIFgetDefaultModel in interface NavigatorConfigurationIFpublic Collection getViews()
NavigatorConfigurationIFgetViews in interface NavigatorConfigurationIFpublic String getDefaultView()
NavigatorConfigurationIFgetDefaultView in interface NavigatorConfigurationIFpublic Collection getSkins()
NavigatorConfigurationIFgetSkins in interface NavigatorConfigurationIFpublic String getDefaultSkin()
NavigatorConfigurationIFgetDefaultSkin in interface NavigatorConfigurationIFpublic void addPlugin(PluginIF aPlugin)
NavigatorConfigurationIFaddPlugin in interface NavigatorConfigurationIFpublic PluginIF getPlugin(String id)
NavigatorConfigurationIFgetPlugin in interface NavigatorConfigurationIFpublic Collection getPlugins(String groupId)
NavigatorConfigurationIFgroupId.getPlugins in interface NavigatorConfigurationIFpublic Collection getPlugins()
NavigatorConfigurationIFgetPlugins in interface NavigatorConfigurationIFpublic Collection getOrderedPlugins()
NavigatorConfigurationIFgetOrderedPlugins in interface NavigatorConfigurationIFpublic List getPluginGroups()
NavigatorConfigurationIFgetPluginGroups in interface NavigatorConfigurationIF