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

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-importexport/src/main/resources/xwork.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-web-commons.xml"/>
 
5
 
 
6
  <package name="dhis-web-importexport" extends="dhis-web-commons" namespace="/dhis-web-importexport">
 
7
 
 
8
    <action name="index" class="org.hisp.dhis.importexport.action.NoAction">
 
9
      <result name="success" type="redirect">setImportFormat.action?importFormat=DXF</result>
 
10
    </action>
 
11
                
 
12
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
13
    <!-- Import                                                        -->
 
14
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
15
 
 
16
    <action name="setImportFormat" class="org.hisp.dhis.importexport.action.imp.SetImportTypeAction">
 
17
      <result name="success" type="redirect">displayImportForm.action</result>
 
18
      <result name="configDhis14" type="redirect">displayConfigDhis14Form.action</result>
 
19
    </action>
 
20
    
 
21
    <action name="displayImportForm" class="org.hisp.dhis.importexport.action.imp.GetImportOptionsAction">
 
22
      <result name="dhis14" type="redirect">displayConfigDhis14Form.action</result>
 
23
      <result name="success" type="velocity">/main.vm</result>
 
24
      <param name="page">/dhis-web-importexport/importForm.vm</param>
 
25
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
26
      <param name="javascripts">javascript/import.js,javascript/process.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js</param>
 
27
    </action>
 
28
                
 
29
    <action name="import" class="org.hisp.dhis.importexport.action.imp.ImportAction">
 
30
      <result name="success" type="chain">displayImportForm</result>
 
31
      <interceptor-ref name="fileUploadStack"/>
 
32
    </action>
 
33
    
 
34
    <action name="getImportStatus" class="org.hisp.dhis.importexport.action.imp.GetImportStatusAction">
 
35
      <result name="success" type="velocity-xml">/dhis-web-importexport/responseImportStatus.vm</result>
 
36
      <param name="onExceptionReturn">plainTextError</param>
 
37
    </action>
 
38
    
 
39
    <action name="getImportAnalysis" class="org.hisp.dhis.importexport.action.imp.GetImportAnalysisAction">
 
40
      <result name="success" type="velocity">/main.vm</result>
 
41
      <param name="page">/dhis-web-importexport/importAnalysisForm.vm</param>
 
42
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
43
    </action>
 
44
                
 
45
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
46
    <!-- Object Ajax                                                   -->
 
47
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
48
 
 
49
    <action name="discardObjectAjax" class="org.hisp.dhis.importexport.action.object.DiscardObjectAction">
 
50
      <result name="success" type="velocity-xml">/dhis-web-importexport/responseSuccess.vm</result>
 
51
      <result name="error" type="velocity-xml">/dhis-web-importexport/responseError.vm</result>
 
52
      <param name="onExceptionReturn">plainTextError</param>
 
53
    </action>
 
54
        
 
55
    <action name="discardObjectsOfTypeAjax" class="org.hisp.dhis.importexport.action.object.DiscardObjectsOfTypeAction">
 
56
      <result name="success" type="velocity-xml">/dhis-web-importexport/responseSuccess.vm</result>
 
57
      <result name="error" type="velocity-xml">/dhis-web-importexport/responseError.vm</result>
 
58
      <param name="onExceptionReturn">plainTextError</param>
 
59
    </action>
 
60
                
 
61
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
62
    <!-- Preview                                                       -->
 
63
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
64
                
 
65
    <action name="displayPreviewForm" class="org.hisp.dhis.importexport.action.imp.GetPreviewOptionsAction">
 
66
      <result name="success" type="velocity">/main.vm</result>
 
67
      <param name="page">/dhis-web-importexport/previewForm.vm</param>
 
68
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
69
      <param name="javascripts">../dhis-web-commons/lists/lists.js,javascript/import.js</param>
 
70
    </action>
 
71
                
 
72
    <action name="displayMatchForm" class="org.hisp.dhis.importexport.action.imp.GetMatchOptionsAction">
 
73
      <result name="success" type="velocity">/main.vm</result>
 
74
      <param name="page">/dhis-web-importexport/matchToExistingForm.vm</param>
 
75
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
76
      <param name="javascripts">../dhis-web-commons/lists/lists.js,javascript/import.js</param>
 
77
    </action>
 
78
                
 
79
    <action name="displayCompareForm" class="org.hisp.dhis.importexport.action.imp.GetCompareOptionsAction">
 
80
      <result name="success" type="velocity">/main.vm</result>
 
81
      <param name="page">/dhis-web-importexport/compareToExistingForm.vm</param>
 
82
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
83
      <param name="javascripts">../dhis-web-commons/lists/lists.js,javascript/import.js</param>
 
84
    </action>           
 
85
                
 
86
    <action name="importAllObjects" class="org.hisp.dhis.importexport.action.object.ImportAllObjectsAction">
 
87
      <result name="success" type="redirect">displayImportForm.action</result>
 
88
    </action>
 
89
                
 
90
    <action name="discardAllObjects" class="org.hisp.dhis.importexport.action.object.DiscardAllObjectsAction">
 
91
      <result name="success" type="redirect">displayImportForm.action</result>
 
92
    </action>
 
93
                
 
94
    <action name="matchObject" class="org.hisp.dhis.importexport.action.object.MatchObjectAction">
 
95
      <result name="success" type="chain">displayPreviewForm</result>
 
96
    </action>
 
97
                
 
98
    <action name="discardObject" class="org.hisp.dhis.importexport.action.object.DiscardObjectAction">
 
99
      <result name="success" type="chain">displayPreviewForm</result>
 
100
    </action>
 
101
                
 
102
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
103
    <!-- Export                                                        -->
 
104
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
105
 
 
106
    <action name="displayMetaDataExportForm" class="org.hisp.dhis.importexport.action.exp.GetExportOptionsAction">
 
107
      <result name="success" type="velocity">/main.vm</result>
 
108
      <param name="page">/dhis-web-importexport/exportMetaDataForm.vm</param>
 
109
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
110
      <param name="javascripts">javascript/export.js</param>
 
111
    </action>
 
112
                
 
113
    <action name="displayDetailedMetaDataExportForm" class="org.hisp.dhis.importexport.action.exp.GetDetailedExportOptionsAction">
 
114
      <result name="success" type="velocity">/main.vm</result>
 
115
      <param name="page">/dhis-web-importexport/exportDetailedMetaDataForm.vm</param>
 
116
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
117
      <param name="javascripts">javascript/detailedExport.js,../dhis-web-commons/lists/lists.js</param>
 
118
    </action>
 
119
        
 
120
    <action name="displayDataValueExportForm" class="org.hisp.dhis.importexport.action.exp.GetExportOptionsAction">
 
121
      <result name="success" type="velocity">/main.vm</result>
 
122
      <param name="page">/dhis-web-importexport/exportDataValueForm.vm</param>
 
123
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
124
      <param name="javascripts">../dhis-web-commons/lists/lists.js,../dhis-web-commons/oust/oust.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,javascript/export.js</param>
 
125
    </action>
 
126
    
 
127
    <action name="exportMetaData" class="org.hisp.dhis.importexport.action.exp.MetaDataExportAction">
 
128
      <result name="success" type="stream">
 
129
        <param name="contentType">application/zip</param>
 
130
        <param name="inputName">inputStream</param>
 
131
        <param name="contentDisposition">filename="${fileName}"</param>
 
132
        <param name="bufferSize">10240</param>
 
133
      </result>
 
134
    </action>
 
135
        
 
136
        <action name="exportDetailedMetaData" class="org.hisp.dhis.importexport.action.exp.DetailedMetaDataExportAction">
 
137
      <result name="success" type="stream">
 
138
        <param name="contentType">application/zip</param>
 
139
        <param name="inputName">inputStream</param>
 
140
        <param name="contentDisposition">filename="${fileName}"</param>
 
141
        <param name="bufferSize">10240</param>
 
142
      </result>
 
143
    </action>   
 
144
        
 
145
    <action name="exportDataValue" class="org.hisp.dhis.importexport.action.exp.DataValueExportAction">
 
146
      <result name="success" type="stream">
 
147
        <param name="contentType">application/zip</param>
 
148
        <param name="inputName">inputStream</param>
 
149
        <param name="contentDisposition">filename="${fileName}"</param>
 
150
        <param name="bufferSize">10240</param>                          
 
151
      </result>
 
152
        </action>
 
153
        
 
154
        <action name="exportDataMart" class="org.hisp.dhis.importexport.action.exp.ExportDataMartAction">
 
155
          <result name="success" type="velocity-xml">/dhis-web-importexport/responseSuccess.vm</result>
 
156
      <param name="onExceptionReturn">plainTextError</param>
 
157
    </action>
 
158
    
 
159
    <action name="getExportStatus" class="org.hisp.dhis.importexport.action.exp.GetExportStatusAction">
 
160
      <result name="success" type="velocity-xml">/dhis-web-importexport/responseExportStatus.vm</result>
 
161
      <param name="onExceptionReturn">plainTextError</param>
 
162
    </action>
 
163
    
 
164
    <action name="getDataElementList" class="org.hisp.dhis.importexport.action.exp.GetDataElementListAction">      
 
165
      <result name="success" type="velocity-json">/dhis-web-importexport/responseDataElements.vm</result>
 
166
      <param name="onExceptionReturn">plainTextError</param>
 
167
    </action>
 
168
                
 
169
    <action name="getIndicatorList" class="org.hisp.dhis.importexport.action.exp.GetIndicatorListAction">      
 
170
      <result name="success" type="velocity-json">/dhis-web-importexport/responseIndicators.vm</result>
 
171
      <param name="onExceptionReturn">plainTextError</param>
 
172
    </action>
 
173
        
 
174
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
175
    <!-- IXF Configuration                                             -->
 
176
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
177
        
 
178
    <action name="displayConfigIXFForm" class="org.hisp.dhis.importexport.action.ixf.GetIXFConfigurationAction">
 
179
      <result name="success" type="velocity">/main.vm</result>
 
180
      <param name="page">/dhis-web-importexport/configIXFForm.vm</param>
 
181
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
182
      <param name="javascripts">javascript/config.js,../dhis-web-commons/lists/lists.js</param>
 
183
    </action>
 
184
                
 
185
    <action name="configIXF" class="org.hisp.dhis.importexport.action.ixf.SetIXFConfigurationAction">
 
186
      <result name="success" type="redirect">displayMetaDataExportForm.action?exportFormat=IXF</result>
 
187
    </action>
 
188
                
 
189
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
190
    <!-- Dhis 1.4 Configuration                                        -->
 
191
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
192
    
 
193
    <action name="displayConfigDhis14Form" class="org.hisp.dhis.importexport.action.dhis14.GetDhis14ConfigurationAction">
 
194
      <result name="success" type="velocity">/main.vm</result>
 
195
      <param name="page">/dhis-web-importexport/configDhis14Form.vm</param>
 
196
      <param name="menu">/dhis-web-importexport/mainMenu.vm</param>
 
197
      <param name="javascripts">javascript/config.js</param>
 
198
    </action>
 
199
    
 
200
    <action name="configDhis14" class="org.hisp.dhis.importexport.action.dhis14.SetDhis14ConfigurationAction">
 
201
      <result name="success" type="redirect">setImportFormat.action?importFormat=DHIS14FILE</result>
 
202
    </action>
 
203
    
 
204
    <action name="validateConfigDhis14" class="org.hisp.dhis.importexport.action.dhis14.ValidateDhis14ConfigurationAction">
 
205
      <result name="success" type="velocity-xml">/dhis-web-importexport/responseSuccess.vm</result>
 
206
      <result name="input" type="velocity-xml">/dhis-web-importexport/responseInput.vm</result>
 
207
    </action>
 
208
    
 
209
  </package>
 
210
</xwork>