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 StringPOPUP_URI_SUFFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetApiKey()StringgetClientId()StringgetClientSecret()Map<String,String>getData()StringgetLogin()StringgetName()StringgetRedirectURL()StringgetSigninURL(ContentContext ctx, boolean popup)SocialUsergetSocialUser(javax.servlet.http.HttpServletRequest request)StringgetToken()StringgetURL()voidperformRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean admin)voidprepare(ContentContext ctx)prepare social network for renderingvoidset(String key, String value)voidsetApiKey(String key)voidsetClientId(String client)voidsetClientSecret(String client)voidsetLogin(String login)voidsetRedirectURL(String url)voidsetToken(String token)voidsetURL(String url)voidupdate(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.OAuthSystemExceptionException
-
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)
-
-