|
||||||||||
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 String |
fastFormatIssueKey(String projectKey,
Long issueNumber)
|
static long |
getCountFromKey(String key)
Deprecated. Use IssueKey.from(String) instead. Since v6.1. |
static long |
getFastCountFromKey(String key)
Deprecated. Use IssueKey.from(String) instead. Since v6.1. |
static String |
getFastProjectKeyFromIssueKey(String key)
Deprecated. Use IssueKey.from(String) instead. Since v6.1. |
static String |
getIssueKeyRegex()
|
static List<String> |
getIssueKeysFromString(String body)
|
static String |
getProjectKeyFromIssueKey(String key)
Deprecated. Use IssueKey.from(String) instead. Since v6.1. |
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 String |
slowFormatIssueKey(String projectKey,
Long issueNumber)
|
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
@Deprecated public static String getProjectKeyFromIssueKey(String key)
IssueKey.from(String)
instead. Since v6.1.
key
- issue key
@Deprecated public static String getFastProjectKeyFromIssueKey(String key)
IssueKey.from(String)
instead. Since v6.1.
getProjectKeyFromIssueKey(String)
except that it does not check key validity
key
- issue key
@Deprecated public static long getFastCountFromKey(String key)
IssueKey.from(String)
instead. Since v6.1.
getCountFromKey(String)
except that is does not check for key validity
key
- issue key
@Deprecated public static long getCountFromKey(String key)
IssueKey.from(String)
instead. Since v6.1.
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()
@Nullable public static String fastFormatIssueKey(@Nonnull String projectKey, @Nonnull Long issueNumber)
public static String slowFormatIssueKey(@Nonnull String projectKey, @Nonnull Long issueNumber)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |