Class JiraWebhookTokenService
java.lang.Object
com.codebarrel.jira.plugin.automation.service.JiraWebhookTokenService
- All Implemented Interfaces:
WebhookTokenService
-
Constructor Summary
ConstructorsConstructorDescriptionJiraWebhookTokenService(com.atlassian.cache.CacheManager cacheManager, AutomationConfigStore configStore) -
Method Summary
Modifier and TypeMethodDescriptiongetContext(Environment environment, String token) Tries to lookup the token provided.
-
Constructor Details
-
JiraWebhookTokenService
@Inject public JiraWebhookTokenService(com.atlassian.cache.CacheManager cacheManager, AutomationConfigStore configStore)
-
-
Method Details
-
getContext
Description copied from interface:WebhookTokenServiceTries to lookup the token provided. Returns empty if the token is not valid.- Specified by:
getContextin interfaceWebhookTokenService- Parameters:
environment- The db environment to lookup a token intoken- The token provided- Returns:
- valid context or empty if no matching token exists.
-