1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | |
---|
3 | <beans default-lazy-init="false" default-autowire="no" |
---|
4 | xmlns="http://www.springframework.org/schema/beans" |
---|
5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
6 | xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" |
---|
7 | > |
---|
8 | <!-- See core ss.xml for info about this file. --> |
---|
9 | <import resource="common.xml"/> |
---|
10 | <import resource="filter.xml"/> |
---|
11 | |
---|
12 | <import resource="security.xml"/> |
---|
13 | <import resource="security-db_authenticated.xml"/> |
---|
14 | <import resource="security-xml_authentication.xml"/> |
---|
15 | <import resource="SiteSpecific-Security.xml"/> |
---|
16 | |
---|
17 | <import resource="indicator.xml"/> |
---|
18 | <import resource="query.xml"/> |
---|
19 | <import resource="query-definition.xml"/> |
---|
20 | <import resource="community.xml"/> |
---|
21 | <import resource="secure.xml"/> |
---|
22 | <import resource="user.xml"/> |
---|
23 | |
---|
24 | <import resource="chart-agileblox.xml"/> |
---|
25 | <import resource="view.xml"/> |
---|
26 | |
---|
27 | <import resource="IBISPHViewContentPath.xml"/> |
---|
28 | |
---|
29 | |
---|
30 | <bean id="siteSpecificDispatcherServletURLMap" class="java.util.HashMap"> |
---|
31 | <constructor-arg> |
---|
32 | <map> |
---|
33 | <!-- D E F A U L T H T M L C O N T E N T --> |
---|
34 | <entry key="/**/*.html" value-ref="viewHTMLContentConventionController"/> |
---|
35 | <entry key="/*/" value-ref="viewHTMLContentConventionController"/> |
---|
36 | <entry key="/*" value-ref="viewHTMLContentConventionController"/> |
---|
37 | |
---|
38 | <!-- I N D I C A T O R --> |
---|
39 | <entry key="/dataportal/indicator/index/Alphabetical.html" value-ref="indicatorAlphabeticalIndexController"/> |
---|
40 | <entry key="/dataportal/indicator/index/Categorized.html" value-ref="indicatorCategorizedIndexController"/> |
---|
41 | |
---|
42 | <entry key="/dataportal/indicator/view/*.html" value-ref="indicatorViewController"/> |
---|
43 | <entry key="/dataportal/indicator/view/classic/*.html" value-ref="indicatorViewClassicController"/> |
---|
44 | <entry key="/dataportal/indicator/important_facts/*.html" value-ref="indicatorImportantFactsController"/> |
---|
45 | <entry key="/dataportal/indicator/available_services/*.html" value-ref="indicatorAvailableServicesController"/> |
---|
46 | <entry key="/dataportal/indicator/related/*/*.html" value-ref="indicatorRelatedIndicatorsController"/> |
---|
47 | <entry key="/dataportal/indicator/other_resources/*.html" value-ref="indicatorOtherResourcesController"/> |
---|
48 | <entry key="/dataportal/indicator/complete_profile/*.html" value-ref="indicatorCompleteProfileController"/> |
---|
49 | <entry key="/dataportal/indicator/view_numbers/*.html" value-ref="indicatorViewNumbersController"/> |
---|
50 | |
---|
51 | <entry key="/indicator/chart/**" value-ref="IBISPHViewContentIndicatorChartGraphicController"/> |
---|
52 | <entry key="/indicator/graph/**" value-ref="IBISPHViewContentIndicatorChartGraphicController"/> |
---|
53 | |
---|
54 | <!-- Q U E R Y --> |
---|
55 | <entry key="/dataportal/query/selection/**" value-ref="querySelectionController"/> |
---|
56 | <entry key="/dataportal/query/configuration/**" value-ref="queryConfigurationController"/> |
---|
57 | <entry key="/dataportal/query/builder/**" value-ref="queryBuilderController"/> |
---|
58 | <entry key="/dataportal/query/submit/**/*.html" value-ref="querySubmitController"/> |
---|
59 | <entry key="/dataportal/query/submit/**/*.xml" value-ref="querySubmitAndRunToXMLController"/> |
---|
60 | |
---|
61 | <entry key="/dataportal/query/result/chart/**" value-ref="queryChartGraphicController"/> |
---|
62 | <entry key="/dataportal/query/result/graph/**" value-ref="queryChartGraphicController"/> |
---|
63 | |
---|
64 | <entry key="/dataportal/query/result/**/*.html" value-ref="queryResultController"/> |
---|
65 | <entry key="/dataportal/query/result/classic/**/*.html" value-ref="queryResultClassicController"/> |
---|
66 | <entry key="/dataportal/query/result/**/*.xls" value-ref="queryResultSimpleController"/> <!-- put here so can plug in Excel specifici controller in the future. --> |
---|
67 | <entry key="/dataportal/query/result/**/*.xml" value-ref="queryIBISQResultController"/> |
---|
68 | |
---|
69 | <entry key="/dataportal/query/builder/form/**" value-ref="queryBuilderFormController"/> |
---|
70 | |
---|
71 | <!-- Q U E R Y D E F I N I T I O N --> |
---|
72 | <entry key="/dataportal/query/definition/list/*" value-ref="queryDefinitionListController"/> |
---|
73 | <entry key="/dataportal/query/definition/index/*" value-ref="queryDefinitionIndexController"/> |
---|
74 | |
---|
75 | <entry key="/dataportal/query/definition/detail/*/*" value-ref="queryDefinitionDetailController"/> |
---|
76 | <entry key="/dataportal/query/definition/result/*/*" value-ref="queryDefinitionResultController"/> |
---|
77 | <entry key="/dataportal/query/definition/builder/*/*" value-ref="queryDefinitionBuilderController"/> |
---|
78 | <entry key="/dataportal/query/definition/apply/*/*" value-ref="queryDefinitionApplyController"/> |
---|
79 | <entry key="/dataportal/query/definition/toggle/sticky" value-ref="queryDefinitionToggleStickySessionController"/> |
---|
80 | |
---|
81 | <entry key="/dataportal/query/definition/from/builder" value-ref="queryDefinitionFromBuilderController"/> |
---|
82 | <entry key="/dataportal/query/definition/from/result" value-ref="queryDefinitionFromResultController"/> |
---|
83 | <entry key="/dataportal/query/definition/save" value-ref="queryDefinitionSaveController"/> |
---|
84 | <entry key="/dataportal/query/definition/delete/*" value-ref="queryDefinitionDeleteController"/> |
---|
85 | |
---|
86 | <!-- S E C U R E --> |
---|
87 | <entry key="/dataportal/secure" value-ref="secureSelectionController"/> |
---|
88 | <entry key="/dataportal/secure/*.jsp" value-ref="secureHTTPTestController"/> |
---|
89 | <entry key="/dataportal/secure/selection/*.html" value-ref="secureSelectionController"/> |
---|
90 | <entry key="/dataportal/secure/query/selection/**" value-ref="secureQuerySelectionController"/> |
---|
91 | <entry key="/dataportal/secure/query/builder/**" value-ref="secureQueryBuilderController"/> |
---|
92 | <entry key="/dataportal/secure/query/submit/**/*.html" value-ref="secureQuerySubmitController"/> |
---|
93 | <entry key="/dataportal/secure/query/submit/**/*.xml" value-ref="secureQuerySubmitAndRunToXMLController"/> |
---|
94 | <entry key="/dataportal/secure/query/result/**/*.html" value-ref="secureQueryResultController"/> |
---|
95 | <entry key="/dataportal/secure/query/result/classic/**/*.html" value-ref="secureQueryResultClassicController"/> |
---|
96 | <entry key="/dataportal/secure/query/result/**/*.xls" value-ref="secureQueryResultSimpleController"/> |
---|
97 | <entry key="/dataportal/secure/query/result/**/*.xml" value-ref="secureQueryIBISQResultController"/> |
---|
98 | <entry key="/dataportal/secure/query/configuration/**" value-ref="queryConfigurationController"/> |
---|
99 | |
---|
100 | <entry key="/dataportal/secure/query/builder/form/**" value-ref="secureQueryBuilderFormController"/> |
---|
101 | |
---|
102 | <entry key="/dataportal/secure/query/definition/detail/*/*" value-ref="secureQueryDefinitionDetailController"/> |
---|
103 | <entry key="/dataportal/secure/query/definition/result/*/*" value-ref="secureQueryDefinitionResultController"/> |
---|
104 | <entry key="/dataportal/secure/query/definition/builder/*/*" value-ref="secureQueryDefinitionBuilderController"/> |
---|
105 | <entry key="/dataportal/secure/query/definition/apply/*/*" value-ref="secureQueryDefinitionApplyController"/> |
---|
106 | <entry key="/dataportal/secure/query/definition/from/builder" value-ref="secureQueryDefinitionFromBuilderController"/> |
---|
107 | <entry key="/dataportal/secure/query/definition/from/result" value-ref="secureQueryDefinitionFromResultController"/> |
---|
108 | |
---|
109 | <!-- C O M M U N I T Y --> |
---|
110 | <entry key="/dataportal/community/snapshot/Builder.html" value-ref="communitySnapshotBuilderController"/> |
---|
111 | <entry key="/dataportal/community/snapshot/report/**" value-ref="communitySnapshotReportController"/> |
---|
112 | |
---|
113 | <!-- path: graphic/indicator view name/community name/community value.svg --> |
---|
114 | <entry key="/dataportal/community/highlight/graphic/**" value-ref="communityHighlightChartGraphicController"/> |
---|
115 | |
---|
116 | <entry key="/dataportal/community/highlight/index/**" value-ref="communityHighlightIndexController"/> |
---|
117 | <entry key="/dataportal/community/highlight/introduction/**" value-ref="communityHighlightIntroductionController"/> |
---|
118 | <entry key="/dataportal/community/highlight/profile/**" value-ref="communityHighlightProfileController"/> |
---|
119 | <entry key="/dataportal/community/highlight/report/**" value-ref="communityHighlightReportController"/> |
---|
120 | <entry key="/dataportal/community/highlight/**" value-ref="communityHighlightSelectionController"/> |
---|
121 | |
---|
122 | <!-- M E T A D A T A X M L F I L E --> |
---|
123 | <entry key="/dataportal/metadata/Introduction.html" value-ref="viewHTMLContentConventionController"/> |
---|
124 | <entry key="/dataportal/metadata/Index.html" value-ref="viewHTMLContentConventionController"/> |
---|
125 | <entry key="/dataportal/metadata/*.html" value-ref="viewXMLAsHTMLController"/> |
---|
126 | |
---|
127 | <!-- U S E R P R O F I L E --> |
---|
128 | <entry key="/user/Login.html" value-ref="userLoginController"/> |
---|
129 | <entry key="/user/Selections.html" value-ref="userSelectionsController"/> |
---|
130 | |
---|
131 | <entry key="/user/Registration.html" value-ref="userEditRegistrationController"/> |
---|
132 | <entry key="/user/registration/save" value-ref="userSaveRegistrationController"/> |
---|
133 | <entry key="/user/registration/verify/**" value-ref="userVerifyRegistrationController"/> |
---|
134 | |
---|
135 | <entry key="/user/Access.html" value-ref="userAccessController"/> |
---|
136 | <entry key="/user/status" value-ref="userStatusController"/> |
---|
137 | <entry key="/user/access/email" value-ref="userEmailAccessController"/> |
---|
138 | |
---|
139 | |
---|
140 | <!-- G E N E R I C T R A S F O R M A T I O N --> |
---|
141 | <entry key="/view.html" value-ref="viewHTTPXMLXSLTRequestParameterController"/> |
---|
142 | |
---|
143 | <!-- R E D I R E C T S --> |
---|
144 | <entry key="/fire" value-ref="siteSpecificFireController"/> |
---|
145 | <entry key="/water" value-ref="siteSpecificWaterController"/> |
---|
146 | |
---|
147 | <!-- F I L E C O N T E N T S T R E A M E R --> |
---|
148 | <entry key="/view/WEB-INF/**" value-ref="viewAccessDeniedController"/> |
---|
149 | <entry key="/view/ibis/**" value-ref="IBISPHViewContentGetFileController"/> |
---|
150 | <entry key="/view/**" value-ref="viewGetFileController"/> |
---|
151 | |
---|
152 | </map> |
---|
153 | </constructor-arg> |
---|
154 | </bean> |
---|
155 | |
---|
156 | |
---|
157 | <bean id="siteSpecificPropertyOverrides" class="org.springframework.beans.factory.config.PropertyOverrideConfigurer"> |
---|
158 | <property name="ignoreResourceNotFound" value="true"/> |
---|
159 | <property name="locations"> |
---|
160 | <list> |
---|
161 | <value>WEB-INF/config/SiteSpecific.properties</value> |
---|
162 | <value>file:${user.home}/epht-view.properties</value> |
---|
163 | <value>file:${user.home}/ibisph-view_nm-epht.properties</value> |
---|
164 | </list> |
---|
165 | </property> |
---|
166 | </bean> |
---|
167 | |
---|
168 | |
---|
169 | <!-- For development use the standard, non caching XSLT transformer. Default |
---|
170 | common is the caching version: org.ibisph.xslt.CachedSaxonTransformerFactory. |
---|
171 | --> |
---|
172 | <bean id="commonXSLTTransformerFactory" class="net.sf.saxon.TransformerFactoryImpl"/> |
---|
173 | |
---|
174 | |
---|
175 | <bean id="securityAuthenticationProviderList" class="java.util.ArrayList"> |
---|
176 | <description> |
---|
177 | Defines the types of provides to be used for authenticating a user. |
---|
178 | This list can be 1:n with the first being tried then the next etc |
---|
179 | until successful/all providers have been tried. |
---|
180 | |
---|
181 | Note that you MUST have the appropriate/associated spring bean xml |
---|
182 | file included/imported to be able to use the selected provider. |
---|
183 | </description> |
---|
184 | <constructor-arg> |
---|
185 | <list> |
---|
186 | <ref bean="securityXMLAuthenticationProvider"/> |
---|
187 | </list> |
---|
188 | </constructor-arg> |
---|
189 | </bean> |
---|
190 | |
---|
191 | <!-- smtp mail mods --> |
---|
192 | <bean id="userEmailVerificationService" class="org.ibisph.user.service.EmailAccountAccess"> |
---|
193 | <property name="javaMailSender" ref="userMailSender"/> |
---|
194 | <property name="mailMessageFrom" value="nmtrakcing@nmtracking.org"/> |
---|
195 | <property name="mailSubject" value="NM Tracking Verification"/> |
---|
196 | <property name="mailMessageSearchReplaceSignature" value="[VerificationURLSearchSignature]"/> |
---|
197 | <property name="mailMessageHTML" value="#{userVerificationEmailMessage.string}"/> |
---|
198 | </bean> |
---|
199 | <bean id="userEmailPasswordService" class="org.ibisph.user.service.EmailAccountAccess"> |
---|
200 | <property name="javaMailSender" ref="userMailSender"/> |
---|
201 | <property name="mailMessageFrom" value="nmtrakcing@nmtracking.org"/> |
---|
202 | <property name="mailSubject" value="NM Tracking Reset"/> |
---|
203 | <property name="mailMessageSearchReplaceSignature" value="[Password_SearchReplaceSignature]"/> |
---|
204 | <property name="mailMessageHTML" value="#{userSendPasswordEmailMessage.string}"/> |
---|
205 | </bean> |
---|
206 | |
---|
207 | |
---|
208 | |
---|
209 | |
---|
210 | <!-- REDIRECT CONTROLLER EXAMPLE: |
---|
211 | This can be used when you want to have a simple URL to share that maps to |
---|
212 | a more complex request. To make this work three things are needed: |
---|
213 | 1) web.xml has to map the request to the request dispatcher servlet. |
---|
214 | 2) the request dispatcher needs to have a URL to controller mapping. |
---|
215 | 3) the v3 controller definition which is provided below: |
---|
216 | <bean id="viewStaticWaterController" class="org.ibisph.web.springmvc.ModelMapAndViewController"> |
---|
217 | <property name="view"> |
---|
218 | <bean class="org.ibisph.web.springmvc.SimpleClientRedirectionView"> |
---|
219 | <property name="redirectionAddress" value="/environment/water/Introduction.html"/> |
---|
220 | <property name="prependWebappContextToRedirectionAddress" value="true"/> |
---|
221 | </bean> |
---|
222 | </property> |
---|
223 | </bean> |
---|
224 | |
---|
225 | NOTES: |
---|
226 | Aonther approach would be to simply create another hard coded controller |
---|
227 | that handles the request. The redirect is preferred because the user can |
---|
228 | actually see and bookmark the "real" request URL. This lessens the |
---|
229 | confusion of how do I get back to this page and hey this page is the same |
---|
230 | as that page - what's the diff? |
---|
231 | |
---|
232 | *** When v3 the modelMap property will not be needed. Also, at some future |
---|
233 | point could create a generic controller to do this but web.xml and the |
---|
234 | requset to controller mapping would still be needed. |
---|
235 | --> |
---|
236 | <bean id="siteSpecificWaterController" class="org.ibisph.web.springmvc.ModelMapAndViewController"> |
---|
237 | <property name="modelMap"><map/></property> |
---|
238 | <property name="view"> |
---|
239 | <bean class="org.ibisph.web.springmvc.SimpleClientRedirectionView"> |
---|
240 | <property name="redirectionAddress" value="/environment/water/Introduction.html"/> |
---|
241 | <property name="prependWebappContextToRedirectionAddress" value="true"/> |
---|
242 | </bean> |
---|
243 | </property> |
---|
244 | </bean> |
---|
245 | |
---|
246 | <bean id="siteSpecificFireController" class="org.ibisph.web.springmvc.ModelMapAndViewController"> |
---|
247 | <property name="modelMap"><map/></property> |
---|
248 | <property name="view"> |
---|
249 | <bean class="org.ibisph.web.springmvc.SimpleClientRedirectionView"> |
---|
250 | <property name="redirectionAddress" value="/environment/air/FireAndSmoke.html"/> |
---|
251 | <property name="prependWebappContextToRedirectionAddress" value="true"/> |
---|
252 | </bean> |
---|
253 | </property> |
---|
254 | </bean> |
---|
255 | |
---|
256 | </beans> |
---|
257 | |
---|