@Named public class DefaultIssueCollectorUrlManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DefaultIssueCollectorUrlManager.JiraType
Represents the different JIRA project types and their respective Issue Collectors.
|
Constructor and Description |
---|
DefaultIssueCollectorUrlManager(ApplicationProperties jiraApplicationProperties) |
Modifier and Type | Method and Description |
---|---|
String |
getUrl(DefaultIssueCollectorUrlManager.JiraType type)
Retrieves the Issue Collector URL stored in application properties against one of the keys in JiraType,
or the default URL for the product type if none can be found.
|
void |
setUrl(DefaultIssueCollectorUrlManager.JiraType type,
String dirtyUrl)
Sets and overrides the Issue Collector URL for a specific project type in the Application Properties.
|
@Inject public DefaultIssueCollectorUrlManager(ApplicationProperties jiraApplicationProperties)
public String getUrl(DefaultIssueCollectorUrlManager.JiraType type)
type
- {JiraType} Jira project typepublic void setUrl(DefaultIssueCollectorUrlManager.JiraType type, String dirtyUrl) throws MalformedURLException
dirtyUrl
- {String} URL to an Issue CollectorMalformedURLException
- if dirtyURL does not adhere to the format of a URL.Copyright © 2002-2018 Atlassian. All Rights Reserved.