Project

General

Profile

Download (1.33 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.cdm.remote.json.processor.bean;
12

    
13
import java.util.Arrays;
14
import java.util.List;
15

    
16
import net.sf.json.JSONObject;
17
import net.sf.json.JsonConfig;
18

    
19
import org.apache.log4j.Logger;
20

    
21
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
22

    
23
/**
24
 * @author n.hoffmann
25
 * @created Apr 9, 2010
26
 * @version 1.0
27
 */
28
public class TaxonNodeBeanProcessor extends AbstractCdmBeanProcessor<TaxonNode> {
29
	
30
	private static final Logger logger = Logger.getLogger(TaxonNodeBeanProcessor.class);
31

    
32
	/* (non-Javadoc)
33
	 * @see eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor#getIgnorePropNames()
34
	 */
35
	@Override
36
	public List getIgnorePropNames() {
37
		return Arrays.asList(new String[]{
38
				"parent", //TODO put in json-config ignore list ?
39
		});
40
	}
41

    
42
	/* (non-Javadoc)
43
	 * @see eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor#processBeanSecondStep(eu.etaxonomy.cdm.model.common.CdmBase, net.sf.json.JSONObject, net.sf.json.JsonConfig)
44
	 */
45
	@Override
46
	public JSONObject processBeanSecondStep(TaxonNode bean, JSONObject json,
47
			JsonConfig jsonConfig) {
48
		return json;
49
	}
50
}
(19-19/25)