/* * Copyright 2010 Research Studios Austria Forschungsgesellschaft mBH * * This file is part of easyrec. * * easyrec is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * easyrec 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with easyrec. If not, see <http://www.gnu.org/licenses/>. */ package org.easyrec.plugin.sample; import org.easyrec.plugin.configuration.PluginParameter; import org.easyrec.plugin.generator.GeneratorConfiguration; /** * Configuration object for the demo plugin. <p/> This class contains all parameters that can be configured and are * needed for the plugin to work correctly. <p/> <p><b>Company: </b> SAT, Research Studios Austria</p> * <p><b>Copyright: </b> (c) 2007</p> <p><b>last modified:</b><br/> $Author$<br/> $Date$<br/> $Revision$</p> * * @author Patrick Marschik */ public class SampleGeneratorConfig extends GeneratorConfiguration { // ------------------------------ FIELDS ------------------------------ // each configuration value needs to be annotaed with @PluginParameter. // displayName - is the string that will be displayed for the value in the administration tool. // shortDescription - will be the first paragrah of the description when the help button is pressed in the admin tool. // description - is the second paragraph displayed in the admin tool. // // each config value should be initialized with a default value. when a new configuration object is created // all config values are initialized with the default values and the configuration is named "Default Configuration" in // the superclass (GeneratorConfiguration.) @PluginParameter(description = "The number of item associations calculated for each item.", displayName = "numberOfRecs", shortDescription = "Number of recommendations per item") private int numberOfRecs = 10; // DEFAULT VALUE // @PluginParameter(description = "The type of items to generate associations.", // displayName = "itemType", // shortDescription = "Type of items.") private String itemType = "ITEM"; // @PluginParameter(description = "The view type to use for generating item associations.", // displayName = "viewType", // shortDescription = "The view type to use.") private String viewType = "SYSTEM"; // --------------------- GETTER / SETTER METHODS --------------------- public String getItemType() { return itemType; } public void setItemType(final String itemType) { this.itemType = itemType; } public int getNumberOfRecs() { return numberOfRecs; } public void setNumberOfRecs(int numberOfRecs) { this.numberOfRecs = numberOfRecs; } public String getViewType() { return viewType; } public void setViewType(final String viewType) { this.viewType = viewType; } }