The atg.endeca.configuration.ApplicationConfiguration
class provides a central place for configuring various global settings, including language configuration options and application naming. The ATG-Endeca integration includes a component of this class, /atg/endeca/ApplicationConfiguration
. The following are key properties of this component:
locales
An array of the locales to generate records for.
defaultLanguageForApplications
The two-letter code for the default language for the application. This should be set only if there is a single MDEX for all languages being indexed. By default the value of this property is null.
baseApplicationName
The base string used in constructing the Endeca EAC application names. The default setting is ATG
. You can override the default when you use CIM to configure your ATG environment.
keyToApplicationName
A map of application keys to application names. You can use this property to override the default application naming convention discussed in Determining the Number of Endeca Applications to Create. For example, if an environment supports English, Spanish, and German, and there is a separate Endeca application for each language, you can specify the application names like this:
keyToApplicationName=\
en=MyEnglishApp,\
es=MySpanishApp,\
de=MyGermanApp
The application keys in this case are the two-letter language codes. An array of the keys is stored in the read-only applicationKeys
property.
If there is a single application, the key is default
. You can specify the application name like this:
keyToApplicationName=\
default=MyApp
defaultApplicationKey
The key of the application to use if the current application cannot otherwise be determined. If there is a separate application for each language, the first key listed in the applicationKeys
property is the default, unless you change the default by explicitly setting the defaultApplicationKey
property to a different key.
If there is only one Endeca application, you do not need to set this property; it will automatically be set to default
.
workbenchHostName
The fully qualified host name, including the domain, of the machine running the Endeca Workbench. You can specify this setting when you use CIM to configure your ATG environment.
workbenchPort
The port number for accessing the Endeca Workbench. The default setting is 8006
. You can override this default when you use CIM to configure your ATG environment.