Project

General

Profile

« Previous | Next » 

Revision 19732d4e

Added by Andreas Kohlbecker over 2 years ago

ref #9797 disabling and deprecating TaxonRelationshipBeanProcessor

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/processor/bean/TaxonRelationshipBeanProcessor.java
1 1
/**
2

  
2 3
* Copyright (C) 2009 EDIT
4

  
3 5
* European Distributed Institute of Taxonomy
6

  
4 7
* http://www.e-taxonomy.eu
8

  
5 9
*
10

  
6 11
* The contents of this file are subject to the Mozilla Public License Version 1.1
12

  
7 13
* See LICENSE.TXT at the top of this package for the full license terms.
14

  
8 15
*/
16

  
9 17
package eu.etaxonomy.cdm.remote.json.processor.bean;
10 18

  
19

  
20

  
11 21
import java.util.List;
12 22

  
23

  
24

  
13 25
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
26

  
14 27
import net.sf.json.JSONObject;
28

  
15 29
import net.sf.json.JsonConfig;
16 30

  
31

  
32

  
17 33
/**
34

  
18 35
 * @author a.kohlbecker
36

  
19 37
 * @since 09.06.2009
38

  
39
 * @deprecated unused
40

  
20 41
 */
42

  
43
@Deprecated
44

  
21 45
public class TaxonRelationshipBeanProcessor extends AbstractCdmBeanProcessor<TaxonRelationship> {
22 46

  
47

  
48

  
23 49
    @Override
50

  
24 51
    public List<String> getIgnorePropNames() {
52

  
25 53
        return null;
54

  
26 55
    }
27 56

  
57

  
58

  
28 59
    @Override
60

  
29 61
    public JSONObject processBeanSecondStep(TaxonRelationship bean, JSONObject json, JsonConfig jsonConfig) {
30 62

  
63

  
64

  
31 65
        json.element("fromTaxon", bean.getFromTaxon(), jsonConfig);
66

  
32 67
        json.element("toTaxon", bean.getToTaxon(), jsonConfig);
33 68

  
69

  
70

  
34 71
        return json;
72

  
35 73
    }
74

  
36 75
}
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/json/jsonConfigurations.xml
421 421
          <bean
422 422
            class="eu.etaxonomy.cdm.remote.json.processor.bean.NameRelationshipBeanProcessor" />
423 423
        </entry>
424
        <entry key="eu.etaxonomy.cdm.model.taxon.TaxonRelationship">
425
          <bean
426
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonRelationshipBeanProcessor" />
427
        </entry>
428 424
        <entry key="eu.etaxonomy.cdm.model.term.TermBase">
429 425
          <bean
430 426
            class="eu.etaxonomy.cdm.remote.json.processor.bean.TermBaseBeanProcessor">

Also available in: Unified diff