|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.JiraKeyUtils
public class JiraKeyUtils
Nested Class Summary | |
---|---|
static interface |
JiraKeyUtils.KeyMatcher
|
Field Summary | |
---|---|
static String |
STRIKE_THROUGH_CLOSED_KEYS
|
Constructor Summary | |
---|---|
JiraKeyUtils()
|
Method Summary | |
---|---|
static long |
getCountFromKey(String key)
|
static long |
getFastCountFromKey(String key)
Same as getCountFromKey(String) except that is does not check for key validity |
static String |
getFastProjectKeyFromIssueKey(String key)
Same as getProjectKeyFromIssueKey(String) except that it does not check key validity |
static String |
getIssueKeyRegex()
|
static List<String> |
getIssueKeysFromString(String body)
|
static String |
getProjectKeyFromIssueKey(String key)
Returns a project key of the project given issue belongs to. |
static boolean |
isKeyInString(String s)
Determines whether any JIRA issue key is in the given string |
static boolean |
isKeyInString(String issueKey,
String body)
Determines whether the provided key is part of the provided string |
static boolean |
isPartOfUrl(String body,
int start)
|
static boolean |
isReservedKeyword(String key)
Check if the Project Key matches a list of reserved keywords - JRA-8051. |
static String |
linkBugKeys(String body)
|
static void |
resetKeyMatcher()
Resets the configuration of the key matcher so that it will re-read the ApplicationProperty that specifies how to find an issue key in a string. |
static boolean |
validIssueKey(String key)
Validates the given issue key. |
static boolean |
validProjectKey(String key)
Validates the given project key and returns true if valid, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STRIKE_THROUGH_CLOSED_KEYS
Constructor Detail |
---|
public JiraKeyUtils()
Method Detail |
---|
public static void resetKeyMatcher()
public static boolean validProjectKey(String key)
key
- project key to validate
public static boolean isReservedKeyword(String key)
key
- project key
public static String getProjectKeyFromIssueKey(String key)
key
- issue key
public static String getFastProjectKeyFromIssueKey(String key)
getProjectKeyFromIssueKey(String)
except that it does not check key validity
key
- issue key
public static long getFastCountFromKey(String key)
getCountFromKey(String)
except that is does not check for key validity
key
- issue key
public static long getCountFromKey(String key)
key
- issue key
public static boolean validIssueKey(String key)
key
- issue key
public static boolean isKeyInString(String issueKey, String body)
issueKey
- issue keybody
- string to check
public static boolean isKeyInString(String s)
s
- string to check
public static String linkBugKeys(String body)
public static List<String> getIssueKeysFromString(String body)
public static boolean isPartOfUrl(String body, int start)
public static String getIssueKeyRegex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |