001/*
002 * (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Nuxeo - initial API and implementation
018 *
019 * $Id: JOOoConvertPluginImpl.java 18651 2007-05-13 20:28:53Z sfermigier $
020 */
021
022package org.nuxeo.ecm.platform.login;
023
024import java.util.HashMap;
025import java.util.Map;
026
027import org.nuxeo.common.xmap.annotation.XNode;
028import org.nuxeo.common.xmap.annotation.XNodeMap;
029import org.nuxeo.common.xmap.annotation.XObject;
030
031@XObject(value = "LoginPlugin")
032public class LoginPluginDescriptor {
033
034    @XNodeMap(value = "parameters", key = "@name", type = HashMap.class, componentType = String.class)
035    protected Map<String, String> parameters = new HashMap<String, String>();
036
037    @XNode("@class")
038    protected Class<LoginPlugin> className;
039
040    @XNode("enabled")
041    protected Boolean enabled;
042
043    @XNode("@name")
044    protected String pluginName;
045
046    protected boolean initialized = false;
047
048    public Class<LoginPlugin> getClassName() {
049        return className;
050    }
051
052    public void setClassName(Class<LoginPlugin> className) {
053        this.className = className;
054    }
055
056    public Boolean getEnabled() {
057        return enabled;
058    }
059
060    public void setEnabled(Boolean enabled) {
061        this.enabled = enabled;
062    }
063
064    public Map<String, String> getParameters() {
065        return parameters;
066    }
067
068    public void setParameters(Map<String, String> parameters) {
069        this.parameters = parameters;
070    }
071
072    public String getPluginName() {
073        return pluginName;
074    }
075
076    public void setPluginName(String pluginName) {
077        this.pluginName = pluginName;
078    }
079
080    public void setInitialized(boolean initialized) {
081        this.initialized = initialized;
082    }
083
084    public boolean getInitialized() {
085        return initialized;
086    }
087
088}