source: main/trunk/ibisph-view/src/main/webapp/WEB-INF/config/spring/community.xml @ 19916

Last change on this file since 19916 was 19916, checked in by GarthBraithwaite_STG, 2 years ago

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 size: 3.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4        IBIS-PH View System's "Community Profile" module related Spring properties.
5        These properties are all specific to the "community profile" type requests
6        and include community profile specific resources, controllers, and views.
7-->
8
9<beans default-lazy-init="false" default-autowire="no"
10        xmlns="http://www.springframework.org/schema/beans"
11        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"
13>
14
15        <!--  M O D E L S   /   C O N T R O L L E R   R E S O R U C E S -->
16        <bean id="communityControlFilePath" class="org.ibisph.model.StringHolder">
17                <constructor-arg value="community/"/>
18        </bean>
19
20
21        <!-- X M L   M O D E L S -->
22        <bean id="communityControlFilePathModelMap" class="org.ibisph.modelmap.ModelFromFilePathAndNameService">
23                <description>xsl param value that allows the XSLT pages to access IP XMLs</description>
24                <property name="getModelService" ref="commonXMLFilePathModelService"/>
25                <property name="modelMapKey"     value="CommunityProfileXMLFilePath"/>
26                <property name="filePathAndName" value="#{communityControlFilePath.string}"/>
27        </bean>
28
29        <bean id="communitySelectionsToSessionModelMap" 
30                class="org.ibisph.communityprofile.modelmap.ModelFromHTTPRequestPath" 
31        >
32                <description>
33                        Put all the paths in - not all be used for every type of page but
34                        some combination by all pages.  None of these are the primary XML
35                        model for the CP pages.
36                </description>
37                <property name="modelMapKey"     value="#{commonXMLModelMapKey.string}"/>
38                <property name="getModelService" ref="commonXMLFilePathModelService"/>
39        </bean> 
40
41
42        <!--  C O N T R O L L E R S  -->
43        <bean id="communityCommonControllerProperties" 
44                parent="commonModelMapListController" 
45                abstract="true"
46        >
47                <property name="modelMapList">
48                        <list>
49                                <ref bean="commonDimensionsModelMap"/>
50                                <ref bean="commonMeasuresModelMap"/>
51                                <ref bean="commonValueTypesModelMap"/>
52                                <ref bean="commonSimpleBlankXMLModelMap"/>
53
54                                <ref bean="indicatorIndicatorSetsModelMap"/>
55                                <ref bean="indicatorIndicatorProfileFilePathModelMap"/>
56                                <ref bean="indicatorPublishedIndicatorsModelMap"/>
57
58                                <ref bean="communityControlFilePathModelMap"/>
59                                <ref bean="communitySelectionsToSessionModelMap"/>
60                        </list>
61                </property>
62        </bean>
63
64        <bean id="communityIndicatorsReportController" parent="communityCommonControllerProperties">
65                <property name="view" ref="communityIndicatorsReportView"/>
66        </bean>
67
68        <bean id="communityIndicatorReportController" parent="communityCommonControllerProperties">
69                <property name="view" ref="communityIndicatorReportView"/>
70        </bean>
71
72        <bean id="communityFactsController" parent="commonModelMapListController">
73                <property name="modelMapList">
74                        <list>
75                                <ref bean="commonDimensionsModelMap"/>
76                                <ref bean="commonMeasuresModelMap"/>
77                                <ref bean="commonValueTypesModelMap"/>
78
79                                <ref bean="indicatorIndicatorSetsModelMap"/>
80                                <ref bean="indicatorIndicatorProfileFilePathModelMap"/>
81                                <ref bean="indicatorPublishedIndicatorsModelMap"/>
82
83                                <ref bean="communityControlFilePathModelMap"/>
84                                <ref bean="communitySelectionsToSessionModelMap"/>
85                        </list>
86                </property>
87                <property name="view" ref="communityFactsView"/>
88        </bean>
89
90
91        <!--  V I E W S  -->
92        <bean id="communityIndicatorsReportView" parent="commonXSLTTransformationView">
93                <property name="XSLTPathAndFilename" value="html/community/indicators/IndicatorsPage.xslt"/>
94        </bean>
95        <bean id="communityFactsView" parent="commonXSLTTransformationView">
96                <property name="XSLTPathAndFilename" value="html/community/facts/FactsPage.xslt"/>
97        </bean>
98        <bean id="communityIndicatorReportView" parent="commonXSLTTransformationView">
99                <property name="XSLTPathAndFilename" value="html/community/indicator/IndicatorPage.xslt"/>
100        </bean>
101
102</beans>
103
Note: See TracBrowser for help on using the repository browser.