001/* 002 * (C) Copyright 2013 Nuxeo SA (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-2.1.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 * Nelson Silva <nelson.silva@inevo.pt> 016 */ 017package org.nuxeo.ecm.automation.io.services.enricher; 018 019import java.util.Map; 020 021/** 022 * A base abstract class for Content Enrichers. 023 * 024 * @since 6.0 025 * @deprecated The JSON marshalling was migrated to nuxeo-core-io. An enricher system is also available. See 026 * org.nuxeo.ecm.core.io.marshallers.json.enrichers.BreadcrumbJsonEnricher for an example. To migrate an 027 * existing enricher, keep the marshalling code and use it in class implementing 028 * AbstractJsonEnricher<DocumentModel> (the use of contextual parameters is a bit different but 029 * compatible / you have to manage the enricher's parameters yourself). Don't forget to contribute to 030 * service org.nuxeo.ecm.core.io.registry.MarshallerRegistry to register your enricher. 031 */ 032@Deprecated 033public abstract class AbstractContentEnricher implements ContentEnricher { 034 035 @Override 036 public void setParameters(Map<String, String> parameters) { 037 // 038 } 039}