org.opengts.war.tools
Class PrivateLabelLoader

java.lang.Object
  extended by org.opengts.db.BasicPrivateLabelLoader
      extended by org.opengts.war.tools.PrivateLabelLoader

public class PrivateLabelLoader
extends BasicPrivateLabelLoader


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opengts.db.BasicPrivateLabelLoader
BasicPrivateLabelLoader.OutputHandler
 
Field Summary
static java.lang.String PROP_PrivateLabelLoader_skipTag_MapProvider
           
static java.lang.String PROP_PrivateLabelLoader_skipTag_WebPages
           
 
Fields inherited from class org.opengts.db.BasicPrivateLabelLoader
_isTrackServlet, ALLOW_DOMAIN_INCLUDE, ALWAYS_LOAD_WAR_PRIVATELABEL, ATTR_access, ATTR_accountLogin, ATTR_aclName, ATTR_active, ATTR_alias, ATTR_allowLogin, ATTR_altButton, ATTR_altDir, ATTR_back, ATTR_backOffset, ATTR_backSize, ATTR_baseURL, ATTR_button, ATTR_buttonDir, ATTR_class, ATTR_clear, ATTR_code, ATTR_color, ATTR_cssDir, ATTR_default, ATTR_demo, ATTR_desc, ATTR_description, ATTR_dir, ATTR_domainName, ATTR_emailLogin, ATTR_enabled, ATTR_eval, ATTR_failover, ATTR_file, ATTR_from, ATTR_geocode, ATTR_help, ATTR_hidden, ATTR_host, ATTR_i18n, ATTR_i18nPackage, ATTR_icon, ATTR_iconAnchor, ATTR_iconDir, ATTR_iconHotspot, ATTR_iconName, ATTR_iconOffset, ATTR_iconSize, ATTR_id, ATTR_ignoreDuplicates, ATTR_image, ATTR_includeDefault, ATTR_jsp, ATTR_jspFile, ATTR_jspName, ATTR_key, ATTR_keyPrefix, ATTR_locale, ATTR_loggedIn, ATTR_maximum, ATTR_menuBar, ATTR_name, ATTR_navigation, ATTR_only, ATTR_optional, ATTR_radius, ATTR_restricted, ATTR_rtKey, ATTR_rtPropPrefix, ATTR_ruleFactoryName, ATTR_shadow, ATTR_shadowSize, ATTR_showPassword, ATTR_sort, ATTR_sysAdminOnly, ATTR_target, ATTR_topMenu, ATTR_trim, ATTR_type, ATTR_url, ATTR_useAsDefault, ATTR_userLogin, ATTR_value, ATTR_values, ATTR_zoom, CLASS_Celltrac, CLASS_PrivateLabelLoader, CLASS_Service, CLASS_Track, I18N_STRINGS, I18N_STRINGS_MAP, PRIVATE_LABEL_XML, privateLabelLoader, SAVE_I18N_STRINGS, TAG_Acl, TAG_AclName, TAG_Acls, TAG_ActionCommand, TAG_Alias, TAG_BaseURL, TAG_Body, TAG_ButtonImage, TAG_ButtonImageAlt, TAG_Copyright, TAG_DateFormat, TAG_DefaultLoginAccount, TAG_DefaultLoginUser, TAG_Description, TAG_Domain, TAG_EMailAddress, TAG_EMailAddresses, TAG_EventNotificationEMail, TAG_GeocodeProvider, TAG_I18N, TAG_IconImage, TAG_IconSelector, TAG_Include, TAG_JSP, TAG_JSPEntries, TAG_Legend, TAG_Link, TAG_Locale, TAG_LogMessage, TAG_MapProvider, TAG_MapShapes, TAG_MenuDescription, TAG_MenuGroup, TAG_MenuHelp, TAG_MobileLocationProvider, TAG_NavigationDescription, TAG_NavigationTab, TAG_Options, TAG_Page, TAG_PageTitle, TAG_PasswordHandler, TAG_POI, TAG_Points, TAG_PointsOfInterest, TAG_PredefinedRuleActions, TAG_PrivateLabels, TAG_Properties, TAG_Property, TAG_PropertyGroup, TAG_Pushpin, TAG_Pushpins, TAG_Report, TAG_Reports, TAG_ReverseGeocodeProvider, TAG_RuleAction, TAG_Select, TAG_Shape, TAG_StatusCode, TAG_StatusCodes, TAG_String, TAG_Subject, TAG_SupportedLocales, TAG_TimeFormat, TAG_TimeZones, TAG_Title, TAG_WebPages
 
Constructor Summary
PrivateLabelLoader()
           
 
Method Summary
protected  void _addPrivateLabel(java.io.File xmlFile, BasicPrivateLabel privLabel, boolean ignoreDuplicates)
          Adds a BasicPrivateLabel to the managed private label list
protected  int _resetLoadDefaultXML()
          Loads/Reloads the 'private.xml' file
protected  BasicPrivateLabel createPrivateLabel(java.io.File xmlFile, java.lang.String hostName)
          Creates a new BasicPrivalLabel instance.
static boolean GetSkipTag_MapProvider()
           
static boolean GetSkipTag_WebPages()
           
static void main(java.lang.String[] argv)
           
protected  java.lang.String parseLegendHTML(java.lang.String refName, java.util.Locale locale, OrderedMap pushpins, java.lang.String legendType, org.w3c.dom.Element legendElem)
          Parse HTML Legend
protected  void parseTag_JSPEntries(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element jspFiles)
          Parse 'JSPFiles' tag.
protected  void parseTag_MapProvider(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element mapProvElem, 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_PointsOfInterest(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element pois)
          Parse 'PointsOfInterest' 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_WebPages(java.io.File xmlFile, java.lang.String i18nPkgName, BasicPrivateLabel bpl, org.w3c.dom.Element webPages)
          Parse 'WebPages' tag.
 
Methods inherited from class org.opengts.db.BasicPrivateLabelLoader
_adjustPropertyKey, _getInstance, _getPrivateXMLFile, _isAttributeActive, _loadXML, _resetLoadXML, _setHasParsingErrors, _setHasParsingWarnings, _validateI18NText, createPrivateLabel, getDefaultPrivateLabel, getInstanceClass, getPrivateLabel, getPrivateLabelForURL, getPrivateLabelMap, getPrivateLabelNames, getPrivateLabelNames, getPrivateXMLFile, getThreadPrivateLabel, getURLHostName, hasDefaultPrivateLabel, hasParsingErrors, hasParsingWarnings, isTrackServlet, isValidEMailAddress, isValidHostname, loadPrivateLabelXML, loadPrivateLabelXML, parseI18N, parseI18N, parseTag_Acls, parseTag_Alias, parseTag_BaseURL, parseTag_Domain, parseTag_EMailAddresses, parseTag_EventNotificationEMail, parseTag_GeocodeProvider, parseTag_I18N, parseTag_LogMessage, parseTag_MobileLocationProvider, parseTag_PasswordHandler, parseTag_PredefinedRuleActions, parseTag_Properties, parseTag_Property, parseTag_ReverseGeocodeProvider, parseTag_StatusCodes, parseTag_String, parseTag_SupportedLocales, parseTag_Timezones, printDebug, printError, printInfo, printWarn, setOutputHandler, setThreadPrivateLabel, setTrackServlet_debugOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_PrivateLabelLoader_skipTag_WebPages

public static final java.lang.String PROP_PrivateLabelLoader_skipTag_WebPages
See Also:
Constant Field Values

PROP_PrivateLabelLoader_skipTag_MapProvider

public static final java.lang.String PROP_PrivateLabelLoader_skipTag_MapProvider
See Also:
Constant Field Values
Constructor Detail

PrivateLabelLoader

public PrivateLabelLoader()
Method Detail

GetSkipTag_WebPages

public static boolean GetSkipTag_WebPages()

GetSkipTag_MapProvider

public static boolean GetSkipTag_MapProvider()

createPrivateLabel

protected BasicPrivateLabel createPrivateLabel(java.io.File xmlFile,
                                               java.lang.String hostName)
Description copied from class: BasicPrivateLabelLoader
Creates a new BasicPrivalLabel instance. Subclasses must override this method to return their own instance of the BasicPrivalLabel subclass.

Overrides:
createPrivateLabel in class BasicPrivateLabelLoader
hostName - The host name assigned to the BasicPrivateLabel instance
Returns:
The BasicPrivateLabel instance.

_resetLoadDefaultXML

protected int _resetLoadDefaultXML()
Description copied from class: BasicPrivateLabelLoader
Loads/Reloads the 'private.xml' file

Overrides:
_resetLoadDefaultXML in class BasicPrivateLabelLoader
Returns:
The number of domains loaded

parseTag_MapProvider

protected void parseTag_MapProvider(java.io.File xmlFile,
                                    java.lang.String i18nPkgName,
                                    BasicPrivateLabel bpl,
                                    org.w3c.dom.Element mapProvElem,
                                    OrderedMap<java.lang.String,java.lang.Object> dftPushpinMap,
                                    OrderedMap<java.lang.String,java.lang.String> dftLegend)
Description copied from class: BasicPrivateLabelLoader
Parse 'MapProvider' tag. This method is intended to be subclassed.

Overrides:
parseTag_MapProvider in class BasicPrivateLabelLoader
i18nPkgName - The i18n resource package name for localized text
bpl - The BasicPrivateLabel instance for the current 'Domain'
mapProvElem - The 'MapProvider' node

parseLegendHTML

protected java.lang.String parseLegendHTML(java.lang.String refName,
                                           java.util.Locale locale,
                                           OrderedMap pushpins,
                                           java.lang.String legendType,
                                           org.w3c.dom.Element legendElem)
Parse HTML Legend

Overrides:
parseLegendHTML in class BasicPrivateLabelLoader

parseTAG_Pushpins

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.

Overrides:
parseTAG_Pushpins in class BasicPrivateLabelLoader
Parameters:
xmlFile - The current XML file being parsed
pl - The BasicPrivateLabel instance for the current 'Domain'
attrElem - The 'MapProvider' node
dftPushpinMap - The default pushpin map
Returns:
The default pushpin map updated with the pushpins contained within this parsed tag sectoin

parseTag_JSPEntries

protected void parseTag_JSPEntries(java.io.File xmlFile,
                                   java.lang.String i18nPkgName,
                                   BasicPrivateLabel bpl,
                                   org.w3c.dom.Element jspFiles)
Description copied from class: BasicPrivateLabelLoader
Parse 'JSPFiles' tag. This method is intended to be subclassed.

Overrides:
parseTag_JSPEntries in class BasicPrivateLabelLoader
i18nPkgName - The i18n resource package name for localized text
bpl - The BasicPrivateLabel instance for the current 'Domain'
jspFiles - The 'JSPFiles' node

parseTag_WebPages

protected void parseTag_WebPages(java.io.File xmlFile,
                                 java.lang.String i18nPkgName,
                                 BasicPrivateLabel bpl,
                                 org.w3c.dom.Element webPages)
Description copied from class: BasicPrivateLabelLoader
Parse 'WebPages' tag. This method is intended to be subclassed.

Overrides:
parseTag_WebPages in class BasicPrivateLabelLoader
i18nPkgName - The i18n resource package name for localized text
bpl - The BasicPrivateLabel instance for the current 'Domain'
webPages - The 'WebPages' node

parseTag_Reports

protected void parseTag_Reports(java.io.File xmlFile,
                                java.lang.String i18nPkgName,
                                BasicPrivateLabel bpl,
                                org.w3c.dom.Element reports)
Description copied from class: BasicPrivateLabelLoader
Parse 'Reports' tag. This method is intended to be subclassed.

Overrides:
parseTag_Reports in class BasicPrivateLabelLoader
Parameters:
xmlFile - The current xml file being parsed.
i18nPkgName - The i18n resource package name for localized text
bpl - The BasicPrivateLabel instance for the current 'Domain'
reports - The 'Reports' node

parseTag_PointsOfInterest

protected void parseTag_PointsOfInterest(java.io.File xmlFile,
                                         java.lang.String i18nPkgName,
                                         BasicPrivateLabel bpl,
                                         org.w3c.dom.Element pois)
Description copied from class: BasicPrivateLabelLoader
Parse 'PointsOfInterest' tag. This method is intended to be subclassed.

Overrides:
parseTag_PointsOfInterest in class BasicPrivateLabelLoader
Parameters:
xmlFile - The current xml file being parsed.
i18nPkgName - The i18n resource package name for localized text
bpl - The BasicPrivateLabel instance for the current 'Domain'
pois - The 'PointsOfInterest' node

parseTag_MapShapes

protected void parseTag_MapShapes(java.io.File xmlFile,
                                  java.lang.String i18nPkgName,
                                  BasicPrivateLabel bpl,
                                  org.w3c.dom.Element mapShps)
Description copied from class: BasicPrivateLabelLoader
Parse 'MapShapes' tag. This method is intended to be subclassed.

Overrides:
parseTag_MapShapes in class BasicPrivateLabelLoader
Parameters:
xmlFile - The current xml file being parsed.
i18nPkgName - The i18n resource package name for localized text
bpl - The BasicPrivateLabel instance for the current 'Domain'
mapShps - The 'MapShapes' node

_addPrivateLabel

protected void _addPrivateLabel(java.io.File xmlFile,
                                BasicPrivateLabel privLabel,
                                boolean ignoreDuplicates)
Description copied from class: BasicPrivateLabelLoader
Adds a BasicPrivateLabel to the managed private label list

Overrides:
_addPrivateLabel in class BasicPrivateLabelLoader
privLabel - The BasicPrivateLabel to add

main

public static void main(java.lang.String[] argv)