Interface TwitterConsumerService

All Known Implementing Classes:
TwitterConsumerServiceImpl

public interface TwitterConsumerService
  • Method Details

    • retrieveTwitterAccount

      RemoteTwitterAccount retrieveTwitterAccount(String twitterUsername, String bearerToken) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Retrieve available Twitter account info.
      Parameters:
      twitterUsername - Twitter account username
      bearerToken - Twitter bearer token
      Returns:
      RemoteTwitterAccount
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the Twitter account identified by its technical name is not found
    • retrieveTwitterAccount

      RemoteTwitterAccount retrieveTwitterAccount(long twitterRemoteId, String bearerToken)
      Retrieve available Twitter account info.
      Parameters:
      twitterRemoteId - Twitter account remote Id
      bearerToken - Twitter bearer token
      Returns:
      RemoteTwitterAccount
    • checkTwitterTokenStatus

      TokenStatus checkTwitterTokenStatus(String bearerToken)
      Check Twitter token status
      Parameters:
      bearerToken - Twitter bearer token
      Returns:
      TokenStatus
    • getMentionEvents

      List<TwitterTrigger> getMentionEvents(long twitterRemoteId, long lastMentionTweetId, String bearerToken)
      Retrieve available tweets in which the account identified by its identifier was mentioned
      Parameters:
      twitterRemoteId - Twitter account remote Id
      lastMentionTweetId - last mention tweet Id
      bearerToken - Twitter bearer token
    • clearCache

      void clearCache()
      clear remote twitter account entities cache
    • clearCache

      void clearCache(TwitterAccount twitterAccount, String bearerToken)
      clear remote twitter account entity cache
      Parameters:
      twitterAccount - Twitter account
      bearerToken - Twitter bearer token