Class TwitterConsumerStorage
java.lang.Object
io.meeds.gamification.twitter.storage.TwitterConsumerStorage
- Direct Known Subclasses:
TwitterConsumerCachedStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckTwitterTokenStatus(String bearerToken) voidvoidclearCache(TwitterAccount twitterAccount, String bearerToken) getMentionEvents(TwitterAccount twitterAccount, long lastMentionTweetId, String bearerToken) retrieveTwitterAccount(long twitterRemoteId, String bearerToken) retrieveTwitterAccount(String twitterUsername, String bearerToken)
-
Field Details
-
TWITTER_API_URL
- See Also:
-
BEARER
- See Also:
-
AUTHORIZATION
- See Also:
-
TWITTER_CONNECTION_ERROR
- See Also:
-
TWITTER_RETRIEVE_ACCOUNT_ERROR
- See Also:
-
USERNAME
- See Also:
-
USERS
- See Also:
-
-
Constructor Details
-
TwitterConsumerStorage
public TwitterConsumerStorage()
-
-
Method Details
-
retrieveTwitterAccount
public RemoteTwitterAccount retrieveTwitterAccount(String twitterUsername, String bearerToken) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
retrieveTwitterAccount
-
getMentionEvents
public List<TwitterTrigger> getMentionEvents(TwitterAccount twitterAccount, long lastMentionTweetId, String bearerToken) -
checkTwitterTokenStatus
-
clearCache
public void clearCache() -
clearCache
-