Package org.javlo.service.social
Interface ISocialNetwork
-
- All Known Implementing Classes:
AbstractSocialNetwork
,Facebook
,Google
,Linkedin
,Pushbullet
,Twitter
public interface ISocialNetwork
-
-
Field Summary
Fields Modifier and Type Field Description static String
POPUP_URI_SUFFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getApiKey()
String
getClientId()
String
getClientSecret()
Map<String,String>
getData()
String
getLogin()
String
getName()
String
getRedirectURL()
String
getSigninURL(ContentContext ctx, boolean popup)
SocialUser
getSocialUser(javax.servlet.http.HttpServletRequest request)
String
getToken()
String
getURL()
void
performRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean admin)
void
prepare(ContentContext ctx)
prepare social network for renderingvoid
set(String key, String value)
void
setApiKey(String key)
void
setClientId(String client)
void
setClientSecret(String client)
void
setLogin(String login)
void
setRedirectURL(String url)
void
setToken(String token)
void
setURL(String url)
void
update(Map map)
update value with a map.
-
-
-
Field Detail
-
POPUP_URI_SUFFIX
static final String POPUP_URI_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
-
getLogin
String getLogin()
-
setLogin
void setLogin(String login)
-
getToken
String getToken()
-
setToken
void setToken(String token)
-
getURL
String getURL()
-
setURL
void setURL(String url)
-
getClientSecret
String getClientSecret()
-
setClientSecret
void setClientSecret(String client)
-
getClientId
String getClientId()
-
setClientId
void setClientId(String client)
-
getApiKey
String getApiKey()
-
setApiKey
void setApiKey(String key)
-
update
void update(Map map)
update value with a map.
-
prepare
void prepare(ContentContext ctx) throws Exception
prepare social network for rendering- Parameters:
ctx
-- Throws:
org.apache.oltu.oauth2.common.exception.OAuthSystemException
Exception
-
getSigninURL
String getSigninURL(ContentContext ctx, boolean popup) throws Exception
- Throws:
Exception
-
getRedirectURL
String getRedirectURL()
-
setRedirectURL
void setRedirectURL(String url)
-
performRedirect
void performRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean admin)
-
getSocialUser
SocialUser getSocialUser(javax.servlet.http.HttpServletRequest request)
-
-