Class GithubConsumerStorage

java.lang.Object
io.meeds.github.gamification.storage.GithubConsumerStorage

@Repository public class GithubConsumerStorage extends Object
  • Constructor Details

    • GithubConsumerStorage

      public GithubConsumerStorage()
  • Method Details

    • createWebhook

      public WebHook createWebhook(String organizationName, String[] triggers, String accessToken) throws IllegalAccessException
      Throws:
      IllegalAccessException
    • deleteWebhookHook

      public String deleteWebhookHook(WebHook webHook)
    • retrieveOrganizationRepos

      @Cacheable("gamification.github.organizationRepos") public List<RemoteRepository> retrieveOrganizationRepos(String organization, String accessToken, int page, int perPage, String keyword)
    • retrieveRemoteOrganization

      public RemoteOrganization retrieveRemoteOrganization(String organizationName, String accessToken) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • retrieveRemoteOrganization

      @Cacheable("gamification.github.remoteOrganization") public RemoteOrganization retrieveRemoteOrganization(long organizationId, String accessToken)
    • checkGitHubTokenStatus

      @Cacheable("gamification.github.tokenStatus") public TokenStatus checkGitHubTokenStatus(String token)
    • forceUpdateWebhook

      public String forceUpdateWebhook(WebHook webHook)