Class TwitterAccountStorage

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

public class TwitterAccountStorage extends Object
  • Constructor Details

    • TwitterAccountStorage

      public TwitterAccountStorage(TwitterAccountDAO twitterAccountDAO)
  • Method Details

    • addTwitterAccount

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

      public TwitterAccount getTwitterAccountById(Long id)
    • getTwitterAccountIds

      public List<Long> getTwitterAccountIds(int offset, int limit)
    • countTwitterAccounts

      public int countTwitterAccounts()
    • getTwitterAccountByRemoteId

      public TwitterAccount getTwitterAccountByRemoteId(long remoteId)
    • updateAccountLastMentionTweetId

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

      public TwitterAccount deleteTwitterAccount(long accountId)