bringing the titleCache of TeamOrPersonBase back to the REST services
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / json / processor / bean / TeamOrPersonBaseBeanProcessor.java
1 // $Id$
2 /**
3 * Copyright (C) 2009 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 package eu.etaxonomy.cdm.remote.json.processor.bean;
11
12 import java.util.List;
13
14 import net.sf.json.JSONObject;
15 import net.sf.json.JsonConfig;
16 import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
17
18 /**
19 * @author a.kohlbecker
20 * @date 20.10.2010
21 *
22 */
23 public class TeamOrPersonBaseBeanProcessor extends AbstractBeanProcessor<TeamOrPersonBase> {
24
25 /* (non-Javadoc)
26 * @see eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor#getIgnorePropNames()
27 */
28 @Override
29 public List<String> getIgnorePropNames() {
30 // TODO Auto-generated method stub
31 return null;
32 }
33
34 /* (non-Javadoc)
35 * @see eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor#processBeanSecondStep(java.lang.Object, net.sf.json.JSONObject, net.sf.json.JsonConfig)
36 */
37 @Override
38 public JSONObject processBeanSecondStep(TeamOrPersonBase bean, JSONObject json,
39 JsonConfig jsonConfig) {
40 json.element("titleCache", bean.getTitleCache());
41 return json;
42 }
43
44 }