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

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.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
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
 
2
  "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
 
3
<xwork>
 
4
  <include file="dhis-support-webwork.xml"/>
 
5
  
 
6
  <!-- DHIS Web Commons -->
 
7
  
 
8
  <package name="dhis-web-commons" extends="dhis-support-webwork" namespace="/dhis-web-commons">
 
9
 
 
10
    <interceptors>
 
11
      <interceptor name="portalParamsInterceptor"
 
12
        class="org.hisp.dhis.webportal.interceptor.WebWorkPortalParamsInterceptor"/>
 
13
      <interceptor name="portalModuleInterceptor"
 
14
        class="org.hisp.dhis.webportal.interceptor.WebWorkPortalModuleInterceptor"/>
 
15
      <interceptor name="portalMenuInterceptor"
 
16
        class="org.hisp.dhis.webportal.interceptor.WebWorkPortalMenuInterceptor"/>
 
17
      <interceptor name="organisationUnitTreeInterceptor"
 
18
        class="org.hisp.dhis.ouwt.interceptor.OrganisationUnitTreeInterceptor"/>
 
19
      <interceptor name="portalUserInterceptor"
 
20
        class="org.hisp.dhis.webportal.interceptor.WebWorkPortalUserInterceptor"/>
 
21
      <interceptor name="securityInterceptor"
 
22
        class="org.hisp.dhis.security.intercept.WebWorkSecurityInterceptor"/>
 
23
      <interceptor name="execAndWait"
 
24
        class="org.hisp.dhis.hibernate.interceptor.OpenSessionExecuteAndWaitInterceptor"/>
 
25
      
 
26
      <interceptor-stack name="commonInterceptors">
 
27
        <interceptor-ref name="static-params"/>
 
28
        <interceptor-ref name="params"/>
 
29
        <interceptor-ref name="chain"/>
 
30
        <interceptor-ref name="i18nInterceptor"/>
 
31
        <!--
 
32
        The securityInterceptor is put after the i18nInterceptor so that the
 
33
        access denied error pages can use internationalisation.
 
34
        -->
 
35
        <interceptor-ref name="securityInterceptor"/>
 
36
        <interceptor-ref name="sortOrderInterceptor"/>
 
37
        <interceptor-ref name="displayPropertyInterceptor"/>
 
38
        <interceptor-ref name="dataDictionaryModeInterceptor"/>
 
39
        <interceptor-ref name="systemSettingInterceptor"/>
 
40
        <interceptor-ref name="styleInterceptor"/>
 
41
        <interceptor-ref name="portalParamsInterceptor"/>
 
42
        <interceptor-ref name="portalMenuInterceptor"/>
 
43
        <interceptor-ref name="portalModuleInterceptor"/>
 
44
        <interceptor-ref name="portalUserInterceptor"/>
 
45
      </interceptor-stack>
 
46
      
 
47
      <interceptor-stack name="exceptionStack">
 
48
        <interceptor-ref name="exceptionInterceptor"/>
 
49
        <interceptor-ref name="commonInterceptors"/>
 
50
      </interceptor-stack>
 
51
      
 
52
      <interceptor-stack name="transactionStack">
 
53
        <interceptor-ref name="exceptionStack"/>
 
54
        <interceptor-ref name="transactionInterceptor"/>
 
55
      </interceptor-stack>
 
56
      
 
57
      <interceptor-stack name="fileUploadStack">
 
58
        <interceptor-ref name="exceptionInterceptor"/>
 
59
        <interceptor-ref name="fileUpload"/>
 
60
        <interceptor-ref name="commonInterceptors"/>
 
61
      </interceptor-stack>
 
62
      
 
63
      <interceptor-stack name="organisationUnitTreeStack">
 
64
        <interceptor-ref name="transactionStack"/>
 
65
        <interceptor-ref name="organisationUnitTreeInterceptor"/>
 
66
      </interceptor-stack>
 
67
    </interceptors>
 
68
    
 
69
    <default-interceptor-ref name="exceptionStack"/>
 
70
    
 
71
    <global-results>
 
72
      <result name="exceptionDefault" type="velocity">/exception.vm</result>
 
73
      <result name="accessDenied" type="velocity">/accessDenied.vm</result>
 
74
      <result name="plainTextError" type="plainTextErrorResult">
 
75
        <param name="parse">true</param>
 
76
        <param name="message">${exception.class.name}: ${exception.message}</param>
 
77
      </result>
 
78
    </global-results>
 
79
    
 
80
  </package>
 
81
  
 
82
  <!-- Organisation Unit Selection Tree -->
 
83
  
 
84
  <package name="dhis-web-commons-oust" extends="dhis-web-commons" namespace="/dhis-web-commons/oust">
 
85
    
 
86
    <action name="expandSubtree" class="org.hisp.dhis.oust.action.ExpandSubtreeAction">
 
87
      <result name="success" type="velocity">/dhis-web-commons/ouwt/responseExpand.vm</result>
 
88
      <interceptor-ref name="transactionStack"/>
 
89
      <param name="onExceptionReturn">plainTextError</param>
 
90
    </action>
 
91
    
 
92
    <action name="getExpandedTree" class="org.hisp.dhis.oust.action.GetExpandedTreeAction">
 
93
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseTree.vm</result>
 
94
      <interceptor-ref name="transactionStack"/>
 
95
      <param name="onExceptionReturn">plainTextError</param>
 
96
    </action>
 
97
    
 
98
    <action name="setorgunit" class="org.hisp.dhis.oust.action.SetSelectedOrganisationUnitAction">
 
99
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
 
100
      <interceptor-ref name="transactionStack"/>
 
101
      <param name="onExceptionReturn">plainTextError</param>
 
102
    </action>
 
103
    
 
104
    <action name="addorgunit" class="org.hisp.dhis.oust.action.AddSelectedOrganisationUnitAction">
 
105
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
 
106
      <interceptor-ref name="transactionStack"/>
 
107
      <param name="onExceptionReturn">plainTextError</param>
 
108
    </action>
 
109
    
 
110
    <action name="removeorgunit"
 
111
      class="org.hisp.dhis.oust.action.RemoveSelectedOrganisationUnitAction">
 
112
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
 
113
      <interceptor-ref name="transactionStack"/>
 
114
      <param name="onExceptionReturn">plainTextError</param>
 
115
    </action>
 
116
    
 
117
  </package>
 
118
  
 
119
  <!-- Organisation Unit Web Tree -->
 
120
  
 
121
  <package name="dhis-web-commons-ouwt" extends="dhis-web-commons" namespace="/dhis-web-commons/ouwt">
 
122
    
 
123
    <action name="expandSubtree" class="org.hisp.dhis.ouwt.action.ExpandSubtreeAction">
 
124
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseExpand.vm</result>
 
125
      <interceptor-ref name="transactionStack"/>
 
126
      <param name="onExceptionReturn">plainTextError</param>
 
127
    </action>
 
128
    
 
129
    <action name="collapseSubtree" class="org.hisp.dhis.ouwt.action.CollapseSubtreeAction">
 
130
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseCollapse.vm</result>
 
131
      <interceptor-ref name="transactionStack"/>
 
132
      <param name="onExceptionReturn">plainTextError</param>
 
133
    </action>
 
134
    
 
135
    <action name="getExpandedTree" class="org.hisp.dhis.ouwt.action.GetExpandedTreeAction">
 
136
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseTree.vm</result>
 
137
      <interceptor-ref name="transactionStack"/>
 
138
      <param name="onExceptionReturn">plainTextError</param>
 
139
    </action>
 
140
    
 
141
    <action name="setorgunit" class="org.hisp.dhis.ouwt.action.SetSelectedOrganisationUnitAction">
 
142
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
 
143
      <interceptor-ref name="transactionStack"/>
 
144
      <param name="onExceptionReturn">plainTextError</param>
 
145
    </action>
 
146
    
 
147
    <action name="addorgunit" class="org.hisp.dhis.ouwt.action.AddSelectedOrganisationUnitAction">
 
148
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
 
149
      <interceptor-ref name="transactionStack"/>
 
150
      <param name="onExceptionReturn">plainTextError</param>
 
151
    </action>
 
152
    
 
153
    <action name="removeorgunit"
 
154
      class="org.hisp.dhis.ouwt.action.RemoveSelectedOrganisationUnitAction">
 
155
      <result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
 
156
      <interceptor-ref name="transactionStack"/>
 
157
      <param name="onExceptionReturn">plainTextError</param>
 
158
    </action>
 
159
    
 
160
  </package>
 
161
  
 
162
  <!-- Menu -->
 
163
  
 
164
  <package name="dhis-web-commons-menu" extends="dhis-web-commons" namespace="/dhis-web-commons/menu">
 
165
    
 
166
    <action name="setMenuVisible" class="org.hisp.dhis.webportal.menu.action.SetMenuVisibleAction">
 
167
      <result name="success" type="httpheader">
 
168
        <param name="status">204</param>
 
169
      </result>
 
170
      <param name="onExceptionReturn">plainTextError</param>
 
171
    </action>
 
172
    
 
173
    <action name="setMenuHidden" class="org.hisp.dhis.webportal.menu.action.SetMenuHiddenAction">
 
174
      <result name="success" type="httpheader">
 
175
        <param name="status">204</param>
 
176
      </result>
 
177
      <param name="onExceptionReturn">plainTextError</param>
 
178
    </action>
 
179
 
 
180
  </package>
 
181
  
 
182
  <!-- Security -->
 
183
  
 
184
  <package name="dhis-web-commons-security" extends="dhis-web-commons" namespace="/dhis-web-commons-security">
 
185
    
 
186
    <action name="loggedIn" class="org.hisp.dhis.security.action.LoggedInAction">
 
187
      <result name="success" type="redirect">/</result>
 
188
      <interceptor-ref name="transactionStack"/>
 
189
    </action>
 
190
    
 
191
  </package>
 
192
 
 
193
  <!-- i18n -->
 
194
 
 
195
  <package name="dhis-web-commons-i18n" extends="dhis-web-commons" namespace="/dhis-web-commons">
 
196
 
 
197
    <action name="i18n" class="org.hisp.dhis.i18n.action.I18nAction">
 
198
      <result name="success" type="velocity">/main.vm</result>
 
199
      <param name="page">/dhis-web-commons/i18n/translate.vm</param>
 
200
      <param name="javascripts">../dhis-web-commons/i18n/i18n.js,../dhis-web-commons/lists/lists.js</param>
 
201
      <interceptor-ref name="transactionStack"/>
 
202
    </action>
 
203
 
 
204
    <action name="translate" class="org.hisp.dhis.i18n.action.TranslateAction">
 
205
      <result name="success" type="velocity">/dhis-web-commons/i18n/goback.vm</result>
 
206
    </action>
 
207
 
 
208
    <action name="getTranslations" class="org.hisp.dhis.i18n.action.GetTranslationsAction">
 
209
      <result name="success" type="velocity">/dhis-web-commons/i18n/responseTranslations.vm</result>
 
210
      <interceptor-ref name="transactionStack"/>
 
211
      <param name="onExceptionReturn">plainTextError</param>
 
212
    </action>
 
213
    
 
214
  </package>
 
215
  
 
216
  <!-- Common actions -->
 
217
  
 
218
  <package name="dhis-web-commons-ajax" extends="dhis-web-commons" namespace="/dhis-web-commons-ajax">
 
219
    
 
220
    <action name="getDataElements" class="org.hisp.dhis.commons.action.GetDataElementsAction">
 
221
          <result name="success" type="velocity">/dhis-web-commons/ajax/responseDataElement.vm</result>
 
222
      <interceptor-ref name="transactionStack"/>
 
223
      <param name="onExceptionReturn">plainTextError</param>
 
224
    </action>
 
225
                
 
226
    <action name="getDataSets" class="org.hisp.dhis.commons.action.GetDataSetsAction">
 
227
      <result name="success" type="velocity">/dhis-web-commons/ajax/responseDataSet.vm</result>
 
228
      <interceptor-ref name="transactionStack"/>
 
229
      <param name="onExceptionReturn">plainTextError</param>
 
230
    </action>
 
231
                
 
232
    <action name="getIndicators" class="org.hisp.dhis.commons.action.GetIndicatorsAction">
 
233
      <result name="success" type="velocity">/dhis-web-commons/ajax/responseIndicator.vm</result>
 
234
      <interceptor-ref name="transactionStack"/>
 
235
      <param name="onExceptionReturn">plainTextError</param>
 
236
    </action>
 
237
                
 
238
    <action name="getOrganisationUnitChildren" class="org.hisp.dhis.commons.action.GetOrganisationUnitChildrenAction">
 
239
      <result name="success" type="velocity">/dhis-web-commons/ajax/responseOrganisationUnit.vm</result>
 
240
      <interceptor-ref name="transactionStack"/>
 
241
      <param name="onExceptionReturn">plainTextError</param>
 
242
    </action>
 
243
                
 
244
    <action name="getOrganisationUnits" class="org.hisp.dhis.commons.action.GetOrganisationUnitsAction">
 
245
      <result name="success" type="velocity">/dhis-web-commons/ajax/responseOrganisationUnit.vm</result>
 
246
      <interceptor-ref name="transactionStack"/>
 
247
      <param name="onExceptionReturn">plainTextError</param>
 
248
    </action>
 
249
 
 
250
    <action name="getPeriods" class="org.hisp.dhis.commons.action.GetPeriodsAction">
 
251
      <result name="success" type="velocity">/dhis-web-commons/ajax/responsePeriod.vm</result>
 
252
      <interceptor-ref name="transactionStack"/>
 
253
      <param name="onExceptionReturn">plainTextError</param>
 
254
    </action>
 
255
                
 
256
  </package>
 
257
  
 
258
  <!-- About -->
 
259
  
 
260
  <package name="dhis-web-commons-about" extends="dhis-web-commons" namespace="/dhis-web-commons-about">
 
261
    
 
262
    <action name="about" class="org.hisp.dhis.about.action.AboutAction">
 
263
      <result name="success" type="velocity">/main.vm</result>
 
264
      <param name="page">/dhis-web-commons/about/about.vm</param>
 
265
      <param name="menu">/dhis-web-commons/about/menu.vm</param>
 
266
    </action>    
 
267
  
 
268
    <action name="displayFeedbackForm" class="org.hisp.dhis.commons.action.NoAction">
 
269
      <result name="success" type="velocity">/main.vm</result>
 
270
      <param name="page">/dhis-web-commons/about/feedbackForm.vm</param>
 
271
      <param name="menu">/dhis-web-commons/about/menu.vm</param>
 
272
    </action>
 
273
    
 
274
    <action name="sendFeedback" class="org.hisp.dhis.about.action.SendFeedbackAction">
 
275
      <result name="success" type="redirect">intro.action</result>
 
276
    </action>
 
277
    
 
278
    <action name="help" class="org.hisp.dhis.about.action.HelpAction">
 
279
      <result name="success" type="velocity">/main.vm</result>
 
280
      <param name="page">/dhis-web-commons/help/help.vm</param>
 
281
      <param name="menu">/dhis-web-commons/about/menu.vm</param>
 
282
    </action>
 
283
    
 
284
  </package>
 
285
  
 
286
</xwork>