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

Last change on this file since 22683 was 22683, checked in by GarthBraithwaite_STG, 2 months ago

view - Implemented normal content path and published path with updated comments. Removed report requests as not currently implemented in v3 with no signs of ever being. css tweaks.

File size: 4.6 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        <bean id="communityRequestPathPrefixToRemove" class="org.ibisph.model.StringHolder">
20                <description>
21                        Typically used for adopters that have the community request under
22                        "dataportal/community".  For those cases or any other case that is
23                        not the same as the core community request without a web.xml servlet
24                        base requset path mapping this value needs to be populated for the
25                        model map to work propertly.  If dataportal/community AND the web.xml
26                        contains a dataportal mapping this value should be "/community/.
27                </description>
28                <constructor-arg value=""/>
29        </bean>
30
31
32        <!-- X M L   M O D E L S -->
33        <bean id="communityControlFilePathModelMap" class="org.ibisph.modelmap.ModelFromFilePathAndNameService">
34                <description>xsl param value that allows the XSLT pages to access IP XMLs</description>
35                <property name="getModelService" ref="commonXMLFilePathModelService"/>
36                <property name="modelMapKey"     value="CommunityProfileXMLFilePath"/>
37                <property name="filePathAndName" value="#{communityControlFilePath.string}"/>
38        </bean>
39
40        <bean id="communitySelectionsToSessionModelMap" 
41                class="org.ibisph.communityprofile.modelmap.ModelFromHTTPRequestPath" 
42        >
43                <description>
44                        Put all the paths in - not all be used for every type of page but
45                        some combination by all pages.  None of these are the primary XML
46                        model for the CP pages.
47                </description>
48                <property name="pathPrefixToRemove"     value="#{communityRequestPathPrefixToRemove.string}"/>
49                <property name="modelMapKey"            value="#{commonXMLModelMapKey.string}"/>
50                <property name="getModelService"        ref="commonXMLFilePathModelService"/>
51        </bean> 
52
53
54        <!--  C O N T R O L L E R S  -->
55        <bean id="communityCommonControllerProperties" 
56                parent="commonModelMapListController" 
57                abstract="true"
58        >
59                <property name="modelMapList">
60                        <list>
61                                <ref bean="commonDimensionsModelMap"/>
62                                <ref bean="commonMeasuresModelMap"/>
63                                <ref bean="commonValueTypesModelMap"/>
64                                <ref bean="commonSimpleBlankXMLModelMap"/>
65
66                                <ref bean="indicatorIndicatorSetsModelMap"/>
67                                <ref bean="indicatorPublishedIndicatorsModelMap"/>
68                                <ref bean="indicatorIndicatorProfileXMLFilePathModelMap"/>
69
70                                <ref bean="communityControlFilePathModelMap"/>
71                                <ref bean="communitySelectionsToSessionModelMap"/>
72                        </list>
73                </property>
74        </bean>
75
76        <bean id="communityIndicatorsReportController" parent="communityCommonControllerProperties">
77                <property name="view" ref="communityIndicatorsReportView"/>
78        </bean>
79
80        <bean id="communityIndicatorReportController" parent="communityCommonControllerProperties">
81                <property name="view" ref="communityIndicatorReportView"/>
82        </bean>
83
84        <bean id="communityFactsController" parent="commonModelMapListController">
85                <property name="modelMapList">
86                        <list>
87                                <ref bean="commonDimensionsModelMap"/>
88                                <ref bean="commonMeasuresModelMap"/>
89                                <ref bean="commonValueTypesModelMap"/>
90
91                                <ref bean="indicatorIndicatorSetsModelMap"/>
92                                <ref bean="indicatorPublishedIndicatorsModelMap"/>
93                                <ref bean="indicatorIndicatorProfileXMLFilePathModelMap"/>
94
95                                <ref bean="communityControlFilePathModelMap"/>
96                                <ref bean="communitySelectionsToSessionModelMap"/>
97                        </list>
98                </property>
99                <property name="view" ref="communityFactsView"/>
100        </bean>
101
102
103        <!--  V I E W S  -->
104        <bean id="communityIndicatorsReportView" parent="commonXSLTTransformationView">
105                <property name="XSLTPathAndFilename" value="html/community/indicators/IndicatorsPage.xslt"/>
106        </bean>
107        <bean id="communityFactsView" parent="commonXSLTTransformationView">
108                <property name="XSLTPathAndFilename" value="html/community/facts/FactsPage.xslt"/>
109        </bean>
110        <bean id="communityIndicatorReportView" parent="commonXSLTTransformationView">
111                <property name="XSLTPathAndFilename" value="html/community/indicator/IndicatorPage.xslt"/>
112        </bean>
113
114</beans>
115
Note: See TracBrowser for help on using the repository browser.