|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiServicesManager
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
Method Summary | |
---|---|
void |
connectCurrentService()
Connect the current service at the end of the OAuth process |
void |
destroyCurrentService()
Disconnect the current service and remove it from Set of managed service. |
OAuthService |
getCurrentService()
|
List<String> |
getListOfServices()
|
OAuthService |
getNewService(String serviceName)
Instantiate a new service from a Service String name |
Set<OAuthService> |
getServices()
|
String |
initNewService(String type)
Instantiate a new Service which become the new current service |
boolean |
isCurrentServiceConnected()
|
void |
setCurrentService(OAuthService currentService)
Set the current service. |
Method Detail |
---|
List<String> getListOfServices()
Set<OAuthService> getServices()
OAuthService getNewService(String serviceName)
serviceName
- the name of the service
OAuthService getCurrentService()
void setCurrentService(OAuthService currentService)
currentService
- boolean isCurrentServiceConnected()
void connectCurrentService()
String initNewService(String type)
servType
- the type of the service to Instantiate
void destroyCurrentService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |