Class WebhookService
java.lang.Object
io.meeds.crowdin.gamification.services.WebhookService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWebhook(long projectId, String projectName, String accessToken, String currentUser) deleteWebhook(long projectId) deleteWebhook(long projectId, String currentUser) voidgetProjectDirectories(long remoteProjectId, String currentUser, int offset, int limit) getProjects(String accessToken) getProjectsFromWebhookId(long webHookId) getWebhookId(long webhookId) getWebhookId(long webhookId, String username) getWebhooks(int offset, int limit) getWebhooks(int offset, int limit, boolean forceUpdate) getWebhooks(String currentUser, int offset, int limit, boolean forceUpdate) voidupdateWebHookAccessToken(long webHookId, String accessToken, String currentUser)
-
Field Details
-
NOT_FOUND
- See Also:
-
-
Constructor Details
-
WebhookService
public WebhookService()
-
-
Method Details
-
getProjectsFromWebhookId
public List<RemoteProject> getProjectsFromWebhookId(long webHookId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getProjects
- Throws:
IllegalAccessException
-
createWebhook
public WebHook createWebhook(long projectId, String projectName, String accessToken, String currentUser) throws org.exoplatform.commons.ObjectAlreadyExistsException, IllegalAccessException - Throws:
org.exoplatform.commons.ObjectAlreadyExistsExceptionIllegalAccessException
-
updateWebHookAccessToken
public void updateWebHookAccessToken(long webHookId, String accessToken, String currentUser) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getWebhooks
public List<WebHook> getWebhooks(String currentUser, int offset, int limit, boolean forceUpdate) throws IllegalAccessException - Throws:
IllegalAccessException
-
deleteWebhook
public WebHook deleteWebhook(long projectId, String currentUser) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
deleteWebhook
-
getWebhooks
-
getProjectDirectories
public List<RemoteDirectory> getProjectDirectories(long remoteProjectId, String currentUser, int offset, int limit) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
forceUpdateWebhooks
public void forceUpdateWebhooks() -
getWebhooks
-
getWebhookId
public WebHook getWebhookId(long webhookId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getWebhookId
-