|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.BasicPrivateLabelLoader
public class BasicPrivateLabelLoader
Nested Class Summary | |
---|---|
static interface |
BasicPrivateLabelLoader.OutputHandler
OutputHandler interface |
Field Summary | |
---|---|
protected static boolean |
_isTrackServlet
|
static boolean |
ALLOW_DOMAIN_INCLUDE
|
static boolean |
ALWAYS_LOAD_WAR_PRIVATELABEL
|
static java.lang.String |
ATTR_access
|
static java.lang.String |
ATTR_accountLogin
|
static java.lang.String |
ATTR_aclName
|
static java.lang.String |
ATTR_active
|
static java.lang.String |
ATTR_alias
|
static java.lang.String |
ATTR_allowLogin
|
static java.lang.String |
ATTR_altButton
|
static java.lang.String |
ATTR_altDir
|
static java.lang.String |
ATTR_back
|
static java.lang.String |
ATTR_backOffset
|
static java.lang.String |
ATTR_backSize
|
static java.lang.String |
ATTR_baseURL
|
static java.lang.String |
ATTR_button
|
static java.lang.String |
ATTR_buttonDir
|
static java.lang.String |
ATTR_class
|
static java.lang.String |
ATTR_clear
|
static java.lang.String |
ATTR_code
|
static java.lang.String |
ATTR_color
|
static java.lang.String |
ATTR_cssDir
|
static java.lang.String |
ATTR_default
|
static java.lang.String |
ATTR_demo
|
static java.lang.String |
ATTR_desc
|
static java.lang.String |
ATTR_description
|
static java.lang.String |
ATTR_dir
|
static java.lang.String |
ATTR_domainName
|
static java.lang.String |
ATTR_emailLogin
|
static java.lang.String |
ATTR_enabled
|
static java.lang.String |
ATTR_eval
|
static java.lang.String |
ATTR_failover
|
static java.lang.String |
ATTR_file
|
static java.lang.String |
ATTR_from
|
static java.lang.String |
ATTR_geocode
|
static java.lang.String |
ATTR_help
|
static java.lang.String |
ATTR_hidden
|
static java.lang.String |
ATTR_host
|
static java.lang.String |
ATTR_i18n
|
static java.lang.String |
ATTR_i18nPackage
|
static java.lang.String |
ATTR_icon
|
static java.lang.String |
ATTR_iconAnchor
|
static java.lang.String |
ATTR_iconDir
|
static java.lang.String |
ATTR_iconHotspot
|
static java.lang.String |
ATTR_iconName
|
static java.lang.String |
ATTR_iconOffset
|
static java.lang.String |
ATTR_iconSize
|
static java.lang.String |
ATTR_id
|
static java.lang.String |
ATTR_ignoreDuplicates
|
static java.lang.String |
ATTR_image
|
static java.lang.String |
ATTR_includeDefault
|
static java.lang.String |
ATTR_jsp
|
static java.lang.String |
ATTR_jspFile
|
static java.lang.String |
ATTR_jspName
|
static java.lang.String |
ATTR_key
|
static java.lang.String |
ATTR_keyPrefix
|
static java.lang.String |
ATTR_locale
|
static java.lang.String |
ATTR_loggedIn
|
static java.lang.String |
ATTR_maximum
|
static java.lang.String |
ATTR_menuBar
|
static java.lang.String |
ATTR_name
|
static java.lang.String |
ATTR_navigation
|
static java.lang.String |
ATTR_only
|
static java.lang.String |
ATTR_optional
|
static java.lang.String |
ATTR_radius
|
static java.lang.String |
ATTR_restricted
|
static java.lang.String |
ATTR_rtKey
|
static java.lang.String |
ATTR_rtPropPrefix
|
static java.lang.String |
ATTR_ruleFactoryName
|
static java.lang.String |
ATTR_shadow
|
static java.lang.String |
ATTR_shadowSize
|
static java.lang.String |
ATTR_showPassword
|
static java.lang.String |
ATTR_sort
|
static java.lang.String |
ATTR_sysAdminOnly
|
static java.lang.String |
ATTR_target
|
static java.lang.String |
ATTR_topMenu
|
static java.lang.String |
ATTR_trim
|
static java.lang.String |
ATTR_type
|
static java.lang.String |
ATTR_url
|
static java.lang.String |
ATTR_useAsDefault
|
static java.lang.String |
ATTR_userLogin
|
static java.lang.String |
ATTR_value
|
static java.lang.String |
ATTR_values
|
static java.lang.String |
ATTR_zoom
|
static java.lang.String |
CLASS_Celltrac
|
static java.lang.String |
CLASS_PrivateLabelLoader
|
static java.lang.String |
CLASS_Service
|
static java.lang.String |
CLASS_Track
|
static java.util.Set<I18N.Text> |
I18N_STRINGS
|
static java.util.Map<java.lang.String,I18N.Text> |
I18N_STRINGS_MAP
|
static java.lang.String |
PRIVATE_LABEL_XML
|
protected static BasicPrivateLabelLoader |
privateLabelLoader
|
static boolean |
SAVE_I18N_STRINGS
|
static java.lang.String |
TAG_Acl
|
static java.lang.String |
TAG_AclName
|
static java.lang.String |
TAG_Acls
|
static java.lang.String |
TAG_ActionCommand
|
static java.lang.String |
TAG_Alias
|
static java.lang.String |
TAG_BaseURL
|
static java.lang.String |
TAG_Body
|
static java.lang.String |
TAG_ButtonImage
|
static java.lang.String |
TAG_ButtonImageAlt
|
static java.lang.String |
TAG_Copyright
|
static java.lang.String |
TAG_DateFormat
|
static java.lang.String |
TAG_DefaultLoginAccount
|
static java.lang.String |
TAG_DefaultLoginUser
|
static java.lang.String |
TAG_Description
|
static java.lang.String |
TAG_Domain
|
static java.lang.String |
TAG_EMailAddress
|
static java.lang.String |
TAG_EMailAddresses
|
static java.lang.String |
TAG_EventNotificationEMail
|
static java.lang.String |
TAG_GeocodeProvider
|
static java.lang.String |
TAG_I18N
|
static java.lang.String |
TAG_IconImage
|
static java.lang.String |
TAG_IconSelector
|
static java.lang.String |
TAG_Include
|
static java.lang.String |
TAG_JSP
|
static java.lang.String |
TAG_JSPEntries
|
static java.lang.String |
TAG_Legend
|
static java.lang.String |
TAG_Link
|
static java.lang.String |
TAG_Locale
|
static java.lang.String |
TAG_LogMessage
|
static java.lang.String |
TAG_MapProvider
|
static java.lang.String |
TAG_MapShapes
|
static java.lang.String |
TAG_MenuDescription
|
static java.lang.String |
TAG_MenuGroup
|
static java.lang.String |
TAG_MenuHelp
|
static java.lang.String |
TAG_MobileLocationProvider
|
static java.lang.String |
TAG_NavigationDescription
|
static java.lang.String |
TAG_NavigationTab
|
static java.lang.String |
TAG_Options
|
static java.lang.String |
TAG_Page
|
static java.lang.String |
TAG_PageTitle
|
static java.lang.String |
TAG_PasswordHandler
|
static java.lang.String |
TAG_POI
|
static java.lang.String |
TAG_Points
|
static java.lang.String |
TAG_PointsOfInterest
|
static java.lang.String |
TAG_PredefinedRuleActions
|
static java.lang.String |
TAG_PrivateLabels
|
static java.lang.String |
TAG_Properties
|
static java.lang.String |
TAG_Property
|
static java.lang.String |
TAG_PropertyGroup
|
static java.lang.String |
TAG_Pushpin
|
static java.lang.String |
TAG_Pushpins
|
static java.lang.String |
TAG_Report
|
static java.lang.String |
TAG_Reports
|
static java.lang.String |
TAG_ReverseGeocodeProvider
|
static java.lang.String |
TAG_RuleAction
|
static java.lang.String |
TAG_Select
|
static java.lang.String |
TAG_Shape
|
static java.lang.String |
TAG_StatusCode
|
static java.lang.String |
TAG_StatusCodes
|
static java.lang.String |
TAG_String
|
static java.lang.String |
TAG_Subject
|
static java.lang.String |
TAG_SupportedLocales
|
static java.lang.String |
TAG_TimeFormat
|
static java.lang.String |
TAG_TimeZones
|
static java.lang.String |
TAG_Title
|
static java.lang.String |
TAG_WebPages
|
Constructor Summary | |
---|---|
BasicPrivateLabelLoader()
Constructor |
Method Summary | |
---|---|
protected void |
_addPrivateLabel(java.io.File xmlFile,
BasicPrivateLabel privLabel,
boolean ignoreDuplicates)
Adds a BasicPrivateLabel to the managed private label list |
protected java.lang.String |
_adjustPropertyKey(java.io.File xmlFile,
java.lang.String key)
Trim and remove trailing '=' from Property key |
protected static BasicPrivateLabelLoader |
_getInstance()
Returns a singleton instance of BasicPrivateLabelLoader |
protected java.io.File |
_getPrivateXMLFile()
Gets the 'private.xml' file which will be loaded |
protected static boolean |
_isAttributeActive(java.lang.String active,
java.lang.String name)
Returns true if active ('active' is true, or equals 'name') |
protected int |
_loadXML(java.io.File xmlFile,
RTProperties dftProps,
RTProperties ovrProps,
OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap,
OrderedMap<java.lang.String,java.lang.String> dftLegend,
boolean ignoreDuplicates)
Loads/Reloads the specified XML file. |
protected int |
_resetLoadDefaultXML()
Loads/Reloads the 'private.xml' file |
protected int |
_resetLoadXML(java.io.File xmlFile)
Loads/Reloads the specified XML file. |
protected void |
_setHasParsingErrors(java.io.File xmlFile)
Called by this BasicPrivateLabelLoader instance (or subclass) if a parsing error was encountered |
protected void |
_setHasParsingWarnings(java.io.File xmlFile)
Called by this BasicPrivateLabelLoader instance (or subclass) if a parsing warning was encountered |
protected I18N.Text |
_validateI18NText(java.io.File xmlFile,
I18N.Text text)
Validates the specified I18N.Text value |
protected BasicPrivateLabel |
createPrivateLabel(java.io.File xmlFile,
java.lang.String hostName)
Creates a new BasicPrivalLabel instance. |
protected BasicPrivateLabel |
createPrivateLabel(java.io.File xmlFile,
java.lang.String className,
java.lang.String hostName)
Instanciates a BasicPrivateLabel instance from the specified class name |
static BasicPrivateLabel |
getDefaultPrivateLabel()
Returns the default BasicPrivateLabel instance |
static java.lang.Class |
getInstanceClass()
Returns the BasicPrivateLabelLoader class (may be a subclass) |
static BasicPrivateLabel |
getPrivateLabel(java.lang.String name)
Returns the BasicPrivateLabel instance for the specified host name |
static BasicPrivateLabel |
getPrivateLabelForURL(java.net.URL url)
Returns the BasicPrivateLabel instance for the specified request URL |
protected java.util.Map<java.lang.String,BasicPrivateLabel> |
getPrivateLabelMap()
Gets the Map of managed BasicPrivateLabel instances |
static java.util.Collection<java.lang.String> |
getPrivateLabelNames()
Returns a String array of all private label keys/names |
static java.util.Collection<java.lang.String> |
getPrivateLabelNames(boolean nameOnly)
Returns a String array of all private label keys/names |
static java.io.File |
getPrivateXMLFile()
Returns the the 'private.xml' File (from which the BasicPrivateLabel will be loaded) |
static BasicPrivateLabel |
getThreadPrivateLabel()
Gets the current BasicPrivateLabel (or subclass) instance assigned to the current Thread |
static java.lang.String |
getURLHostName(java.lang.String urlStr)
Extracts and returns the host name from the specified URL |
static boolean |
hasDefaultPrivateLabel()
Returns true if a default PrivateLabel Domain has been defined |
static boolean |
hasParsingErrors()
Returns true if this BasicPrivateLabelLoader encounted errors while parsing 'private.xml' |
static boolean |
hasParsingWarnings()
Returns true if this BasicPrivateLabelLoader encounted warnings while parsing 'private.xml' |
static boolean |
isTrackServlet()
|
protected boolean |
isValidEMailAddress(java.lang.String emailAddr)
|
protected boolean |
isValidHostname(java.lang.String host)
Returns true if the specified host is valid |
static int |
loadPrivateLabelXML()
Loads the 'private.xml' file |
static int |
loadPrivateLabelXML(java.io.File xmlFile)
Loads the 'private.xml' file |
static void |
main(java.lang.String[] argv)
Debug/Testing entry point |
protected static I18N.Text |
parseI18N(java.io.File xmlFile,
java.lang.String pkgName,
java.lang.String i18nKey,
java.lang.String dftStr)
Create an I18N.Text wrapper with the specified key and default text |
protected static I18N.Text |
parseI18N(java.io.File xmlFile,
java.lang.String pkgName,
java.lang.String i18nKey,
java.lang.String dftStr,
boolean showError)
Create an I18N.Text wrapper with the specified key and default text |
protected java.lang.String |
parseLegendHTML(java.lang.String refName,
java.util.Locale locale,
OrderedMap pushpinMap,
java.lang.String legendType,
org.w3c.dom.Element legendElem)
Parse HTML Legend |
protected void |
parseTag_Acls(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element acls)
Parse 'Acls' tag |
protected void |
parseTag_Alias(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem)
Parse 'Alias' tag |
protected void |
parseTag_BaseURL(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem)
Parse 'BaseURL' tag |
protected void |
parseTag_Domain(java.io.File xmlFile,
java.lang.String i18nPkgName,
org.w3c.dom.Element domain,
RTProperties backstopProps,
RTProperties overrideProps,
OrderedSet<java.lang.String> timeZones,
OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap,
OrderedMap<java.lang.String,java.lang.String> dftLegend,
boolean ignoreDuplicates)
Parse 'Domain' tag |
protected void |
parseTag_EMailAddresses(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element listAttrElem)
Parse 'EMailAddresses' tag |
protected void |
parseTag_EventNotificationEMail(java.io.File xmlFile,
java.lang.String i18nPackage,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem)
Parse 'EventNotificationEMail' tag |
protected void |
parseTag_GeocodeProvider(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element gpAttrElem)
Parse 'GeocodeProvider' tag |
protected void |
parseTag_I18N(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem,
RTProperties i18nStr)
Parse 'I18N' tag |
protected void |
parseTag_JSPEntries(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element jspFiles)
Parse 'JSPFiles' tag. |
protected void |
parseTag_LogMessage(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem)
Parse 'LogMessage' tag. |
protected void |
parseTag_MapProvider(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem,
OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap,
OrderedMap<java.lang.String,java.lang.String> dftLegend)
Parse 'MapProvider' tag. |
protected void |
parseTag_MapShapes(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel bpl,
org.w3c.dom.Element mapShps)
Parse 'MapShapes' tag. |
protected void |
parseTag_MobileLocationProvider(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element mpAttrElem)
Parse 'MobileLocationProvider' tag |
protected void |
parseTag_PasswordHandler(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element phAttrElem)
Parse 'PasswordHandler' tag |
protected void |
parseTag_PointsOfInterest(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel bpl,
org.w3c.dom.Element pois)
Parse 'PointsOfInterest' tag. |
protected void |
parseTag_PredefinedRuleActions(java.io.File xmlFile,
java.lang.String i18nPackage,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem)
Parse 'EventNotificationEMail' tag |
protected void |
parseTag_Properties(java.io.File xmlFile,
RTConfig.PropertySetter ps,
org.w3c.dom.Element attrElem,
java.lang.String keyPrefix,
java.lang.String rtPrefix,
boolean defaultRTPOverride)
Parse 'Properties' tag |
protected void |
parseTag_Property(java.io.File xmlFile,
RTConfig.PropertySetter ps,
org.w3c.dom.Element attrElem,
java.lang.String prefix,
java.lang.String rtPropPrefix)
Parse 'Property' tag |
protected OrderedMap<java.lang.String,java.lang.Object> |
parseTAG_Pushpins(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem,
OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap,
boolean isGlobalPushpins)
Parse 'PushPins' tag. |
protected void |
parseTag_Reports(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel bpl,
org.w3c.dom.Element reports)
Parse 'Reports' tag. |
protected void |
parseTag_ReverseGeocodeProvider(java.io.File xmlFile,
BasicPrivateLabel pl,
org.w3c.dom.Element rgpAttrElem)
Parse 'ReverseGeocodeProvider' tag |
protected void |
parseTag_StatusCodes(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element listAttrElem)
Parse 'StatusCodes' tag |
protected void |
parseTag_String(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element attrElem,
RTProperties i18nStr)
Parse 'String' tag |
protected OrderedMap<java.lang.String,I18N.Text> |
parseTag_SupportedLocales(java.io.File xmlFile,
java.lang.String i18nPkgName,
org.w3c.dom.Element elemNode)
Parse 'SupportedLocales' tag |
protected OrderedSet<java.lang.String> |
parseTag_Timezones(org.w3c.dom.Element elemNode)
Parse 'Timezones' tag |
protected void |
parseTag_WebPages(java.io.File xmlFile,
java.lang.String i18nPkgName,
BasicPrivateLabel pl,
org.w3c.dom.Element webPages)
Parse 'WebPages' tag. |
protected static void |
printDebug(java.lang.String msg,
java.lang.Object... args)
Display error messages |
protected static void |
printError(java.lang.String msg,
java.lang.Object... args)
Display error messages |
protected static void |
printInfo(java.lang.String msg,
java.lang.Object... args)
Display error messages |
protected static void |
printWarn(java.lang.String msg,
java.lang.Object... args)
Display error messages |
static void |
setOutputHandler(BasicPrivateLabelLoader.OutputHandler output)
Sets the output delegate |
static void |
setThreadPrivateLabel(BasicPrivateLabel bpl)
Assigns the specified BasicPrivateLabel instance to the current Thread |
static void |
setTrackServlet_debugOnly()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean ALLOW_DOMAIN_INCLUDE
public static boolean ALWAYS_LOAD_WAR_PRIVATELABEL
public static final java.lang.String CLASS_Track
public static final java.lang.String CLASS_Service
public static final java.lang.String CLASS_Celltrac
public static final java.lang.String CLASS_PrivateLabelLoader
public static final java.lang.String PRIVATE_LABEL_XML
public static final java.lang.String TAG_LogMessage
public static final java.lang.String TAG_PrivateLabels
public static final java.lang.String TAG_SupportedLocales
public static final java.lang.String TAG_Locale
public static final java.lang.String TAG_TimeZones
public static final java.lang.String TAG_Domain
public static final java.lang.String TAG_Include
public static final java.lang.String TAG_BaseURL
public static final java.lang.String TAG_Alias
public static final java.lang.String TAG_DefaultLoginAccount
public static final java.lang.String TAG_DefaultLoginUser
public static final java.lang.String TAG_PageTitle
public static final java.lang.String TAG_Copyright
public static final java.lang.String TAG_DateFormat
public static final java.lang.String TAG_TimeFormat
public static final java.lang.String TAG_MapProvider
public static final java.lang.String TAG_Legend
public static final java.lang.String TAG_IconSelector
public static final java.lang.String TAG_PasswordHandler
public static final java.lang.String TAG_ReverseGeocodeProvider
public static final java.lang.String TAG_GeocodeProvider
public static final java.lang.String TAG_MobileLocationProvider
public static final java.lang.String TAG_I18N
public static final java.lang.String TAG_String
public static final java.lang.String TAG_Properties
public static final java.lang.String TAG_PropertyGroup
public static final java.lang.String TAG_Property
public static final java.lang.String TAG_Pushpins
public static final java.lang.String TAG_Pushpin
public static final java.lang.String TAG_EMailAddresses
public static final java.lang.String TAG_EMailAddress
public static final java.lang.String TAG_StatusCodes
public static final java.lang.String TAG_StatusCode
public static final java.lang.String TAG_Acls
public static final java.lang.String TAG_Acl
public static final java.lang.String TAG_JSPEntries
public static final java.lang.String TAG_JSP
public static final java.lang.String TAG_WebPages
public static final java.lang.String TAG_MenuGroup
public static final java.lang.String TAG_Title
public static final java.lang.String TAG_Description
public static final java.lang.String TAG_Page
public static final java.lang.String TAG_Link
public static final java.lang.String TAG_NavigationDescription
public static final java.lang.String TAG_NavigationTab
public static final java.lang.String TAG_MenuDescription
public static final java.lang.String TAG_MenuHelp
public static final java.lang.String TAG_IconImage
public static final java.lang.String TAG_ButtonImage
public static final java.lang.String TAG_ButtonImageAlt
public static final java.lang.String TAG_AclName
public static final java.lang.String TAG_Reports
public static final java.lang.String TAG_Report
public static final java.lang.String TAG_Options
public static final java.lang.String TAG_Select
public static final java.lang.String TAG_EventNotificationEMail
public static final java.lang.String TAG_Subject
public static final java.lang.String TAG_Body
public static final java.lang.String TAG_PredefinedRuleActions
public static final java.lang.String TAG_RuleAction
public static final java.lang.String TAG_ActionCommand
public static final java.lang.String TAG_PointsOfInterest
public static final java.lang.String TAG_POI
public static final java.lang.String TAG_MapShapes
public static final java.lang.String TAG_Shape
public static final java.lang.String TAG_Points
public static final java.lang.String ATTR_i18nPackage
public static final java.lang.String ATTR_enabled
public static final java.lang.String ATTR_dir
public static final java.lang.String ATTR_altDir
public static final java.lang.String ATTR_file
public static final java.lang.String ATTR_host
public static final java.lang.String ATTR_restricted
public static final java.lang.String ATTR_allowLogin
public static final java.lang.String ATTR_accountLogin
public static final java.lang.String ATTR_userLogin
public static final java.lang.String ATTR_emailLogin
public static final java.lang.String ATTR_showPassword
public static final java.lang.String ATTR_class
public static final java.lang.String ATTR_jsp
public static final java.lang.String ATTR_jspFile
public static final java.lang.String ATTR_jspName
public static final java.lang.String ATTR_cssDir
public static final java.lang.String ATTR_iconDir
public static final java.lang.String ATTR_buttonDir
public static final java.lang.String ATTR_url
public static final java.lang.String ATTR_target
public static final java.lang.String ATTR_demo
public static final java.lang.String ATTR_id
public static final java.lang.String ATTR_name
public static final java.lang.String ATTR_code
public static final java.lang.String ATTR_clear
public static final java.lang.String ATTR_iconName
public static final java.lang.String ATTR_domainName
public static final java.lang.String ATTR_access
public static final java.lang.String ATTR_default
public static final java.lang.String ATTR_maximum
public static final java.lang.String ATTR_values
public static final java.lang.String ATTR_value
public static final java.lang.String ATTR_hidden
public static final java.lang.String ATTR_aclName
public static final java.lang.String ATTR_optional
public static final java.lang.String ATTR_ignoreDuplicates
public static final java.lang.String ATTR_navigation
public static final java.lang.String ATTR_description
public static final java.lang.String ATTR_desc
public static final java.lang.String ATTR_help
public static final java.lang.String ATTR_sort
public static final java.lang.String ATTR_type
public static final java.lang.String ATTR_keyPrefix
public static final java.lang.String ATTR_key
public static final java.lang.String ATTR_trim
public static final java.lang.String ATTR_failover
public static final java.lang.String ATTR_rtPropPrefix
public static final java.lang.String ATTR_rtKey
public static final java.lang.String ATTR_loggedIn
public static final java.lang.String ATTR_locale
public static final java.lang.String ATTR_from
public static final java.lang.String ATTR_useAsDefault
public static final java.lang.String ATTR_i18n
public static final java.lang.String ATTR_active
public static final java.lang.String ATTR_menuBar
public static final java.lang.String ATTR_topMenu
public static final java.lang.String ATTR_baseURL
public static final java.lang.String ATTR_only
public static final java.lang.String ATTR_sysAdminOnly
public static final java.lang.String ATTR_geocode
public static final java.lang.String ATTR_icon
public static final java.lang.String ATTR_button
public static final java.lang.String ATTR_altButton
public static final java.lang.String ATTR_image
public static final java.lang.String ATTR_eval
public static final java.lang.String ATTR_alias
public static final java.lang.String ATTR_iconSize
public static final java.lang.String ATTR_iconHotspot
public static final java.lang.String ATTR_iconAnchor
public static final java.lang.String ATTR_iconOffset
public static final java.lang.String ATTR_shadow
public static final java.lang.String ATTR_shadowSize
public static final java.lang.String ATTR_back
public static final java.lang.String ATTR_backSize
public static final java.lang.String ATTR_backOffset
public static final java.lang.String ATTR_ruleFactoryName
public static final java.lang.String ATTR_radius
public static final java.lang.String ATTR_color
public static final java.lang.String ATTR_zoom
public static final java.lang.String ATTR_includeDefault
protected static boolean _isTrackServlet
protected static BasicPrivateLabelLoader privateLabelLoader
public static boolean SAVE_I18N_STRINGS
public static java.util.Set<I18N.Text> I18N_STRINGS
public static java.util.Map<java.lang.String,I18N.Text> I18N_STRINGS_MAP
Constructor Detail |
---|
public BasicPrivateLabelLoader()
Method Detail |
---|
public static void setOutputHandler(BasicPrivateLabelLoader.OutputHandler output)
protected static void printError(java.lang.String msg, java.lang.Object... args)
protected static void printWarn(java.lang.String msg, java.lang.Object... args)
protected static void printInfo(java.lang.String msg, java.lang.Object... args)
protected static void printDebug(java.lang.String msg, java.lang.Object... args)
public static void setTrackServlet_debugOnly()
public static boolean isTrackServlet()
protected static BasicPrivateLabelLoader _getInstance()
public static java.lang.Class getInstanceClass()
public static java.io.File getPrivateXMLFile()
public static int loadPrivateLabelXML()
public static int loadPrivateLabelXML(java.io.File xmlFile)
public static void setThreadPrivateLabel(BasicPrivateLabel bpl)
bpl
- The BasicPrivateLabel instance to assign to the current Threadpublic static BasicPrivateLabel getThreadPrivateLabel()
protected static boolean _isAttributeActive(java.lang.String active, java.lang.String name)
active
- 'active' attributename
- 'name' attribute
protected BasicPrivateLabel createPrivateLabel(java.io.File xmlFile, java.lang.String hostName)
hostName
- The host name assigned to the BasicPrivateLabel instance
protected java.io.File _getPrivateXMLFile()
protected int _resetLoadDefaultXML()
protected int _resetLoadXML(java.io.File xmlFile)
xmlFile
- The XML file to load
protected int _loadXML(java.io.File xmlFile, RTProperties dftProps, RTProperties ovrProps, OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap, OrderedMap<java.lang.String,java.lang.String> dftLegend, boolean ignoreDuplicates)
xmlFile
- The XML file to load
protected OrderedMap<java.lang.String,I18N.Text> parseTag_SupportedLocales(java.io.File xmlFile, java.lang.String i18nPkgName, org.w3c.dom.Element elemNode)
elemNode
- The 'SupportedLocales' parent node
protected OrderedSet<java.lang.String> parseTag_Timezones(org.w3c.dom.Element elemNode)
elemNode
- The 'Timezones' parent node
protected void parseTag_Domain(java.io.File xmlFile, java.lang.String i18nPkgName, org.w3c.dom.Element domain, RTProperties backstopProps, RTProperties overrideProps, OrderedSet<java.lang.String> timeZones, OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap, OrderedMap<java.lang.String,java.lang.String> dftLegend, boolean ignoreDuplicates)
i18nPkgName
- The i18n resource package name for localized textdomain
- The 'Domain' nodetimeZones
- The set of previously parse Timezonesprotected boolean isValidHostname(java.lang.String host)
host
- the host name
protected void parseTag_BaseURL(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element attrElem)
pl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'BaseURL' nodeprotected void parseTag_Alias(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element attrElem)
pl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'Alias' nodeprotected void parseTag_I18N(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element attrElem, RTProperties i18nStr)
pl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'Properties' nodeprotected void parseTag_String(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element attrElem, RTProperties i18nStr)
pl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'Property' nodeprotected void parseTag_Properties(java.io.File xmlFile, RTConfig.PropertySetter ps, org.w3c.dom.Element attrElem, java.lang.String keyPrefix, java.lang.String rtPrefix, boolean defaultRTPOverride)
xmlFile
- The current XML file being loadedps
- A handle to a PropertySetter instanceattrElem
- The Properties tag element/nodekeyPrefix
- The property key prefixrtPrefix
- The RT properties key "prefix"defaultRTPOverride
- True to default allowing RTConfig property overridesprotected void parseTag_Property(java.io.File xmlFile, RTConfig.PropertySetter ps, org.w3c.dom.Element attrElem, java.lang.String prefix, java.lang.String rtPropPrefix)
xmlFile
- The currentl XML file dbeing parsed.ps
- The PropertySetter which will received the parse propertiesattrElem
- The 'Property' nodeprefix
- The property key prefixrtPropPrefix
- The key prefix used to lookup externally defined runtime values.protected void parseTag_EMailAddresses(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element listAttrElem)
xmlFile
- The current loading xml filepl
- The BasicPrivateLabel instance for the current 'Domain'listAttrElem
- The 'EMailAddresses' nodeprotected boolean isValidEMailAddress(java.lang.String emailAddr)
protected void parseTag_StatusCodes(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element listAttrElem)
xmlFile
- The current loading xml filepl
- The BasicPrivateLabel instance for the current 'Domain'listAttrElem
- The 'StatusCodes' nodeprotected void parseTag_PasswordHandler(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element phAttrElem)
pl
- The BasicPrivateLabel instance for the current 'Domain'phAttrElem
- The 'PasswordHandler' nodeprotected void parseTag_ReverseGeocodeProvider(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element rgpAttrElem)
pl
- The BasicPrivateLabel instance for the current 'Domain'rgpAttrElem
- The 'ReverseGeocodeProvider' nodeprotected void parseTag_GeocodeProvider(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element gpAttrElem)
pl
- The BasicPrivateLabel instance for the current 'Domain'gpAttrElem
- The 'GeocodeProvider' nodeprotected void parseTag_MobileLocationProvider(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element mpAttrElem)
xmlFile
- The current XML file being processedpl
- The BasicPrivateLabel instance for the current 'Domain'mpAttrElem
- The 'MobileLocationProvider' nodeprotected void parseTag_Acls(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element acls)
i18nPkgName
- The i18n resource package name for localized textpl
- The BasicPrivateLabel instance for the current 'Domain'acls
- The 'Acls' nodeprotected void parseTag_EventNotificationEMail(java.io.File xmlFile, java.lang.String i18nPackage, BasicPrivateLabel pl, org.w3c.dom.Element attrElem)
i18nPackage
- The i18n resource package name for localized textpl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'EventNotificationEMail' nodeprotected void parseTag_PredefinedRuleActions(java.io.File xmlFile, java.lang.String i18nPackage, BasicPrivateLabel pl, org.w3c.dom.Element attrElem)
i18nPackage
- The i18n resource package name for localized textpl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'EventNotificationEMail' nodeprotected OrderedMap<java.lang.String,java.lang.Object> parseTAG_Pushpins(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element attrElem, OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap, boolean isGlobalPushpins)
xmlFile
- The currentl XML file being parsedpl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'MapProvider' nodedftPushpinMap
- The default pushpin map
protected void parseTag_LogMessage(java.io.File xmlFile, BasicPrivateLabel pl, org.w3c.dom.Element attrElem)
xmlFile
- The currentl XML file being parsedpl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'MapProvider' nodeprotected void parseTag_MapProvider(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element attrElem, OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap, OrderedMap<java.lang.String,java.lang.String> dftLegend)
i18nPkgName
- The i18n resource package name for localized textpl
- The BasicPrivateLabel instance for the current 'Domain'attrElem
- The 'MapProvider' nodeprotected java.lang.String parseLegendHTML(java.lang.String refName, java.util.Locale locale, OrderedMap pushpinMap, java.lang.String legendType, org.w3c.dom.Element legendElem)
protected void parseTag_JSPEntries(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element jspFiles)
i18nPkgName
- The i18n resource package name for localized textpl
- The BasicPrivateLabel instance for the current 'Domain'jspFiles
- The 'JSPFiles' nodeprotected void parseTag_WebPages(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel pl, org.w3c.dom.Element webPages)
i18nPkgName
- The i18n resource package name for localized textpl
- The BasicPrivateLabel instance for the current 'Domain'webPages
- The 'WebPages' nodeprotected void parseTag_Reports(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element reports)
xmlFile
- The current xml file being parsed.i18nPkgName
- The i18n resource package name for localized textbpl
- The BasicPrivateLabel instance for the current 'Domain'reports
- The 'Reports' nodeprotected void parseTag_PointsOfInterest(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element pois)
xmlFile
- The current xml file being parsed.i18nPkgName
- The i18n resource package name for localized textbpl
- The BasicPrivateLabel instance for the current 'Domain'pois
- The 'PointsOfInterest' nodeprotected void parseTag_MapShapes(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element mapShps)
xmlFile
- The current xml file being parsed.i18nPkgName
- The i18n resource package name for localized textbpl
- The BasicPrivateLabel instance for the current 'Domain'mapShps
- The 'MapShapes' nodepublic static java.lang.String getURLHostName(java.lang.String urlStr)
urlStr
- The URL to parse for the host name
public static BasicPrivateLabel getPrivateLabelForURL(java.net.URL url)
url
- The request URL
public static BasicPrivateLabel getPrivateLabel(java.lang.String name)
name
- The host name
public static BasicPrivateLabel getDefaultPrivateLabel()
public static java.util.Collection<java.lang.String> getPrivateLabelNames()
public static java.util.Collection<java.lang.String> getPrivateLabelNames(boolean nameOnly)
nameOnly
- True to return a list of PrivateLabel names only (excluding hosts/aliases).
public static boolean hasParsingWarnings()
protected void _setHasParsingWarnings(java.io.File xmlFile)
public static boolean hasParsingErrors()
protected void _setHasParsingErrors(java.io.File xmlFile)
protected I18N.Text _validateI18NText(java.io.File xmlFile, I18N.Text text)
text
- The I18N.Text value
protected java.lang.String _adjustPropertyKey(java.io.File xmlFile, java.lang.String key)
key
- The property key
public static boolean hasDefaultPrivateLabel()
protected void _addPrivateLabel(java.io.File xmlFile, BasicPrivateLabel privLabel, boolean ignoreDuplicates)
privLabel
- The BasicPrivateLabel to addprotected java.util.Map<java.lang.String,BasicPrivateLabel> getPrivateLabelMap()
protected BasicPrivateLabel createPrivateLabel(java.io.File xmlFile, java.lang.String className, java.lang.String hostName)
className
- The class name of the BasicPrivateLabel to instantiatehostName
- The host name to assign to assign to the new BasicPrivateLabel
protected static I18N.Text parseI18N(java.io.File xmlFile, java.lang.String pkgName, java.lang.String i18nKey, java.lang.String dftStr)
xmlFile
- The XML file in which this String was defined.pkgName
- The package containing the "LocalStrings_XX.properties" files.i18nKey
- The key used to look up the localized string.dftStr
- The default text to return if the key is not found.
protected static I18N.Text parseI18N(java.io.File xmlFile, java.lang.String pkgName, java.lang.String i18nKey, java.lang.String dftStr, boolean showError)
xmlFile
- The XML file in which this String was defined.pkgName
- The package containing the "LocalStrings_XX.properties" files.i18nKey
- The key used to look up the localized string.dftStr
- The default text to return if the key is not found.showError
- If true, a stacktrace will be display if the key is invalid.
public static void main(java.lang.String[] argv)
argv
- The command-line arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |