Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote / src / main / resources / eu / etaxonomy / cdm / remote / json / jsonConfigurations.xml @ 200979f6

History | View | Annotate | Download (26.1 KB)

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
    xmlns:tx="http://www.springframework.org/schema/tx"
5
    xmlns:context="http://www.springframework.org/schema/context"
6
    xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
    http://www.springframework.org/schema/context   http://www.springframework.org/schema/context/spring-context-2.5.xsd
8
    http://www.springframework.org/schema/tx   http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
9
    ">
10

    
11
    <bean id="genericApiCardinalityPropertyFilter" class="eu.etaxonomy.cdm.remote.json.util.CardinalityPropertyFilter">
12
       <property name="includeToOneRelations" value="false" />
13
       <property name="includeToManyRelations" value="false" />
14
       <property name="exceptions">
15
         <set>
16
           <!--
17
             the exceptions listed here should be covered by implementations of
18
             eu.etaxonomy.cdm.persistence.dao.initializer.AutoPropertyInitializer.
19
             The according configuration files are
20
              - /cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/persistence_security.xml
21
              - /cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/persistence.xml
22
             whereas persistence.xml will be removed in the near future.
23
            -->
24
             <value>FeatureTree.root</value>
25
             <value>FeatureNode.children</value>
26
             <value>FeatureNode.feature</value>
27

    
28
             <value>TreeNode.data</value>
29
             <value>TreeNode.data</value>
30

    
31
             <value>PolytomousKey.root</value>
32
             <value>PolytomousKeyNode.children</value>
33
             <value>PolytomousKeyNode.question</value>
34
             <value>PolytomousKeyNode.feature</value>
35
             <value>PolytomousKeyNode.statement</value>
36
             <value>PolytomousKeyNode.modifyingText</value>
37

    
38
             <value>LinkedPolytomousKeyNodeRowDto.childStatement</value>
39
             <value>LinkedPolytomousKeyNodeRowDto.rowQuestion</value>
40
             <value>LinkedPolytomousKeyNodeRowDto.rowFeature</value>
41
             <!-- value>LinkedPolytomousKeyNodeRowDto.keyNode</value-->
42

    
43
             <value>Media.representations</value>
44
             <value>MediaRepresentation.parts</value>
45

    
46
             <value>Sequence.marker</value>
47
             <value>Sequence.genBankAccessionNumber</value>
48
             <value>Sequence.genBankUri</value>
49

    
50
             <value>Annotation.annotationType</value>
51
             <value>Marker.markerType</value>
52

    
53
             <value>DerivationEvent.derivatives</value>
54
             <value>DerivationEvent.originals</value>
55

    
56
             <value>Point.referenceSystem</value>
57

    
58
             <!-- CardinalityPropertyFilter should allow defining exceptions for abstract super classes : -->
59
             <!-- <value>eu.etaxonomy.cdm.model.description.DescriptionElementBase.feature</value> -->
60

    
61
             <value>Synonym.sec</value>
62
             <value>Taxon.sec</value>
63

    
64
             <value>StateData.state</value>
65
             <value>StateData.modifiers</value>
66
             <value>StateData.modifyingText</value>
67

    
68
             <value>TextData.feature</value>
69
             <value>CategoricalData.feature</value>
70
             <value>CommonTaxonName.feature</value>
71
             <value>Distribution.feature</value>
72
             <value>IndividualsAssociation.feature</value>
73
             <value>QuantitativeData.feature</value>
74
             <value>TaxonInteraction.feature</value>
75
             <value>TextData.feature</value>
76
             <value>IdentifiableSource.citation</value>
77
             
78
             <value>Registration.name</value>
79
             <value>Registration.typeDesignations</value>
80
             <value>Registration.institution</value>
81

    
82
             <value>SearchResult.entity</value>
83
             
84
             <value>CdmEntity.entity</value>
85
         </set>
86
       </property>
87
     </bean>
88

    
89
     <bean id="nameCatalogueApiCardinalityPropertyFilter" class="eu.etaxonomy.cdm.remote.json.util.CardinalityPropertyFilter">
90
       <property name="includeToOneRelations" value="true" />
91
       <property name="includeToManyRelations" value="true" />
92
       <property name="exceptions">
93
         <set>
94
         </set>
95
       </property>
96
     </bean>
97

    
98
  <!--
99
         =================================================
100
            default configuration for RESTful read(/write) service
101
         =================================================
102
    -->
103
  <bean name="jsonConfig" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
104
    init-method="init">
105
    <property name="jsonBeanProcessorMatcher">
106
      <bean
107
        class="eu.etaxonomy.cdm.remote.json.processor.matcher.CdmProxyBeanProcessorMatcher" />
108
    </property>
109
    <property name="defaultValueProcessorMatcher">
110
      <bean
111
        class="eu.etaxonomy.cdm.remote.json.processor.matcher.CdmDefaultValueProcessorMatcher" />
112
    </property>
113
    <property name="defaultValueProcessorMap">
114
        <map>
115
          <entry key="java.lang.Number">
116
            <bean
117
              class="eu.etaxonomy.cdm.remote.json.processor.value.CdmDefaultValueProcessor" />
118
          </entry>
119
        </map>
120
    </property>
121
    <property name="jsonBeanProcessors">
122
      <map>
123
        <entry key="org.hibernate.proxy.HibernateProxy">
124
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor" />
125
        </entry>
126
        <entry key="eu.etaxonomy.cdm.model.common.TermBase">
127
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TermBaseBeanProcessor">
128
             <property name="excludes">
129
               <set value-type="java.lang.String">
130
                   <value>partOf</value><!-- FIXME exclude partOf to avoid  lazy loading exceptions  -->
131
                   <value>kindOf</value><!-- FIXME exclude kindOf to avoid  lazy loading exceptions  -->
132
                   <value>infraGenericMarker</value><!-- FIXME leads to IllegalStateException if not excluded  -->
133
               </set>
134
            </property>
135
           </bean>
136
         </entry>
137
         <entry key="eu.etaxonomy.cdm.model.common.Representation">
138
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.RepresentationBeanProcessor"/>
139
         </entry>
140
         <entry key="eu.etaxonomy.cdm.model.media.Media">
141
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.MediaBeanProcessor">
142
              <property name="replaceTitle" value="true" />
143
              <property name="replaceDescription" value="true" />
144
            </bean>
145
         </entry>
146
         <entry key="eu.etaxonomy.cdm.model.taxon.TaxonNode">
147
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNodeBeanProcessor" />
148
         </entry>
149
         <entry key="eu.etaxonomy.cdm.model.reference.Reference">
150
              <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.ReferenceBaseBeanProcessor"/>
151
         </entry>
152
         <entry key="eu.etaxonomy.cdm.model.name.TaxonName">
153
            <bean
154
              class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNameBeanProcessor">
155
              <property name="skipTaggedName" value="true" />
156
            </bean>
157
         </entry>
158
         <entry key="eu.etaxonomy.cdm.model.name.TypeDesignationBase">
159
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TypeDesignationBaseBeanProcessor"/>
160
         </entry>
161
         <entry key="eu.etaxonomy.cdm.model.description.KeyStatement">
162
              <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.KeyStatementBeanProcessor" />
163
         </entry>
164
         <entry key="eu.etaxonomy.cdm.model.agent.TeamOrPersonBase">
165
              <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TeamOrPersonBaseBeanProcessor" />
166
         </entry>
167
         <entry key="eu.etaxonomy.cdm.model.description.DescriptionElementBase">
168
              <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.DescriptionElementBeanProcessor" />
169
         </entry>
170
         <entry key="eu.etaxonomy.cdm.model.description.StateData">
171
              <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.StateDataBeanProcessor" />
172
         </entry>
173
         <entry key="org.apache.lucene.document.Document">
174
              <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.LuceneDocumentBeanProcessor" />
175
         </entry>
176
      </map>
177
    </property>
178
    <property name="jsonPropertyFilter">
179
        <bean class="net.sf.json.filters.OrPropertyFilter">
180
          <constructor-arg>
181
              <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
182
          </constructor-arg>
183
          <constructor-arg ref="genericApiCardinalityPropertyFilter">
184
          </constructor-arg>
185
        </bean>
186
    </property>
187
    <property name="jsonValueProcessorsByClass">
188
      <map>
189
        <entry key="org.hibernate.proxy.HibernateProxy">
190
          <bean
191
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
192
        </entry>
193
        <entry key="java.util.UUID">
194
          <bean
195
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
196
        </entry>
197
        <entry key="org.joda.time.DateTime">
198
          <bean
199
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
200
        </entry>
201
        <entry key="java.util.Calendar">
202
          <bean
203
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
204
        </entry>
205
        <entry key="org.joda.time.Partial">
206
          <bean
207
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
208
        </entry>
209
        <entry key="java.lang.Class">
210
          <bean
211
            class="eu.etaxonomy.cdm.remote.json.processor.value.ClassJSONValueProcessor" />
212
        </entry>
213
        <entry key="java.util.Map">
214
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
215
        </entry>
216
        <entry key="java.util.LinkedHashMap">
217
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
218
        </entry>
219
        <entry key="eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.TypeDesignationWorkingSet">
220
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
221
        </entry>
222
        <entry key="java.net.URI">
223
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
224
        </entry>
225
      </map>
226
    </property>
227
    <property name="ignoreDefaultExcludes" value="true" />
228
    <property name="excludes">
229
      <list value-type="java.lang.String">
230
        <value>declaringClass</value><!-- DefaultExclude -->
231
        <value>metaClass</value><!-- DefaultExclude -->
232
        <value>id</value>
233
        <value>cacheStrategy</value>
234
        <value>createdBy</value>
235
        <value>updatedBy</value>
236
      </list>
237
    </property>
238
  </bean>
239

    
240
  <!--
241
         =================================================
242
            configuration for RESTful classification service
243
         =================================================
244
    -->
245
  <bean name="jsonConfigClassification" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
246
    init-method="init">
247
    <property name="jsonBeanProcessorMatcher">
248
      <bean
249
        class="eu.etaxonomy.cdm.remote.json.processor.matcher.HibernateProxyBeanProcessorMatcher" />
250
    </property>
251
    <property name="jsonBeanProcessors">
252
      <map>
253
        <entry key="org.hibernate.proxy.HibernateProxy">
254
          <bean
255
            class="eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor" />
256
        </entry>
257
        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonNode">
258
          <bean
259
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNodeDtoBeanProcessor" />
260
        </entry>
261
      </map>
262
    </property>
263
    <property name="jsonPropertyFilter">
264
      <bean class="net.sf.json.filters.OrPropertyFilter">
265
        <constructor-arg>
266
            <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
267
        </constructor-arg>
268
        <constructor-arg ref="genericApiCardinalityPropertyFilter">
269
        </constructor-arg>
270
      </bean>
271
    </property>
272
    <property name="jsonValueProcessorsByClass">
273
      <map>
274
        <entry key="org.hibernate.proxy.HibernateProxy">
275
          <bean
276
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
277
        </entry>
278
        <entry key="java.util.UUID">
279
          <bean
280
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
281
        </entry>
282
        <entry key="org.joda.time.DateTime">
283
          <bean
284
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
285
        </entry>
286
        <entry key="java.util.Calendar">
287
          <bean
288
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
289
        </entry>
290
        <entry key="org.joda.time.Partial">
291
          <bean
292
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
293
        </entry>
294
        <entry key="java.lang.Class">
295
          <bean
296
            class="eu.etaxonomy.cdm.remote.json.processor.value.ClassJSONValueProcessor" />
297
        </entry>
298
        <entry key="java.util.Map">
299
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
300
        </entry>
301
        <entry key="java.net.URI">
302
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
303
        </entry>
304
      </map>
305
    </property>
306
    <property name="ignoreDefaultExcludes" value="true" />
307
    <property name="excludes">
308
      <list value-type="java.lang.String">
309
        <value>declaringClass</value><!-- DefaultExclude -->
310
        <value>metaClass</value><!-- DefaultExclude -->
311
        <value>id</value>
312
        <value>cacheStrategy</value>
313
        <value>createdBy</value>
314
        <value>updatedBy</value>
315
      </list>
316
    </property>
317
  </bean>
318

    
319
  <!--
320
       =================================================
321
         configuration for RESTful portal service
322
       =================================================
323
  -->
324

    
325
  <bean name="jsonConfigPortal" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
326
    init-method="init">
327
    <property name="jsonBeanProcessorMatcher">
328
      <bean
329
        class="eu.etaxonomy.cdm.remote.json.processor.matcher.CdmProxyBeanProcessorMatcher" />
330
    </property>
331
    <property name="defaultValueProcessorMatcher">
332
      <bean
333
        class="eu.etaxonomy.cdm.remote.json.processor.matcher.CdmDefaultValueProcessorMatcher" />
334
    </property>
335
    <property name="defaultValueProcessorMap">
336
        <map>
337
          <entry key="java.lang.Number">
338
            <bean
339
              class="eu.etaxonomy.cdm.remote.json.processor.value.CdmDefaultValueProcessor" />
340
          </entry>
341
        </map>
342
    </property>
343
    <property name="jsonBeanProcessors">
344
      <map>
345
        <entry key="org.hibernate.proxy.HibernateProxy">
346
          <bean
347
            class="eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor" />
348
        </entry>
349
        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonBase">
350
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonBaseBeanProcessor">
351
          <property name="excludes">
352
             <set value-type="java.lang.String">
353
                 <value>acceptedTaxon</value><!-- #6211 to avoid infinite loops in the synonymy -->
354
             </set>
355
          </property>
356
         </bean>  
357
        </entry>
358
        <entry key="eu.etaxonomy.cdm.model.name.TaxonName">
359
          <bean
360
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNameBeanProcessor" />
361
        </entry>
362
        <entry key="eu.etaxonomy.cdm.model.name.NameRelationship">
363
          <bean
364
            class="eu.etaxonomy.cdm.remote.json.processor.bean.NameRelationshipBeanProcessor" />
365
        </entry>
366
        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonRelationship">
367
          <bean
368
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonRelationshipBeanProcessor" />
369
        </entry>
370
        <entry key="eu.etaxonomy.cdm.model.common.TermBase">
371
          <bean
372
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TermBaseBeanProcessor">
373
            <property name="replaceRepresentations" value="true" />
374
            <property name="excludes">
375
                <set value-type="java.lang.String">
376
                  <value>infraGenericMarker</value><!-- FIXME leads to IllegalStateException if not excluded  -->
377
                  <value>partOf</value><!-- DefinedTermBase -->
378
                  <value>kindOf</value><!-- DefinedTermBase -->
379
                  <value>includes</value><!-- DefinedTermBase -->
380
                  <value>generalizationOf</value><!-- DefinedTermBase -->
381
                  <value>vocabulary</value><!-- DefinedTermBase -->
382
                  <!--
383
                      FIXME must exclude partOf, kindOf, includes, generalizationOf .. to
384
                      avoid class cast or lazy loading exceptions in TDWG Areas
385
                  -->
386
                </set>
387
            </property>
388
          </bean>
389
        </entry>
390
        <entry key="eu.etaxonomy.cdm.model.media.Media">
391
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.MediaBeanProcessor">
392
            <property name="replaceTitle" value="true" />
393
            <property name="replaceDescription" value="true" />
394
          </bean>
395
        </entry>
396
        <entry key="eu.etaxonomy.cdm.model.reference.Reference">
397
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.ReferenceBaseBeanProcessor"/>
398
        </entry>
399
        <entry key="eu.etaxonomy.cdm.model.description.TaxonNameDescription">
400
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNameDescriptionBeanProcessor">
401
              <property name="excludes">
402
                <set value-type="java.lang.String">
403
                  <value>taxonName</value>
404
                </set>
405
              </property>
406
          </bean>
407
        </entry>
408
        <entry key="eu.etaxonomy.cdm.api.facade.DerivedUnitFacade">
409
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.DerivedUnitFacadeBeanProcessor"/>
410
        </entry>
411
        <entry key="eu.etaxonomy.cdm.model.location.Point">
412
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.PointBeanProcessor"/>
413
        </entry>
414
        <entry key="eu.etaxonomy.cdm.model.agent.TeamOrPersonBase">
415
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TeamOrPersonBaseBeanProcessor" />
416
        </entry>
417
        <entry key="org.apache.lucene.document.Document">
418
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.LuceneDocumentBeanProcessor" />
419
        </entry>
420
        <entry key="eu.etaxonomy.cdm.common.TreeNode">
421
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TreeNodeBeanProcessor" />
422
        </entry>
423
        <entry key="eu.etaxonomy.cdm.model.description.DescriptionElementBase">
424
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.DescriptionElementBeanProcessor">
425
                <property name="replaceMultilanguageText" value="true" />
426
            </bean>
427
        </entry>
428
        <entry key="eu.etaxonomy.cdm.model.description.StateData">
429
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.StateDataBeanProcessor">
430
                <property name="replaceMultilanguageText" value="true" />
431
            </bean>
432
        </entry>
433
      </map>
434
    </property>
435
        <property name="jsonPropertyFilter">
436
            <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
437
        </property>
438
    <property name="jsonValueProcessorsByClass">
439
      <map>
440
        <entry key="org.hibernate.proxy.HibernateProxy">
441
          <bean
442
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
443
        </entry>
444
        <entry key="java.util.UUID">
445
          <bean
446
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
447
        </entry>
448
        <entry key="org.joda.time.DateTime">
449
          <bean
450
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
451
        </entry>
452
        <entry key="java.util.Calendar">
453
          <bean
454
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
455
        </entry>
456
        <entry key="org.joda.time.Partial">
457
          <bean
458
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
459
        </entry>
460
        <entry key="java.lang.Class">
461
          <bean
462
            class="eu.etaxonomy.cdm.remote.json.processor.value.ClassJSONValueProcessor" />
463
        </entry>
464
        <entry key="java.util.Map">
465
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
466
        </entry>
467
        <entry key="java.net.URI">
468
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
469
        </entry>
470
      </map>
471
    </property>
472
    <property name="ignoreDefaultExcludes" value="true" />
473
    <property name="excludes">
474
      <list value-type="java.lang.String">
475
        <value>declaringClass</value><!-- DefaultExclude -->
476
        <value>metaClass</value><!-- DefaultExclude -->
477
        <value>id</value>
478
        <!--
479
            commented out,
480
            see  #3347 (services and REST service controller for molecular classes implemented)
481
        <value>annotations</value>
482
        <value>markers</value>
483
        -->
484
        <value>cacheStrategy</value>
485
        <value>createdBy</value>
486
        <value>updatedBy</value>
487
        <value>inDescription</value>
488
      </list>
489
    </property>
490
  </bean>
491

    
492
   <!--
493
         =================================================
494
            default configuration name catalogue service
495
         =================================================
496
    -->
497
  <bean name="nameCatalogueJsonConfig" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
498
    init-method="init">
499
    <property name="jsonPropertyFilter">
500
        <bean class="net.sf.json.filters.OrPropertyFilter">
501
          <constructor-arg>
502
              <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
503
          </constructor-arg>
504
          <constructor-arg ref="nameCatalogueApiCardinalityPropertyFilter">
505
          </constructor-arg>
506
        </bean>
507
    </property>
508
    <property name="jsonValueProcessorsByClass">
509
      <map>
510
        <entry key="org.hibernate.proxy.HibernateProxy">
511
          <bean
512
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
513
        </entry>
514
        <entry key="java.util.UUID">
515
          <bean
516
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
517
        </entry>
518
        <entry key="org.joda.time.DateTime">
519
          <bean
520
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
521
        </entry>
522
        <entry key="java.util.Calendar">
523
          <bean
524
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
525
        </entry>
526
        <entry key="org.joda.time.Partial">
527
          <bean
528
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
529
        </entry>
530
        <entry key="java.util.Map">
531
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
532
        </entry>
533
          <entry key="java.net.URI">
534
              <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
535
          </entry>
536

    
537
      </map>
538
    </property>
539
    <property name="ignoreDefaultExcludes" value="true" />
540
    <property name="excludes">
541
      <list value-type="java.lang.String">
542
        <value>class</value>
543
        <value>declaringClass</value><!-- DefaultExclude -->
544
        <value>metaClass</value><!-- DefaultExclude -->
545
        <value>id</value>
546
        <value>cacheStrategy</value>
547
        <value>createdBy</value>
548
        <value>updatedBy</value>
549
      </list>
550
    </property>
551
  </bean>
552

    
553
  <bean name="occurrenceCatalogueJsonConfig" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
554
    init-method="init">
555
    <property name="jsonPropertyFilter">
556
        <bean class="net.sf.json.filters.OrPropertyFilter">
557
          <constructor-arg>
558
              <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
559
          </constructor-arg>
560
          <constructor-arg ref="nameCatalogueApiCardinalityPropertyFilter">
561
          </constructor-arg>
562
        </bean>
563
    </property>
564
    <property name="jsonValueProcessorsByClass">
565
      <map>
566
        <entry key="org.hibernate.proxy.HibernateProxy">
567
          <bean
568
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
569
        </entry>
570
        <entry key="java.util.UUID">
571
          <bean
572
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
573
        </entry>
574
        <entry key="org.joda.time.DateTime">
575
          <bean
576
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
577
        </entry>
578
        <entry key="java.util.Calendar">
579
          <bean
580
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
581
        </entry>
582
        <entry key="org.joda.time.Partial">
583
          <bean
584
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
585
        </entry>
586
        <entry key="java.util.Map">
587
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
588
        </entry>
589
          <entry key="java.net.URI">
590
              <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
591
          </entry>
592

    
593
      </map>
594
    </property>
595
    <property name="ignoreDefaultExcludes" value="true" />
596
    <property name="excludes">
597
      <list value-type="java.lang.String">
598
        <value>class</value>
599
        <value>declaringClass</value><!-- DefaultExclude -->
600
        <value>metaClass</value><!-- DefaultExclude -->
601
        <value>id</value>
602
        <value>cacheStrategy</value>
603
        <value>createdBy</value>
604
        <value>updatedBy</value>
605
      </list>
606
    </property>
607
  </bean>
608

    
609

    
610
</beans>
Add picture from clipboard (Maximum size: 40 MB)