com.atlassian.jira.util
Class JiraKeyUtilsAccesor.MockProductionKeyMatcher

java.lang.Object
  extended by com.atlassian.jira.util.JiraKeyUtilsAccesor.MockProductionKeyMatcher
All Implemented Interfaces:
JiraKeyUtils.KeyMatcher
Enclosing class:
JiraKeyUtilsAccesor

public static class JiraKeyUtilsAccesor.MockProductionKeyMatcher
extends Object


Constructor Summary
JiraKeyUtilsAccesor.MockProductionKeyMatcher(String projectRegexp, ApplicationProperties applicationProperties, IssueManager issueManager)
           
 
Method Summary
 String getIssueKeyRegex()
           
 String getLink(String key)
           
 String getProjectKeyRegex()
           
 boolean isIgnoreUrlWithKey()
           
 boolean isKeyDetectionBackwardsCompatible()
           
 boolean isKeyInString(String s)
           
 boolean isValidIssueKey(String issueKey)
           
 boolean isValidProjectKey(String projectKey)
          Validates the given project key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraKeyUtilsAccesor.MockProductionKeyMatcher

public JiraKeyUtilsAccesor.MockProductionKeyMatcher(String projectRegexp,
                                                    ApplicationProperties applicationProperties,
                                                    IssueManager issueManager)
Method Detail

isIgnoreUrlWithKey

public boolean isIgnoreUrlWithKey()
Specified by:
isIgnoreUrlWithKey in interface JiraKeyUtils.KeyMatcher

isKeyDetectionBackwardsCompatible

public boolean isKeyDetectionBackwardsCompatible()
Specified by:
isKeyDetectionBackwardsCompatible in interface JiraKeyUtils.KeyMatcher

getLink

public String getLink(String key)
Specified by:
getLink in interface JiraKeyUtils.KeyMatcher

isKeyInString

public boolean isKeyInString(String s)
Specified by:
isKeyInString in interface JiraKeyUtils.KeyMatcher

getProjectKeyRegex

public String getProjectKeyRegex()
Specified by:
getProjectKeyRegex in interface JiraKeyUtils.KeyMatcher

getIssueKeyRegex

public String getIssueKeyRegex()
Specified by:
getIssueKeyRegex in interface JiraKeyUtils.KeyMatcher

isValidIssueKey

public boolean isValidIssueKey(String issueKey)
Specified by:
isValidIssueKey in interface JiraKeyUtils.KeyMatcher

isValidProjectKey

public boolean isValidProjectKey(String projectKey)
Validates the given project key

Specified by:
isValidProjectKey in interface JiraKeyUtils.KeyMatcher
Parameters:
projectKey - project key
Returns:
true if valid, false otherwise


Copyright © 2002-2013 Atlassian. All Rights Reserved.