Class SocialNetworkService

    • Constructor Detail

      • SocialNetworkService

        protected SocialNetworkService()
    • Method Detail

      • getSocialNetworkConnector

        public SocialNetworkConnector getSocialNetworkConnector​(SocialNetworkID networkId)
        Get social network service implementation specific to given social network
        Parameters:
        networkId - enum representing network id
        Returns:
        a connector to the specified social network or null if no such social network is supported.
      • getSocialNetworkConnector

        public SocialNetworkConnector getSocialNetworkConnector​(String networkIdAsString)
        Get social network service implementation specific to given social network
        Parameters:
        networkIdAsString - network id as String
        Returns:
        a connector to the specified social network or null if no such social network is supported.
      • removeAuthorizationToken

        public void removeAuthorizationToken​(javax.servlet.http.HttpSession session)
      • storeAuthorizationToken

        public void storeAuthorizationToken​(javax.servlet.http.HttpSession session,
                                            SocialNetworkID networkId,
                                            AccessToken authorizationToken)
      • getStoredAuthorizationToken

        public AccessToken getStoredAuthorizationToken​(javax.servlet.http.HttpSession session,
                                                       SocialNetworkID networkId)
      • getSocialNetworkIDUsedForLogin

        public SocialNetworkID getSocialNetworkIDUsedForLogin​(javax.servlet.http.HttpSession session)
      • removeExternalAccount

        public void removeExternalAccount​(String userId,
                                          SocialNetworkID networkId)
      • removeAllExternalAccount

        public void removeAllExternalAccount​(String userId)