connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionTypeProvider.java
author dadubrow
Fri, 18 Dec 2009 09:17:36 -0600
changeset 701 1912b5c050e6
parent 687 593d05f9d5ca
permissions -rw-r--r--
make disconnect api based on new connection interface

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


package com.nokia.carbide.remoteconnections.interfaces;


import java.util.Collection;

/**
 * An interface for accessing connection type extensions from their identifier
 * and compatible services from connection types
 */
public interface IConnectionTypeProvider {

	/**
	 * Returns IConnectionType corresponding to the id or null
	 * @param id String
	 * @return IConnectionType
	 */
	IConnectionType getConnectionType(String id);
	
	/**
	 * Returns all the known connection types
	 * @return Collection<IConnectionType>
	 */
	Collection<IConnectionType> getConnectionTypes();
	
	/**
	 * Returns a collection of IService that are supported over a connection type
	 * @param connectionType IConnectionType
	 * @return Collection<IService>
	 */
	Collection<IService> getCompatibleServices(IConnectionType connectionType);

	/**
	 * Returns IService corresponding to the id or null
	 * @param id String
	 * @return IService
	 */
	IService findServiceByID(String id);
	
	/**
	 * Returns a collection of connection type ids that support a service
	 * @param service IService
	 * @return Collection<String>
	 */
	Collection<String> getCompatibleConnectionTypeIds(IService service);
}