Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote / src / main / resources / eu / etaxonomy / cdm / remote / json / jsonConfigurations.xml @ 00da181d

History | View | Annotate | Download (24.6 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="jsonBeanProcessors">
110
      <map>
111
      <entry key="org.hibernate.proxy.HibernateProxy">
112
        <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor" />
113
      </entry>
114
      <entry key="eu.etaxonomy.cdm.model.common.TermBase">
115
        <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TermBaseBeanProcessor">
116
           <property name="excludes">
117
             <set value-type="java.lang.String">
118
                 <value>partOf</value><!-- FIXME exclude partOf to avoid  lazy loading exceptions  -->
119
                 <value>kindOf</value><!-- FIXME exclude kindOf to avoid  lazy loading exceptions  -->
120
                 <value>infraGenericMarker</value><!-- FIXME leads to IllegalStateException if not excluded  -->
121
             </set>
122
          </property>
123
        </bean>
124
        </entry>
125
        <entry key="eu.etaxonomy.cdm.model.media.Media">
126
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.MediaBeanProcessor">
127
            <property name="replaceTitle" value="true" />
128
            <property name="replaceDescription" value="true" />
129
          </bean>
130
        </entry>
131
        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonNode">
132
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNodeBeanProcessor" />
133
        </entry>
134
        <entry key="eu.etaxonomy.cdm.model.reference.Reference">
135
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.ReferenceBaseBeanProcessor"/>
136
        </entry>
137
        <entry key="eu.etaxonomy.cdm.model.name.TaxonName">
138
          <bean
139
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNameBeanProcessor">
140
            <property name="skipTaggedName" value="true" />
141
          </bean>
142
        </entry>
143
        <entry key="eu.etaxonomy.cdm.model.name.TypeDesignationBase">
144
          <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TypeDesignationBaseBeanProcessor"/>
145
        </entry>
146
        <entry key="eu.etaxonomy.cdm.model.description.KeyStatement">
147
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.KeyStatementBeanProcessor" />
148
        </entry>
149
        <entry key="eu.etaxonomy.cdm.model.agent.TeamOrPersonBase">
150
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.TeamOrPersonBaseBeanProcessor" />
151
        </entry>
152
        <entry key="eu.etaxonomy.cdm.model.description.DescriptionElementBase">
153
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.DescriptionElementBeanProcessor" />
154
        </entry>
155
        <entry key="eu.etaxonomy.cdm.model.description.StateData">
156
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.StateDataBeanProcessor" />
157
        </entry>
158
        <entry key="org.apache.lucene.document.Document">
159
            <bean class="eu.etaxonomy.cdm.remote.json.processor.bean.LuceneDocumentBeanProcessor" />
160
        </entry>
161
      </map>
162
    </property>
163
    <property name="jsonPropertyFilter">
164
        <bean class="net.sf.json.filters.OrPropertyFilter">
165
          <constructor-arg>
166
              <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
167
          </constructor-arg>
168
          <constructor-arg ref="genericApiCardinalityPropertyFilter">
169
          </constructor-arg>
170
        </bean>
171
    </property>
172
    <property name="jsonValueProcessors">
173
      <map>
174
        <entry key="org.hibernate.proxy.HibernateProxy">
175
          <bean
176
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
177
        </entry>
178
        <entry key="java.util.UUID">
179
          <bean
180
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
181
        </entry>
182
        <entry key="org.joda.time.DateTime">
183
          <bean
184
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
185
        </entry>
186
        <entry key="java.util.Calendar">
187
          <bean
188
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
189
        </entry>
190
        <entry key="org.joda.time.Partial">
191
          <bean
192
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
193
        </entry>
194
        <entry key="java.lang.Class">
195
          <bean
196
            class="eu.etaxonomy.cdm.remote.json.processor.value.ClassJSONValueProcessor" />
197
        </entry>
198
        <entry key="java.util.Map">
199
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
200
        </entry>
201
          <entry key="java.net.URI">
202
              <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
203
          </entry>
204
      </map>
205
    </property>
206
    <property name="ignoreDefaultExcludes" value="true" />
207
    <property name="excludes">
208
      <list value-type="java.lang.String">
209
        <value>declaringClass</value><!-- DefaultExclude -->
210
        <value>metaClass</value><!-- DefaultExclude -->
211
        <value>id</value>
212
        <value>cacheStrategy</value>
213
        <value>createdBy</value>
214
        <value>updatedBy</value>
215
      </list>
216
    </property>
217
  </bean>
218

    
219
  <!--
220
         =================================================
221
            configuration for RESTful classification service
222
         =================================================
223
    -->
224
  <bean name="jsonConfigClassification" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
225
    init-method="init">
226
    <property name="jsonBeanProcessorMatcher">
227
      <bean
228
        class="eu.etaxonomy.cdm.remote.json.processor.matcher.HibernateProxyBeanProcessorMatcher" />
229
    </property>
230
    <property name="jsonBeanProcessors">
231
      <map>
232
        <entry key="org.hibernate.proxy.HibernateProxy">
233
          <bean
234
            class="eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor" />
235
        </entry>
236
        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonNode">
237
          <bean
238
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNodeDtoBeanProcessor" />
239
        </entry>
240
      </map>
241
    </property>
242
    <property name="jsonPropertyFilter">
243
      <bean class="net.sf.json.filters.OrPropertyFilter">
244
        <constructor-arg>
245
            <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
246
        </constructor-arg>
247
        <constructor-arg ref="genericApiCardinalityPropertyFilter">
248
        </constructor-arg>
249
      </bean>
250
    </property>
251
    <property name="jsonValueProcessors">
252
      <map>
253
        <entry key="org.hibernate.proxy.HibernateProxy">
254
          <bean
255
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
256
        </entry>
257
        <entry key="java.util.UUID">
258
          <bean
259
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
260
        </entry>
261
        <entry key="org.joda.time.DateTime">
262
          <bean
263
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
264
        </entry>
265
        <entry key="java.util.Calendar">
266
          <bean
267
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
268
        </entry>
269
        <entry key="org.joda.time.Partial">
270
          <bean
271
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
272
        </entry>
273
        <entry key="java.lang.Class">
274
          <bean
275
            class="eu.etaxonomy.cdm.remote.json.processor.value.ClassJSONValueProcessor" />
276
        </entry>
277
        <entry key="java.util.Map">
278
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
279
        </entry>
280
        <entry key="java.net.URI">
281
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
282
        </entry>
283
      </map>
284
    </property>
285
    <property name="ignoreDefaultExcludes" value="true" />
286
    <property name="excludes">
287
      <list value-type="java.lang.String">
288
        <value>declaringClass</value><!-- DefaultExclude -->
289
        <value>metaClass</value><!-- DefaultExclude -->
290
        <value>id</value>
291
        <value>cacheStrategy</value>
292
        <value>createdBy</value>
293
        <value>updatedBy</value>
294
      </list>
295
    </property>
296
  </bean>
297

    
298
  <!--
299
       =================================================
300
         configuration for RESTful portal service
301
       =================================================
302
  -->
303

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

    
459
   <!--
460
         =================================================
461
            default configuration name catalogue service
462
         =================================================
463
    -->
464
  <bean name="nameCatalogueJsonConfig" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
465
    init-method="init">
466
    <property name="jsonPropertyFilter">
467
        <bean class="net.sf.json.filters.OrPropertyFilter">
468
          <constructor-arg>
469
              <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
470
          </constructor-arg>
471
          <constructor-arg ref="nameCatalogueApiCardinalityPropertyFilter">
472
          </constructor-arg>
473
        </bean>
474
    </property>
475
    <property name="jsonValueProcessors">
476
      <map>
477
        <entry key="org.hibernate.proxy.HibernateProxy">
478
          <bean
479
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
480
        </entry>
481
        <entry key="java.util.UUID">
482
          <bean
483
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
484
        </entry>
485
        <entry key="org.joda.time.DateTime">
486
          <bean
487
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
488
        </entry>
489
        <entry key="java.util.Calendar">
490
          <bean
491
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
492
        </entry>
493
        <entry key="org.joda.time.Partial">
494
          <bean
495
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
496
        </entry>
497
        <entry key="java.util.Map">
498
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
499
        </entry>
500
          <entry key="java.net.URI">
501
              <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
502
          </entry>
503

    
504
      </map>
505
    </property>
506
    <property name="ignoreDefaultExcludes" value="true" />
507
    <property name="excludes">
508
      <list value-type="java.lang.String">
509
        <value>class</value>
510
        <value>declaringClass</value><!-- DefaultExclude -->
511
        <value>metaClass</value><!-- DefaultExclude -->
512
        <value>id</value>
513
        <value>cacheStrategy</value>
514
        <value>createdBy</value>
515
        <value>updatedBy</value>
516
      </list>
517
    </property>
518
  </bean>
519

    
520
  <bean name="occurrenceCatalogueJsonConfig" class="eu.etaxonomy.cdm.remote.json.JsonConfigFactoryBean"
521
    init-method="init">
522
    <property name="jsonPropertyFilter">
523
        <bean class="net.sf.json.filters.OrPropertyFilter">
524
          <constructor-arg>
525
              <bean class="eu.etaxonomy.cdm.remote.json.util.InitializedHibernatePropertyFilter" />
526
          </constructor-arg>
527
          <constructor-arg ref="nameCatalogueApiCardinalityPropertyFilter">
528
          </constructor-arg>
529
        </bean>
530
    </property>
531
    <property name="jsonValueProcessors">
532
      <map>
533
        <entry key="org.hibernate.proxy.HibernateProxy">
534
          <bean
535
            class="eu.etaxonomy.cdm.remote.json.processor.value.HibernateJSONValueProcessor" />
536
        </entry>
537
        <entry key="java.util.UUID">
538
          <bean
539
            class="eu.etaxonomy.cdm.remote.json.processor.value.UUIDJSONValueProcessor" />
540
        </entry>
541
        <entry key="org.joda.time.DateTime">
542
          <bean
543
            class="eu.etaxonomy.cdm.remote.json.processor.value.DateTimeJSONValueProcessor" />
544
        </entry>
545
        <entry key="java.util.Calendar">
546
          <bean
547
            class="eu.etaxonomy.cdm.remote.json.processor.value.CalendarJSONValueProcessor" />
548
        </entry>
549
        <entry key="org.joda.time.Partial">
550
          <bean
551
            class="eu.etaxonomy.cdm.remote.json.processor.value.PartialJSONValueProcessor" />
552
        </entry>
553
        <entry key="java.util.Map">
554
            <bean class="eu.etaxonomy.cdm.remote.json.processor.value.MapJSONValueProcessor" />
555
        </entry>
556
          <entry key="java.net.URI">
557
              <bean class="eu.etaxonomy.cdm.remote.json.processor.value.URIJSONValueProcessor"/>
558
          </entry>
559

    
560
      </map>
561
    </property>
562
    <property name="ignoreDefaultExcludes" value="true" />
563
    <property name="excludes">
564
      <list value-type="java.lang.String">
565
        <value>class</value>
566
        <value>declaringClass</value><!-- DefaultExclude -->
567
        <value>metaClass</value><!-- DefaultExclude -->
568
        <value>id</value>
569
        <value>cacheStrategy</value>
570
        <value>createdBy</value>
571
        <value>updatedBy</value>
572
      </list>
573
    </property>
574
  </bean>
575

    
576

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