Ignore:
Timestamp:
03/01/20 23:07:45 (2 years ago)
Author:
GarthBraithwaite_STG
Message:

db, view - fixed prev other topic name. Implemented topic ip list. Cleaned up and moved _commity.css to Community. XML services and model map cleanup and better descrips. Removed extra "/" from dynamic IP paths when building filename. Renamed IP page.options to page.contentOptions to be consist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ibisph-view/src/main/webapp/WEB-INF/config/spring/common.xml

    r19890 r19916  
    3939        <bean id="commonContentBasePath" class="org.ibisph.model.StringHolder">
    4040                <description>
    41                         Base "Content" file path used by most internal XML and JSON file
    42                         access bean configurations.  This provides a mechanism to easily
    43                         locate files to a directory outside of the webapp.  This default
    44                         location is the relative webapp.
     41                        Base "Content" file path that points to the root of all content.
     42                        This root area includes docs, pdfs, xml, json etc.  This value can
     43                        be in to form of a complete URL or relative to the webapp's context.
     44                        To be used this value is made into an explicit URL via the
     45                        commonContentBasePathURL bean which is the basis for all content
     46                        requests.
    4547                </description>
    4648                <constructor-arg value=""/>
    4749        </bean>
    48 
    49         <bean id="commonContextAndPathService" class="org.ibisph.web.ContextAndPathService"/>
    50 
    5150        <bean id="commonContentBasePathURL" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
     51                <description>
     52                        Full/explicit base "Content" file path.  The commonContentBasePath
     53                        string value, if not a URL, is processed based on the webapp's
     54                        context path which is returned as a URL which is one of the accepted
     55                        values the XML/XSLT translation is able to process.
     56                </description>
    5257                <property name="targetObject" ref="commonContextAndPathService"/>
    5358                <property name="targetMethod" value="getPathURL"/>
    5459                <property name="arguments"><list><value>#{commonContentBasePath.string}</value></list></property>
    5560        </bean>
    56 
    5761        <bean id="commonXMLBasePathURL" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    5862                <property name="targetObject" ref="commonContextAndPathService"/>
     
    7377        <bean id="commonWebAppBaseRequestPath" class="org.ibisph.model.StringHolder">
    7478                <description>
    75                         Base application request URL path injected into the common webapp
    76                         base request path model map for the XSLT code to prefix all content
    77                         web page requests.  It is also used for the user self registering
    78                         bean etc. 
    79 
    80                         The path is optional.  It is only used in those instances when the
    81                         servlet's request URL is not sufficient to get HTTP requsts to the
    82                         webapp (e.g. when the webapp is behind a proxy or the webapp's
    83                         context is different etc.).  When specified the value is the complete
    84                         root URL prefix value consisting of the protocol, server name/address
     79                        Base application request URL path injected into the
     80                        commonWebAppBasePathModelMap.  This value is a prefix URL used by
     81                        the XSLT code to build full, explicit app and content request paths.
     82
     83                        The path value is optional.  It is only required in those instances 
     84                        when the default internal servlet's request URL is not sufficient to
     85                        get HTTP requsts to the webapp (e.g. when the webapp is behind a
     86                        proxy etc.).  When specified the value MUST be the complete root URL
     87                        prefix value consisting of the protocol, server name/address
    8588                        (with port if applicable), and the outside application context path. 
    86                 </description>
    87                 <constructor-arg value="http://localhost/ibisph-view/"/>
     89                        If the value is blank (default) then the webapp's servet and context
     90                        path is used (via commonWebAppBasePathModelMap). 
     91                </description>
     92                <constructor-arg value="''"/>
    8893        </bean>
    8994
    9095
    9196        <!-- F I L E   S E R V I C E S -->
     97        <bean id="commonContextAndPathService" class="org.ibisph.web.ContextAndPathService"/>
     98
    9299        <bean id="commonXMLFilePathModelService" class="org.ibisph.model.URLPathGetModelService">
    93100                <description>
     
    304311        <bean id="commonContentBasePathModelMap" class="org.ibisph.modelmap.SimpleGetModelMap">
    305312                <description>
    306                         Used by XSLT to dynamically access the 2ndardy XML
     313                        Used by some XSLT to dynamically access the 2ndardy XML
    307314                        files as well as leaflet map and kendo json files.
    308315                        Injected into the main Page.xslt.
     
    318325                        for all requests from a user's browswer).  This model map is injected
    319326                        into all XSLT type page requests so that the code can build the
    320                         explicit, fully qualified request paths.
    321 
    322                         If the webappBaseRequestPath is blank then this model map will use
    323                         webapp's base servlet request context URL value. 
    324                 </description>
     327                        explicit, fully qualified request paths for content and links.
     328
     329                        If the webappBaseRequestPath is blank then this model map will build
     330                        the value using the webapp's server path and servlet context. 
     331                </description>
     332                <property name="modelMapKey" value="WebAppBaseRequestPath"/>
    325333                <property name="webappBaseRequestPath" value="#{commonWebAppBaseRequestPath.string}"/>
    326                 <property name="modelMapKey" value="WebAppBaseRequestPath"/>
    327334        </bean>
    328335
     
    402409                <description>
    403410                        Provides base of all HTML page type controllers.  Defines the
    404                         ModelMapListProcessingController class, the additional modelmaps that
    405                         most pages use, and the HTTPResponseHeaders (typically setup to
    406                         handle XSS security).
     411                        ModelMapListProcessingController class, the ADDITIONAL modelmaps
     412                        that most pages use, and the HTTPResponseHeaders (typically setup
     413                        to handle XSS security).
    407414                </description>
    408415                <property name="additionalModelMapList">
     
    506513
    507514        <bean id="commonXMLStringCleaner" class="org.ibisph.util.ReplacementStringCleaner">
    508                 <description>Cleans/replaces characters.  Stubbed out for now...</description>
     515                <description>
     516                        Cleans/replaces characters used when creating/saving XML.  Stubbed
     517                        out for now...
     518                </description>
    509519                <property name="replacementCharsMap">
    510520                        <map>
Note: See TracChangeset for help on using the changeset viewer.