Class TwitterAccountStorage
java.lang.Object
io.meeds.twitter.gamification.storage.TwitterAccountStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTwitterAccount(TwitterAccount twitterAccount) longdeleteTwitterAccount(long accountId) voidgetTwitterAccountByRemoteId(long remoteId) org.springframework.data.domain.Page<TwitterAccount> getTwitterAccounts(org.springframework.data.domain.Pageable pageable) voidsaveTwitterBearerToken(String bearerToken) updateAccountLastMentionTweetId(long accountId, long lastMentionTweetId)
-
Constructor Details
-
TwitterAccountStorage
public TwitterAccountStorage()
-
-
Method Details
-
addTwitterAccount
public TwitterAccount addTwitterAccount(TwitterAccount twitterAccount) throws org.exoplatform.commons.ObjectAlreadyExistsException - Throws:
org.exoplatform.commons.ObjectAlreadyExistsException
-
getTwitterAccountById
-
getTwitterAccounts
public org.springframework.data.domain.Page<TwitterAccount> getTwitterAccounts(org.springframework.data.domain.Pageable pageable) -
getTwitterAccounts
-
countTwitterAccounts
public long countTwitterAccounts() -
getTwitterAccountByRemoteId
-
updateAccountLastMentionTweetId
-
deleteTwitterAccount
-
saveTwitterBearerToken
-
deleteTwitterBearerToken
public void deleteTwitterBearerToken() -
getTwitterBearerToken
-