Class TwitterAccountStorage

java.lang.Object
io.meeds.twitter.gamification.storage.TwitterAccountStorage

@Repository public class TwitterAccountStorage extends Object
  • Constructor Details

    • TwitterAccountStorage

      public TwitterAccountStorage()
  • Method Details

    • addTwitterAccount

      public TwitterAccount addTwitterAccount(TwitterAccount twitterAccount) throws org.exoplatform.commons.ObjectAlreadyExistsException
      Throws:
      org.exoplatform.commons.ObjectAlreadyExistsException
    • getTwitterAccountById

      public TwitterAccount getTwitterAccountById(Long id)
    • getTwitterAccounts

      public org.springframework.data.domain.Page<TwitterAccount> getTwitterAccounts(org.springframework.data.domain.Pageable pageable)
    • getTwitterAccounts

      public List<TwitterAccount> getTwitterAccounts()
    • countTwitterAccounts

      public long countTwitterAccounts()
    • getTwitterAccountByRemoteId

      public TwitterAccount getTwitterAccountByRemoteId(long remoteId)
    • updateAccountLastMentionTweetId

      public TwitterAccount updateAccountLastMentionTweetId(long accountId, long lastMentionTweetId)
    • deleteTwitterAccount

      public TwitterAccount deleteTwitterAccount(long accountId)
    • saveTwitterBearerToken

      public void saveTwitterBearerToken(String bearerToken)
    • deleteTwitterBearerToken

      public void deleteTwitterBearerToken()
    • getTwitterBearerToken

      public String getTwitterBearerToken()