Class AbstractSocialNetworkConnector
- java.lang.Object
-
- org.silverpeas.core.socialnetwork.connectors.AbstractSocialNetworkConnector
-
- All Implemented Interfaces:
SocialNetworkConnector
- Direct Known Subclasses:
FacebookConnector
,LinkedInConnector
public abstract class AbstractSocialNetworkConnector extends Object implements SocialNetworkConnector
-
-
Constructor Summary
Constructors Constructor Description AbstractSocialNetworkConnector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
buildAuthenticateUrl(String callBackURL)
Build URL to call for authentication over social networkAccessToken
exchangeForAccessToken(javax.servlet.http.HttpServletRequest request, String callBackURL)
protected abstract <T> org.springframework.social.connect.support.OAuth2ConnectionFactory<T>
getConnectionFactory()
protected org.silverpeas.kernel.bundle.SettingBundle
getSettings()
org.springframework.social.connect.UserProfile
getUserProfile(AccessToken authorizationToken)
abstract String
getUserProfileId(AccessToken authorizationToken)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.socialnetwork.connectors.SocialNetworkConnector
setJavascriptAttributes, updateStatus
-
-
-
-
Method Detail
-
buildAuthenticateUrl
public String buildAuthenticateUrl(String callBackURL)
Description copied from interface:SocialNetworkConnector
Build URL to call for authentication over social network- Specified by:
buildAuthenticateUrl
in interfaceSocialNetworkConnector
- Parameters:
callBackURL
- the URL to call to after authentication- Returns:
- authentication URL as String
-
exchangeForAccessToken
public AccessToken exchangeForAccessToken(javax.servlet.http.HttpServletRequest request, String callBackURL) throws SocialNetworkAuthorizationException
- Specified by:
exchangeForAccessToken
in interfaceSocialNetworkConnector
- Throws:
SocialNetworkAuthorizationException
-
getUserProfile
public org.springframework.social.connect.UserProfile getUserProfile(AccessToken authorizationToken)
- Specified by:
getUserProfile
in interfaceSocialNetworkConnector
-
getUserProfileId
public abstract String getUserProfileId(AccessToken authorizationToken)
- Specified by:
getUserProfileId
in interfaceSocialNetworkConnector
-
getSettings
protected org.silverpeas.kernel.bundle.SettingBundle getSettings()
-
getConnectionFactory
protected abstract <T> org.springframework.social.connect.support.OAuth2ConnectionFactory<T> getConnectionFactory()
-
-