001/*
002 * (C) Copyright 2006-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: JOOoConvertPluginImpl.java 18651 2007-05-13 20:28:53Z sfermigier $
018 */
019
020package org.nuxeo.ecm.platform.login;
021
022import java.util.HashMap;
023import java.util.Map;
024
025import org.nuxeo.common.xmap.annotation.XNode;
026import org.nuxeo.common.xmap.annotation.XNodeMap;
027import org.nuxeo.common.xmap.annotation.XObject;
028
029@XObject(value = "LoginPlugin")
030public class LoginPluginDescriptor {
031
032    @XNodeMap(value = "parameters", key = "@name", type = HashMap.class, componentType = String.class)
033    protected Map<String, String> parameters = new HashMap<String, String>();
034
035    @XNode("@class")
036    protected Class<LoginPlugin> className;
037
038    @XNode("enabled")
039    protected Boolean enabled;
040
041    @XNode("@name")
042    protected String pluginName;
043
044    protected boolean initialized = false;
045
046    public Class<LoginPlugin> getClassName() {
047        return className;
048    }
049
050    public void setClassName(Class<LoginPlugin> className) {
051        this.className = className;
052    }
053
054    public Boolean getEnabled() {
055        return enabled;
056    }
057
058    public void setEnabled(Boolean enabled) {
059        this.enabled = enabled;
060    }
061
062    public Map<String, String> getParameters() {
063        return parameters;
064    }
065
066    public void setParameters(Map<String, String> parameters) {
067        this.parameters = parameters;
068    }
069
070    public String getPluginName() {
071        return pluginName;
072    }
073
074    public void setPluginName(String pluginName) {
075        this.pluginName = pluginName;
076    }
077
078    public void setInitialized(boolean initialized) {
079        this.initialized = initialized;
080    }
081
082    public boolean getInitialized() {
083        return initialized;
084    }
085
086}