Class GithubConsumerStorage
java.lang.Object
org.exoplatform.gamification.github.storage.GithubConsumerStorage
- Direct Known Subclasses:
GithubConsumerCachedStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckGitHubTokenStatus(String token) voidvoidclearCache(WebHook webHook) createWebhook(String organizationName, String[] triggers, String accessToken) deleteWebhookHook(WebHook webHook) forceUpdateWebhook(WebHook webHook) retrieveOrganizationRepos(String organization, String accessToken, int page, int perPage, String keyword) retrieveRemoteOrganization(long organizationId, String accessToken) retrieveRemoteOrganization(String organizationName, String accessToken)
-
Constructor Details
-
GithubConsumerStorage
public GithubConsumerStorage()
-
-
Method Details
-
createWebhook
public WebHook createWebhook(String organizationName, String[] triggers, String accessToken) throws IllegalAccessException - Throws:
IllegalAccessException
-
deleteWebhookHook
-
retrieveOrganizationRepos
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
-
checkGitHubTokenStatus
-
forceUpdateWebhook
-
clearCache
public void clearCache() -
clearCache
-