Class DefaultIssueCollectorUrlManager

java.lang.Object
com.atlassian.feedback.DefaultIssueCollectorUrlManager

@Named public class DefaultIssueCollectorUrlManager extends Object
DefaultIssueCollectorUrlManager is used to retrieve and store the Issue Collector URLs. This is mainly for testing purposes, to avoid having to rely on JAC during the web driver tests.
  • Constructor Details

    • DefaultIssueCollectorUrlManager

      @Inject public DefaultIssueCollectorUrlManager(ApplicationProperties jiraApplicationProperties)
  • Method Details

    • getUrl

      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. If validation fails, then it returns default the URL.
      Parameters:
      type - {JiraType} Jira project type
      Returns:
      {String} Issue Collector URL for the specified project type
    • setUrl

      public void setUrl(DefaultIssueCollectorUrlManager.JiraType type, String dirtyUrl) throws MalformedURLException
      Sets and overrides the Issue Collector URL for a specific project type in the Application Properties. NOTE: This is only provided for testing purposes and should not be used in production.
      Parameters:
      dirtyUrl - {String} URL to an Issue Collector
      Throws:
      MalformedURLException - if dirtyURL does not adhere to the format of a URL.