Class GithubTriggerServiceImpl
java.lang.Object
org.exoplatform.gamification.github.services.impl.GithubTriggerServiceImpl
- All Implemented Interfaces:
GithubTriggerService,org.picocontainer.Startable
public class GithubTriggerServiceImpl
extends Object
implements GithubTriggerService, org.picocontainer.Startable
-
Constructor Summary
ConstructorsConstructorDescriptionGithubTriggerServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, io.meeds.gamification.service.ConnectorService connectorService, org.exoplatform.social.core.manager.IdentityManager identityManager, io.meeds.gamification.service.EventService eventService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(GithubTriggerPlugin githubTriggerPlugin) Add a newGithubTriggerPluginfor a given github trigger nameString[]Gets list of configured github triggersvoidhandleTrigger(String trigger, String signature, String payload) Handle github triggervoidhandleTriggerAsync(String trigger, String signature, String payload) Handle github trigger asynchronouslyvoidhandleTriggerAsyncInternal(String trigger, String signature, String payload) voidremovePlugin(String name) Removes aGithubTriggerPluginidentified by its trigger namevoidstart()voidstop()
-
Constructor Details
-
GithubTriggerServiceImpl
public GithubTriggerServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, io.meeds.gamification.service.ConnectorService connectorService, org.exoplatform.social.core.manager.IdentityManager identityManager, io.meeds.gamification.service.EventService eventService)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
addPlugin
Description copied from interface:GithubTriggerServiceAdd a newGithubTriggerPluginfor a given github trigger name- Specified by:
addPluginin interfaceGithubTriggerService- Parameters:
githubTriggerPlugin-GithubTriggerPlugin
-
removePlugin
Description copied from interface:GithubTriggerServiceRemoves aGithubTriggerPluginidentified by its trigger name- Specified by:
removePluginin interfaceGithubTriggerService- Parameters:
name- trigger name
-
handleTriggerAsync
Description copied from interface:GithubTriggerServiceHandle github trigger asynchronously- Specified by:
handleTriggerAsyncin interfaceGithubTriggerService- Parameters:
trigger- gitHub sent trigger.signature- The signature received from the external system.payload- payload The raw payload of the webhook request.
-
handleTriggerAsyncInternal
-
handleTrigger
Description copied from interface:GithubTriggerServiceHandle github trigger- Specified by:
handleTriggerin interfaceGithubTriggerService- Parameters:
trigger- gitHub sent trigger.signature- The signature received from the external system.payload- payload The raw payload of the webhook request.
-
getTriggers
Description copied from interface:GithubTriggerServiceGets list of configured github triggers- Specified by:
getTriggersin interfaceGithubTriggerService- Returns:
- list of configured github triggers
-