org.jboss.seam.social
Interface MultiServicesManager

All Superinterfaces:
Serializable

public interface MultiServicesManager
extends Serializable

Implementation of this interface allow to manage multiple OAuth connection. The connection to service are backed by a Set to avoid null or duplicate connection. Uniqueness of a connection is based on service type and User name on the service

Author:
Antoine Sabot-Durand

Method Summary
 void connectCurrentService()
          Connect the current service at the end of the OAuth process
 void destroyCurrentSession()
          Disconnect the current service and remove it from Set of managed service.
 Set<OAuthSession> getActiveSessions()
           
 OAuthService getCurrentService()
           
 SocialNetworkServicesHub getCurrentServiceHub()
           
 OAuthSession getCurrentSession()
           
 List<String> getListOfServices()
           
 String initNewSession(String type)
          Instantiate a new Service which become the new current service
 boolean isCurrentServiceConnected()
           
 void setCurrentSession(OAuthSession currentSession)
           
 

Method Detail

getListOfServices

List<String> getListOfServices()
Returns:
Set of available service to connect to

getCurrentService

OAuthService getCurrentService()
Returns:
the current service

isCurrentServiceConnected

boolean isCurrentServiceConnected()
Returns:
the status of the current service.

connectCurrentService

void connectCurrentService()
Connect the current service at the end of the OAuth process


initNewSession

String initNewSession(String type)
Instantiate a new Service which become the new current service

Parameters:
servType - the type of the service to Instantiate
Returns:
the authorization url to call to start the OAuth process

destroyCurrentSession

void destroyCurrentSession()
Disconnect the current service and remove it from Set of managed service. Reset the currentService to null


getCurrentSession

OAuthSession getCurrentSession()
Returns:

setCurrentSession

void setCurrentSession(OAuthSession currentSession)
Parameters:
currentSession -

getActiveSessions

Set<OAuthSession> getActiveSessions()
Returns:

getCurrentServiceHub

SocialNetworkServicesHub getCurrentServiceHub()
Returns:


Copyright © 2011-2013 Seam Framework. All Rights Reserved.