First pass implementation of an OAI-PMH Controller for identifiable objects
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / view / BaseView.java
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 package eu.etaxonomy.cdm.remote.view;
11
12 import java.util.Map;
13
14 public abstract class BaseView {
15
16 protected Object getResponseData(Map model){
17 // Retrieve data from model
18 Object data = null;
19 if (model!=null && model.values().size()>0){
20 data = model.values().toArray()[0];
21 }
22 return data;
23 }
24 }