Class AutomationLinkServiceImpl
java.lang.Object
com.codebarrel.automation.api.service.AutomationLinkServiceImpl
- All Implemented Interfaces:
AutomationLinkService
-
Constructor Summary
ConstructorsConstructorDescriptionAutomationLinkServiceImpl(ClientFactory<JIRAClient> jiraClientFactory, TenantService tenantService) -
Method Summary
Modifier and TypeMethodDescriptiongetGlobalAdminLinkForRule(TenantContext context, com.codebarrel.automation.api.config.RuleConfigBean ruleConfig) Gets the absolute url for the supplied rule configuration, forcing it to be viewed from the global admin UIgetLinkForRule(TenantContext context, com.codebarrel.automation.api.config.RuleConfigBean ruleConfig) Gets the absolute url for the supplied rule configuration
-
Constructor Details
-
AutomationLinkServiceImpl
@Inject public AutomationLinkServiceImpl(ClientFactory<JIRAClient> jiraClientFactory, TenantService tenantService)
-
-
Method Details
-
getLinkForRule
public Optional<String> getLinkForRule(TenantContext context, com.codebarrel.automation.api.config.RuleConfigBean ruleConfig) Description copied from interface:AutomationLinkServiceGets the absolute url for the supplied rule configuration- Specified by:
getLinkForRulein interfaceAutomationLinkService- Parameters:
context- the tenant contextruleConfig- the rule configuration- Returns:
- An optional containing the absolute url for the rule configuration
-
getGlobalAdminLinkForRule
public Optional<String> getGlobalAdminLinkForRule(TenantContext context, com.codebarrel.automation.api.config.RuleConfigBean ruleConfig) Description copied from interface:AutomationLinkServiceGets the absolute url for the supplied rule configuration, forcing it to be viewed from the global admin UI- Specified by:
getGlobalAdminLinkForRulein interfaceAutomationLinkService- Parameters:
context- the tenant contextruleConfig- the rule configuration- Returns:
- An optional containing the absolute url for the rule configuration
-