Changeset 18893 in main for adopters/nm-substance


Ignore:
Timestamp:
08/08/19 10:41:06 (4 years ago)
Author:
GarthBraithwaite_STG
Message:

nm substance - cleaned up webapp.

Location:
adopters/nm-substance/trunk/src/main/webapps/substance-view/WEB-INF
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • adopters/nm-substance/trunk/src/main/webapps/substance-view/WEB-INF/config/SiteSpecific.properties

    r18704 r18893  
    2828#commonContentBasePath.string =file:/d:/tomcat7/webapps/ibisph-content
    2929#commonContentBasePath.string =http://localhost/ibisph-content
    30 commonContentBasePath.string =../substance-view-content/
    31 sharedContentBasePath.string =../ibisph-view-content/
     30commonContentBasePath.string =../substance-view-content
    3231
    3332
  • adopters/nm-substance/trunk/src/main/webapps/substance-view/WEB-INF/config/spring/SiteSpecific.xml

    r18704 r18893  
    99        <import resource="filter.xml"/>
    1010
     11<!--
    1112        <import resource="security.xml"/>
    1213        <import resource="security-db_authentication.xml"/>
    1314        <import resource="security-xml_authentication.xml"/>
    1415        <import resource="security-pre_authenticated.xml"/>
    15 <!--
     16
    1617        <import resource="https.xml"/>
    17 -->
    1818
    1919        <import resource="indicator.xml"/>
     
    2525        <import resource="secure.xml"/>
    2626        <import resource="user.xml"/>
     27-->
    2728
    2829        <import resource="view.xml"/>
    29 
    30         <import resource="shared.xml"/>
    3130
    3231
     
    6160                                <!-- D E F A U L T   H T M L   C O N T E N T -->
    6261                                <entry key="/**/*.html" value-ref="viewHTMLContentConventionController"/>
     62<entry key="/story.html" value-ref="viewHTMLContentConventionController"/>
    6363
    6464                                <!-- Note these will only get hit for defined web.xml blanket
     
    6969                                <entry key="/*"         value-ref="viewHTMLContentConventionController"/>
    7070
    71                                 <!-- P U B L I C A T I O N S -->
    72                                 <entry key="/publication/index/Chronological.html" value-ref="publicationChronologicalIndexController"/>
    73                                 <entry key="/publication/index/Topical.html"       value-ref="publicationTopicalIndexController"/>
    74 
    75                                 <!-- I N D I C A T O R  -->
    76                                 <entry key="/indicator/index/Alphabetical.html"    value-ref="indicatorAlphabeticalIndexController"/>
    77                                 <entry key="/indicator/index/Categorized.html"     value-ref="indicatorCategorizedIndexController"/>
    78 
    79                                 <entry key="/indicator/view/*.html"          value-ref="indicatorViewController"/>
    80                                 <entry key="/indicator/facts/*.html"         value-ref="indicatorImportantFactsController"/>
    81                                 <entry key="/indicator/services/*.html"      value-ref="indicatorServicesController"/>
    82                                 <entry key="/indicator/related/*/*.html"     value-ref="indicatorRelatedIndicatorsController"/>
    83                                 <entry key="/indicator/resources/*.html"     value-ref="indicatorResourcesController"/>
    84 
    85                                 <entry key="/indicator/view/*.json"          value-ref="indicatorViewJSONController"/>
    86                                 <entry key="/indicator/*.json"               value-ref="indicatorJSONController"/>
    87 
    88                                 <entry key="/indicator/contentblocks/*.html" value-ref="indicatorContentBlocksController"/>
    89 
    90                                 <entry key="/indicator/preview/*.html"       value-ref="indicatorPreviewController"/>
    91                                 <entry key="/indicator/view/preview/*.html"  value-ref="indicatorViewPreviewController"/>
    92 
    93 <!--
    94 <entry key="/indicator/chart/**"                               value-ref="IBISPHViewContentIndicatorChartGraphicController"/>
    95 <entry key="/indicator/graph/**"                               value-ref="IBISPHViewContentIndicatorChartGraphicController"/>
    96 -->
    97 
    98 
    99                                 <!-- Q U E R Y  -->
    100                                 <entry key="/query/selection/**"             value-ref="querySelectionController"/>
    101                                 <entry key="/query/configuration/**"         value-ref="queryConfigurationController"/>
    102                                 <entry key="/query/builder/**"               value-ref="queryBuilderController"/>
    103                                 <entry key="/query/submit/**/*.html"         value-ref="querySubmitController"/>
    104                                 <entry key="/query/submit/**/*.xml"          value-ref="querySubmitAndRunToXMLController"/>
    105                                 <entry key="/query/result/**/*.html"         value-ref="queryResultController"/>
    106                                 <entry key="/query/result/**/*.xls"          value-ref="queryResultController"/>        <!-- put here so can plug in Excel specifici controller in the future. -->
    107                                 <entry key="/query/result/**/*.xml"          value-ref="queryIBISQResultController"/>   
    108 
    109                                 <!-- Q U E R Y   D E F I N I T I O N -->
    110                                 <entry key="/query/definition/list/*"        value-ref="queryDefinitionListController"/>
    111                                 <entry key="/query/definition/index/*"       value-ref="queryDefinitionIndexController"/>
    112 
    113                                 <entry key="/query/definition/detail/*/*"    value-ref="queryDefinitionDetailController"/>
    114                                 <entry key="/query/definition/result/*/*"    value-ref="queryDefinitionResultController"/>
    115                                 <entry key="/query/definition/builder/*/*"   value-ref="queryDefinitionBuilderController"/>
    116                                 <entry key="/query/definition/apply/*/*"     value-ref="queryDefinitionApplyController"/>
    117                                 <entry key="/query/definition/toggle/sticky" value-ref="queryDefinitionToggleStickySessionController"/>
    118 
    119                                 <entry key="/query/definition/from/builder"  value-ref="queryDefinitionFromBuilderController"/>
    120                                 <entry key="/query/definition/from/result"   value-ref="queryDefinitionFromResultController"/>
    121                                 <entry key="/query/definition/save"          value-ref="queryDefinitionSaveController"/>
    122                                 <entry key="/query/definition/delete/*"      value-ref="queryDefinitionDeleteController"/>
    123 
    124 
    125                                 <!-- S E C U R E  -->
    126                                 <entry key="/secure"                                value-ref="secureSelectionController"/>
    127                                 <entry key="/secure/test.jsp"                       value-ref="secureTestController"/>
    128                                 <entry key="/secure/selection/*.html"               value-ref="secureSelectionController"/>
    129                                 <entry key="/secure/query/selection/**"             value-ref="secureQuerySelectionController"/>
    130                                 <entry key="/secure/query/builder/**"               value-ref="secureQueryBuilderController"/>
    131                                 <entry key="/secure/query/submit/**/*.html"         value-ref="secureQuerySubmitController"/>
    132                                 <entry key="/secure/query/submit/**/*.xml"          value-ref="secureQuerySubmitAndRunToXMLController"/>
    133                                 <entry key="/secure/query/result/**/*.html"         value-ref="secureQueryResultController"/>
    134                                 <entry key="/secure/query/result/**/*.xls"          value-ref="secureQueryResultController"/>
    135                                 <entry key="/secure/query/result/**/*.xml"          value-ref="secureQueryIBISQResultController"/>     
    136                                 <entry key="/secure/query/configuration/**"         value-ref="queryConfigurationController"/>
    137 
    138                                 <entry key="/secure/query/definition/detail/*/*"    value-ref="secureQueryDefinitionDetailController"/>
    139                                 <entry key="/secure/query/definition/result/*/*"    value-ref="secureQueryDefinitionResultController"/>
    140                                 <entry key="/secure/query/definition/builder/*/*"   value-ref="secureQueryDefinitionBuilderController"/>
    141                                 <entry key="/secure/query/definition/apply/*/*"     value-ref="secureQueryDefinitionApplyController"/>
    142                                 <entry key="/secure/query/definition/from/builder"  value-ref="secureQueryDefinitionFromBuilderController"/>
    143                                 <entry key="/secure/query/definition/from/result"   value-ref="secureQueryDefinitionFromResultController"/>
    144 
    145 
    146                                 <!-- C O M M U N I T Y -->
    147                                 <entry key="/community/builder/*.html"      value-ref="communityBuilderController"/>
    148                                 <entry key="/community/indicators/**"       value-ref="communityIndicatorsReportController"/>
    149                                 <entry key="/community/introduction/**"     value-ref="communityIntroductionController"/>
    150                                 <entry key="/community/indicator/**"        value-ref="communityIndicatorReportController"/>
    151 
    152 
    153                                 <!-- R E P O R T
    154                                 <entry key="/report/*/summary/*.html"       value-ref="reportIndicatorViewController"/>
    155                                 <entry key="/report/*/complete/*.html"      value-ref="reportIndicatorViewController"/>
    156                                 <entry key="/report/highligh/**/*.html"     value-ref="reportIndicatorViewController"/>
    157 -->
    158                                 <!-- R E P O R T -->
    159                                 <entry key="/report/*/*/*.html"                   value-ref="reportIndicatorViewController"/>
    160                                 <entry key="/report/*/*.html"                     value-ref="reportHTMLContentController"/>
    161 
    162 
    163                                 <!-- U S E R   P R O F I L E -->
    164                                 <entry key="/user/Login.html"               value-ref="userLoginController"/>
    165                                 <entry key="/user/Selections.html"          value-ref="userSelectionsController"/>
    166 
    167                                 <entry key="/user/Registration.html"        value-ref="userEditRegistrationController"/>
    168                                 <entry key="/user/registration/save"        value-ref="userSaveRegistrationController"/>
    169                                 <entry key="/user/registration/verify/**"   value-ref="userVerifyRegistrationController"/>
    170 
    171                                 <entry key="/user/Access.html"              value-ref="userAccessController"/>
    172                                 <entry key="/user/status"                   value-ref="userStatusController"/>
    173                                 <entry key="/user/access/email"             value-ref="userEmailAccessController"/>
    174 <!--
    175                                 <entry key="/user/Profile.html"             value-ref="userEditProfileController"/>
    176                                 <entry key="/user/profile/save"             value-ref="userSaveProfileController"/>
    177                                 <entry key="/user/profile/delete"           value-ref="userDeleteProfileController"/>
    178 -->
    179 
    180                                 <!-- M E T A D A T A   X M L   F I L E -->
    181                                 <entry key="/dataportal/metadata/*.html" value-ref="viewXMLAsHTMLController"/>
    182 
    183 
    184                                 <!-- S E A R C H
    185                                 <entry key="/search" value-ref="viewSearchController"/>
    186 -->
    187 
    188                                 <!-- G E N E R I C   T R A S F O R M A T I O N -->
    189                                 <!--
    190                                         This controller is needed for adhoc system reports to work. 
    191                                         At one point it was thought to not enable this controller as
    192                                         it could be a potential security risk because it would bypass
    193                                         the spring security mechanism.  However, this is NOT the case
    194                                         as the controller only can access xml files within its
    195                                         configuration limitation or via the xmlURL request parameter. 
    196                                         In either case if there were sensitive data in these files
    197                                         they should NEVER be placed in a non secured, public facing
    198                                         webapp/directory. 
    199 
    200                                         To be safe, it is probably still best to remove this request
    201                                         from production deployements.  It should only be enabled for
    202                                         local query module development and testing environment where
    203                                         the QM developer wants to test their XML files.
    204                                 -->
    20571                                <entry key="/view.html" value-ref="viewHTTPXMLXSLTRequestParameterController"/>
    20672
    20773                                <!-- F I L E   C O N T E N T   S T R E A M E R -->
    20874                                <entry key="/view/WEB-INF/**" value-ref="viewAccessDeniedController"/>
    209                                 <entry key="/view/shared/**"  value-ref="sharedContentGetFileController"/>
    21075                                <entry key="/view/**"         value-ref="viewGetFileController"/>
    21176
    21277                        </map>
    21378                </constructor-arg>
    214         </bean>
    215 
    216 
    217         <!--
    218                 ADOPTER BEAN DEFINITION OVERRIDES AND PROPERTY OVERRIDES
    219                 This section provides the adopter a mechanism to override bean definitions
    220                 and property values.  Theses bean definitions should be listed AFTER ALL
    221                 imported bean files. 
    222         -->
    223 
    224 
    225 <bean id="securityAuthenticationProviderList" class="java.util.ArrayList">
    226         <description>
    227                 Defines the types of provides to be used for authenticating a user.
    228                 This list can be 1:n with the first being tried then the next etc
    229                 until successful/all providers have been tried.
    230 
    231                 Note that you MUST have the appropriate/associated spring bean xml
    232                 file included/imported to be able to use the selected provider.
    233         </description>
    234         <constructor-arg>
    235                 <list>
    236                         <ref bean="securityXMLAuthenticationProvider"/>
    237                 </list>
    238         </constructor-arg>
    239 </bean>
    240 
    241         <bean id="userMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    242                 <description>
    243                         Local, internal webapp mail sender config that can be used for
    244                         testing without having to have the app server setup with a JNDI
    245                         mail session configuration.  If the app server is NOT setup for
    246                         JNDI then this code and the refs within the web.xml (and any
    247                         enterprise app server config file refs) should be commented out as
    248                         leaving in will cause the app to not load/start.  Note also that if
    249                         using this configuration the mail.jar and possibly the activation.jar
    250                         will need to be put into the app's lib folder.  If/when the JNDI
    251                         is used it is important to remove those jars from the webapp's lib.
    252                 </description>
    253 
    254                 <property name="protocol" value="smtps"/>
    255                 <property name="host" value="smtp.gmail.com"/>
    256                 <property name="port" value="465"/>
    257                 <property name="username" value=""/>
    258                 <property name="password" value=""/>
    259                 <property name="javaMailProperties">
    260                         <props>
    261                                 <prop key="mail.smtp.connectiontimeout">200000</prop>
    262                                 <prop key="mail.smtp.timeout">10000</prop>
    263                                 <prop key="mail.debug">true</prop>
    264                         </props>
    265                 </property>
    266         </bean>
    267         <bean id="userEmailVerificationService" class="org.ibisph.user.service.EmailAccountAccess">
    268                 <property name="javaMailSender"  ref="userMailSender"/>
    269                 <property name="mailMessageFrom" value="nmtrakcing@nmtracking.org"/>
    270                 <property name="mailSubject"     value="NM Tracking Verification"/>
    271                 <property name="mailMessageSearchReplaceSignature" value="[VerificationURLSearchSignature]"/>
    272                 <property name="mailMessageHTML" value="#{userVerificationEmailMessage.string}"/>
    273         </bean>
    274         <bean id="userEmailPasswordService" class="org.ibisph.user.service.EmailAccountAccess">
    275                 <property name="javaMailSender"  ref="userMailSender"/>
    276                 <property name="mailMessageFrom" value="nmtrakcing@nmtracking.org"/>
    277                 <property name="mailSubject"     value="NM Tracking Reset"/>
    278                 <property name="mailMessageSearchReplaceSignature" value="[Password_SearchReplaceSignature]"/>
    279                 <property name="mailMessageHTML" value="#{userSendPasswordEmailMessage.string}"/>
    28079        </bean>
    28180
Note: See TracChangeset for help on using the changeset viewer.