/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.guacamole.auth.quickconnect;

import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.net.auth.Connection;
import org.apache.guacamole.net.auth.simple.SimpleConnection;
import org.apache.guacamole.protocol.GuacamoleConfiguration;

/**
 * A type of Connection specific to this authentication extension.
 */
public class QuickConnection extends SimpleConnection {

    /**
     * Number of active connections.
     */
    private int activeConnections;

    /**
     * Empty connection constructor.
     */
    public QuickConnection() {

    }

    /**
     * Constructor that takes a name, identifier, and GuacamoleConfiguration
     * and builds a QuickConnection from it.
     *
     * @param name
     *     The name of the connection.
     *
     * @param identifier
     *     The unique identifier of this connection within this
     *     authentication module.
     *
     * @param config
     *     The GuacamoleConfiguration object to store in this
     *     QuickConnection.
     */
    public QuickConnection(String name, String identifier,
            GuacamoleConfiguration config) {

        super(name, identifier, config);

        this.activeConnections = 0;

    }

    /**
     * Constructs a QuickConnection from a generic Connection
     * object, copying over the relevant data and initializing
     * the rest.
     *
     * @param object
     *     The generic Connection object to be copied.
     */
    public QuickConnection(Connection object) {

        super(object.getName(),object.getIdentifier(),object.getConfiguration());

        setParentIdentifier(object.getParentIdentifier());
        this.activeConnections = 0;

    }

}

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.guacamole.auth.quickconnect;

import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.net.auth.Connection;
import org.apache.guacamole.net.auth.simple.SimpleConnection;
import org.apache.guacamole.protocol.GuacamoleConfiguration;

/**
 * A type of Connection specific to this authentication extension.
 */
public class QuickConnection extends SimpleConnection {

    /**
     * Number of active connections.
     */
    private int activeConnections;

    /**
     * Empty connection constructor.
     */
    public QuickConnection() {

    }

    /**
     * Constructor that takes a name, identifier, and GuacamoleConfiguration
     * and builds a QuickConnection from it.
     *
     * @param name
     *     The name of the connection.
     *
     * @param identifier
     *     The unique identifier of this connection within this
     *     authentication module.
     *
     * @param config
     *     The GuacamoleConfiguration object to store in this
     *     QuickConnection.
     */
    public QuickConnection(String name, String identifier,
            GuacamoleConfiguration config) {

        super(name, identifier, config);

        this.activeConnections = 0;

    }

    /**
     * Constructs a QuickConnection from a generic Connection
     * object, copying over the relevant data and initializing
     * the rest.
     *
     * @param connection
     *     The generic Connection to be copied.
     */
    public QuickConnection(Connection connection) {

        super(connection.getName(),connection.getIdentifier(),
                connection.getConfiguration());

        setParentIdentifier(connection.getParentIdentifier());

        this.activeConnections = 0;

    }

}

Fix parameter name in QuickConnection constructor.