/** * Copyright (C) 2011 JTalks.org Team * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package org.jtalks.jcommune.plugin.dummy; import org.jtalks.jcommune.model.entity.PluginProperty; import org.jtalks.jcommune.plugin.api.core.StatefullPlugin; import java.util.*; import static org.jtalks.jcommune.model.entity.PluginProperty.Type.STRING; /** * */ public class DummyPlugin extends StatefullPlugin { @Override public String getName() { return "Dummy plugin"; } @Override public List<PluginProperty> getConfiguration() { return Collections.emptyList(); } public boolean supportsJCommuneVersion(String version) { return true; } @Override protected Map<PluginProperty, String> applyConfiguration(List<PluginProperty> properties) { return Collections.emptyMap(); } @Override public List<PluginProperty> getDefaultConfiguration() { PluginProperty url = new PluginProperty("URL", STRING, "http://localhost:1234"); return Arrays.asList(url); } @Override public String translateLabel(String code, Locale locale) { return null; } }