~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/resources/META-INF/dhis/beans.xml

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<beans xmlns="http://www.springframework.org/schema/beans"
 
3
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
4
       xsi:schemaLocation="
 
5
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
 
6
 
 
7
  <!-- Content providers -->
 
8
  
 
9
  <bean id="rssHealthContentProvider" 
 
10
    class="org.hisp.dhis.dashboard.provider.RssContentProvider">
 
11
    <property name="url" value="http://health.yahoo.com/news/rss/health"/>
 
12
    <property name="key" value="healthItems"/>
 
13
  </bean>
 
14
  
 
15
  <bean id="rssHivAidsContentProvider" 
 
16
    class="org.hisp.dhis.dashboard.provider.RssContentProvider">
 
17
    <property name="url" value="http://health.yahoo.com/news/rss/hiv_aids"/>
 
18
    <property name="key" value="hivAidsItems"/>
 
19
  </bean>
 
20
  
 
21
  <bean id="reportContentProvider" 
 
22
    class="org.hisp.dhis.dashboard.provider.ReportContentProvider">
 
23
    <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
 
24
    <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
 
25
    <property name="reportManager" ref="org.hisp.dhis.report.ReportManager"/>
 
26
    <property name="key" value="reports"/>
 
27
  </bean>
 
28
  
 
29
  <bean id="dataMartExportContentProvider"
 
30
    class="org.hisp.dhis.dashboard.provider.DataMartExportContentProvider">
 
31
    <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
 
32
    <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
 
33
    <property name="key" value="dataMartExports"/>
 
34
  </bean>
 
35
  
 
36
  <bean id="olapUrlContentProvider"
 
37
    class="org.hisp.dhis.dashboard.provider.OlapUrlContentProvider">
 
38
    <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
 
39
    <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
 
40
    <property name="key" value="olapUrls"/>
 
41
  </bean>
 
42
    
 
43
  <!-- Manager -->
 
44
  
 
45
  <bean id="org.hisp.dhis.dashboard.manager.DashboardManager" 
 
46
    class="org.hisp.dhis.dashboard.manager.DefaultDashboardManager">
 
47
    <property name="userSettingService" ref="org.hisp.dhis.user.UserSettingService"/>
 
48
    <property name="contentProviders">
 
49
      <map>        
 
50
        <entry>
 
51
          <key><value>report</value></key>
 
52
          <ref local="reportContentProvider"/>
 
53
        </entry>
 
54
        <entry>
 
55
          <key><value>data_mart_export</value></key>
 
56
          <ref local="dataMartExportContentProvider"/>
 
57
        </entry>
 
58
        <entry>
 
59
          <key><value>olap_url</value></key>
 
60
          <ref local="olapUrlContentProvider"/>
 
61
        </entry>
 
62
        <entry>
 
63
          <key><value>rss_health</value></key>
 
64
          <ref local="rssHealthContentProvider"/>
 
65
        </entry>
 
66
        <entry>
 
67
          <key><value>rss_hiv_aids</value></key>
 
68
          <ref local="rssHivAidsContentProvider"/>
 
69
        </entry>
 
70
      </map>
 
71
    </property>
 
72
  </bean>
 
73
  
 
74
  <!-- Actions -->
 
75
  
 
76
  <bean id="org.hisp.dhis.dashboard.action.ProvideContentAction"
 
77
    class="org.hisp.dhis.dashboard.action.ProvideContentAction"
 
78
    scope="prototype">
 
79
    <property name="manager" ref="org.hisp.dhis.dashboard.manager.DashboardManager"/>
 
80
    <property name="chartService" ref="org.hisp.dhis.chart.ChartService"/>
 
81
  </bean>
 
82
  
 
83
  <bean id="org.hisp.dhis.dashboard.action.SetAreaItemAction"
 
84
    class="org.hisp.dhis.dashboard.action.SetAreaItemAction"
 
85
    scope="prototype">
 
86
    <property name="manager" ref="org.hisp.dhis.dashboard.manager.DashboardManager"/>
 
87
  </bean>
 
88
  
 
89
  <bean id="org.hisp.dhis.dashboard.action.ClearAreaAction"
 
90
    class="org.hisp.dhis.dashboard.action.ClearAreaAction"
 
91
    scope="prototype">
 
92
    <property name="manager" ref="org.hisp.dhis.dashboard.manager.DashboardManager"/>
 
93
  </bean>
 
94
  
 
95
  <bean id="org.hisp.dhis.dashboard.action.GetChartAction"
 
96
    class="org.hisp.dhis.dashboard.action.GetChartAction"
 
97
    scope="prototype">
 
98
    <property name="chartService" ref="org.hisp.dhis.chart.ChartService"/>
 
99
  </bean>
 
100
  
 
101
  <bean id="org.hisp.dhis.dashboard.action.RemoveReportAction"
 
102
    class="org.hisp.dhis.dashboard.action.RemoveReportAction"
 
103
    scope="prototype">
 
104
    <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
 
105
    <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
 
106
    <property name="reportStore" ref="org.hisp.dhis.report.ReportStore"/>
 
107
  </bean>
 
108
  
 
109
  <bean id="org.hisp.dhis.dashboard.action.RemoveDataMartExportAction"
 
110
    class="org.hisp.dhis.dashboard.action.RemoveDataMartExportAction"
 
111
    scope="prototype">
 
112
    <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
 
113
    <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
 
114
    <property name="dataMartExportService" ref="org.hisp.dhis.datamart.DataMartExportService"/>
 
115
  </bean>
 
116
  
 
117
  <bean id="org.hisp.dhis.dashboard.action.RemoveOlapUrlAction"
 
118
    class="org.hisp.dhis.dashboard.action.RemoveOlapUrlAction"
 
119
    scope="prototype">
 
120
    <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
 
121
    <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
 
122
    <property name="olapURLService" ref="org.hisp.dhis.olap.OlapURLService"/>
 
123
  </bean>
 
124
  
 
125
</beans>