1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.remote.json.processor.bean;
|
10
|
|
11
|
import java.util.List;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
|
14
|
import net.sf.json.JSONObject;
|
15
|
import net.sf.json.JsonConfig;
|
16
|
|
17
|
/**
|
18
|
* @author a.kohlbecker
|
19
|
* @since 20.10.2010
|
20
|
*
|
21
|
*/
|
22
|
public class TeamOrPersonBaseBeanProcessor extends AbstractBeanProcessor<TeamOrPersonBase> {
|
23
|
|
24
|
@Override
|
25
|
public List<String> getIgnorePropNames() {
|
26
|
// nothing to ignore by default
|
27
|
return null;
|
28
|
}
|
29
|
|
30
|
|
31
|
@Override
|
32
|
public JSONObject processBeanSecondStep(TeamOrPersonBase bean, JSONObject json,
|
33
|
JsonConfig jsonConfig) {
|
34
|
json.element("titleCache", bean.getTitleCache());
|
35
|
json.element("nomenclaturalTitle", bean.getNomenclaturalTitle());
|
36
|
return json;
|
37
|
}
|
38
|
|
39
|
}
|