001/* 002 * (C) Copyright 2007 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Nuxeo - initial API and implementation 016 * 017 * $Id: AbstractResourceAdapter.java 22121 2007-07-06 16:33:15Z gracinet $ 018 */ 019 020package org.nuxeo.ecm.platform.relations.api.impl; 021 022import java.io.Serializable; 023import java.util.Map; 024 025import org.nuxeo.ecm.platform.relations.api.Resource; 026import org.nuxeo.ecm.platform.relations.api.ResourceAdapter; 027 028/** 029 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a> 030 */ 031public abstract class AbstractResourceAdapter implements ResourceAdapter { 032 033 protected String namespace; 034 035 @Override 036 public String getNamespace() { 037 return namespace; 038 } 039 040 @Override 041 public void setNamespace(String namespace) { 042 this.namespace = namespace; 043 } 044 045 @Override 046 public Class<?> getKlass() { 047 return null; 048 } 049 050 @Override 051 public Resource getResource(Serializable object, Map<String, Object> context) { 052 return null; 053 } 054 055 @Override 056 public Serializable getResourceRepresentation(Resource resource, Map<String, Object> context) { 057 return null; 058 } 059 060}