public class FacebookUserDAO extends SQLDAO
Constructor and Description |
---|
FacebookUserDAO() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateNonce(UserIdentity userId)
This generates a new nonce from the given UserId, replacing the old one if one was present
|
java.lang.String |
getFacebookUserId(UserIdentity userId) |
OAuth2Token |
getToken(UserIdentity userId) |
UserIdentity |
getUser(java.lang.String nonce)
Note: this will not populate the UserIdentity, only userId will be set
|
void |
removeNonce(java.lang.String nonce) |
void |
removeToken(UserIdentity userId)
remove token from the given userIdentity if one exists
|
boolean |
setToken(java.lang.String facebookUserId,
OAuth2Token token,
UserIdentity userId) |
getTransactionTemplate, setDataSource, setTnxManager
public FacebookUserDAO()
public boolean setToken(java.lang.String facebookUserId, OAuth2Token token, UserIdentity userId)
facebookUserId
- token
- userId
- public java.lang.String getFacebookUserId(UserIdentity userId)
userId
- non-null, valid useridpublic void removeNonce(java.lang.String nonce)
nonce
- public OAuth2Token getToken(UserIdentity userId)
userId
- public java.lang.String generateNonce(UserIdentity userId)
userId
- public void removeToken(UserIdentity userId)
userId
- public UserIdentity getUser(java.lang.String nonce)
nonce
- Copyright © 2015 Tampere University of Technology, Pori Department.