Package net.ontopia.topicmaps.nav2.core
Interface NavigatorApplicationIF
-
- All Known Implementing Classes:
NavigatorApplication
public interface NavigatorApplicationIFINTERNAL: Implemented by an object which stores all information and also all handles to configuration holders needed by the navigator web application.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_CONFIG_DEFAULT_VALUEINTERNAL: Default value for the Application configuration filename.static StringAPP_CONFIG_KEYINTERNAL: The context parameter name for the Application configuration file which value can be specified inweb.xml.static StringCONTEXT_KEYINTERNAL: The request scope attribute under which the root context tag object of the JSP is stored.static StringFOREACH_SEQ_FIRST_KEYINTERNAL: Variable name which is used/setup inside a foreach-tag for describing if it is the first iteration we are in.static StringFOREACH_SEQ_INDEX_KEYINTERNAL: Variable name which is used/setup inside a foreach-tag for describing the index number iterated currently.static StringFOREACH_SEQ_LAST_KEYINTERNAL: Variable name which is used/setup inside a foreach-tag for describing if it is the last iteration we are in.static StringJNDI_REPOSITORY_KEYINTERNAL: The context parameter name (seeweb.xml) for specifying the JNDI repository name, if the TopicMap Sources should be shared between applications running on the same server.static StringLOG4J_CONFIG_DEFAULT_VALUEINTERNAL: Default value for the Log4J configuration filename.static StringLOG4J_CONFIG_KEYINTERNAL: The context parameter name for the Log4J configuration file which value can be specified inweb.xml.static StringNAV_APP_KEYINTERNAL: The application scope attribute under which our main configuration object for the navigator Application is stored.static StringPLUGINS_ROOTDIR_KEYINTERNAL: The context parameter name for the directory containing all plugins, which value can be specified inweb.xml.static StringSOURCE_CONFIG_DEFAULT_VALUEINTERNAL: Default value for the TopicMap Sources configuration filename.static StringSOURCE_CONFIG_KEYINTERNAL: The context parameter name for the TopicMap Sources configuration file which value can be specified inweb.xml.static StringTOPICMAPS_REPOSITORY_IDINTERNAL: The id of the topic maps repository to use..static StringUSER_KEYINTERNAL: The session scope attribute for storing information about the user preferences (ie.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()INTERNAL: Close navigator application and free all resources connected to it.NavigatorConfigurationIFgetConfiguration()INTERNAL: GetNavigatorConfigurationIFobject which allows access to all application relevant configuration information.ObjectgetInstanceOf(String classname)INTERNAL: Get an object instance of specified class name centralized managed by this instance (application).ModuleIFgetModule(URL location)INTERNAL: ReturnModuleIFobject for specified resource location (given as URL) of module.StringgetName()INTERNAL: Gets the name of this application.TopicMapIFgetTopicMapById(String topicmapId)INTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.TopicMapIFgetTopicMapById(String topicmapId, boolean readonly)INTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.StringgetTopicMapRefId(TopicMapIF topicmap)INTERNAL: Get the reference ID of the topic map within the application's store registry.TopicMapRepositoryIFgetTopicMapRepository()INTERNAL: Returns the topic map repository used by the navigator application.voidreturnTopicMap(TopicMapIF topicmap)INTERNAL: Returns theTopicMapIFobject to the navigator application.
-
-
-
Field Detail
-
NAV_APP_KEY
static final String NAV_APP_KEY
INTERNAL: The application scope attribute under which our main configuration object for the navigator Application is stored.- See Also:
NavigatorApplication, Constant Field Values
-
CONTEXT_KEY
static final String CONTEXT_KEY
INTERNAL: The request scope attribute under which the root context tag object of the JSP is stored.- See Also:
ContextTag, Constant Field Values
-
USER_KEY
static final String USER_KEY
INTERNAL: The session scope attribute for storing information about the user preferences (ie. Model-View-Skin). Note: This is somewhat framework related.- See Also:
UserIF, Constant Field Values
-
FOREACH_SEQ_FIRST_KEY
static final String FOREACH_SEQ_FIRST_KEY
INTERNAL: Variable name which is used/setup inside a foreach-tag for describing if it is the first iteration we are in.- See Also:
- Constant Field Values
-
FOREACH_SEQ_LAST_KEY
static final String FOREACH_SEQ_LAST_KEY
INTERNAL: Variable name which is used/setup inside a foreach-tag for describing if it is the last iteration we are in.- See Also:
- Constant Field Values
-
FOREACH_SEQ_INDEX_KEY
static final String FOREACH_SEQ_INDEX_KEY
INTERNAL: Variable name which is used/setup inside a foreach-tag for describing the index number iterated currently.- See Also:
- Constant Field Values
-
LOG4J_CONFIG_KEY
static final String LOG4J_CONFIG_KEY
INTERNAL: The context parameter name for the Log4J configuration file which value can be specified inweb.xml.- See Also:
- Constant Field Values
-
LOG4J_CONFIG_DEFAULT_VALUE
static final String LOG4J_CONFIG_DEFAULT_VALUE
INTERNAL: Default value for the Log4J configuration filename.WEB-INF/config/log4j.properties- See Also:
- Constant Field Values
-
APP_CONFIG_KEY
static final String APP_CONFIG_KEY
INTERNAL: The context parameter name for the Application configuration file which value can be specified inweb.xml.- See Also:
- Constant Field Values
-
APP_CONFIG_DEFAULT_VALUE
static final String APP_CONFIG_DEFAULT_VALUE
INTERNAL: Default value for the Application configuration filename.WEB-INF/config/application.xml- See Also:
- Constant Field Values
-
SOURCE_CONFIG_KEY
static final String SOURCE_CONFIG_KEY
INTERNAL: The context parameter name for the TopicMap Sources configuration file which value can be specified inweb.xml.- See Also:
- Constant Field Values
-
TOPICMAPS_REPOSITORY_ID
static final String TOPICMAPS_REPOSITORY_ID
INTERNAL: The id of the topic maps repository to use..- See Also:
- Constant Field Values
-
SOURCE_CONFIG_DEFAULT_VALUE
static final String SOURCE_CONFIG_DEFAULT_VALUE
INTERNAL: Default value for the TopicMap Sources configuration filename.WEB-INF/config/tm-sources.xml- See Also:
- Constant Field Values
-
PLUGINS_ROOTDIR_KEY
static final String PLUGINS_ROOTDIR_KEY
INTERNAL: The context parameter name for the directory containing all plugins, which value can be specified inweb.xml.Note: If there is no value specified then the application will not fallback to a default value, but use no plugins at all.
- See Also:
- Constant Field Values
-
JNDI_REPOSITORY_KEY
static final String JNDI_REPOSITORY_KEY
INTERNAL: The context parameter name (seeweb.xml) for specifying the JNDI repository name, if the TopicMap Sources should be shared between applications running on the same server.- Since:
- 1.3.2
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
INTERNAL: Gets the name of this application.- Since:
- 1.3
-
getConfiguration
NavigatorConfigurationIF getConfiguration()
INTERNAL: GetNavigatorConfigurationIFobject which allows access to all application relevant configuration information.
-
getInstanceOf
Object getInstanceOf(String classname) throws NavigatorRuntimeException
INTERNAL: Get an object instance of specified class name centralized managed by this instance (application).- Parameters:
classname- String which can be a shortcut for a full qualified class name (FQCN) specified in the classmap ofNavigatorConfigurationIFIf no entry is found the classname is interpreted as FQCN.- Returns:
- An object instance of given class.
- Throws:
NavigatorRuntimeException- See Also:
NavigatorConfigurationIF
-
getTopicMapRepository
TopicMapRepositoryIF getTopicMapRepository()
INTERNAL: Returns the topic map repository used by the navigator application.- Since:
- 2.1
-
getTopicMapById
TopicMapIF getTopicMapById(String topicmapId) throws NavigatorRuntimeException
INTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.- Throws:
NavigatorRuntimeException
-
getTopicMapById
TopicMapIF getTopicMapById(String topicmapId, boolean readonly) throws NavigatorRuntimeException
INTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.- Throws:
NavigatorRuntimeException- Since:
- 2.1
-
returnTopicMap
void returnTopicMap(TopicMapIF topicmap)
INTERNAL: Returns theTopicMapIFobject to the navigator application. Note that the topic map object must have been retrieved from the navigator application for this to work properly.- Since:
- 2.0.7
-
getTopicMapRefId
String getTopicMapRefId(TopicMapIF topicmap)
INTERNAL: Get the reference ID of the topic map within the application's store registry.- Since:
- 1.3.3
-
getModule
ModuleIF getModule(URL location) throws NavigatorRuntimeException
INTERNAL: ReturnModuleIFobject for specified resource location (given as URL) of module. If the module cannot be found in internal object pool a new instance is created.- Throws:
NavigatorRuntimeException
-
close
void close()
INTERNAL: Close navigator application and free all resources connected to it.- Since:
- 2.1
-
-