|
||||||||||
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
Field Summary | |
---|---|
static String |
STRIKE_THROUGH_CLOSED_KEYS
|
Constructor Summary | |
---|---|
JiraKeyUtils()
|
Method Summary | |
---|---|
static boolean |
canCurrentUserSeeIssue(Issue issue)
|
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 |
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)
|
protected static void |
setKeyMatcher(com.atlassian.jira.util.JiraKeyUtils.KeyMatcher keyMatcher)
|
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 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 boolean canCurrentUserSeeIssue(Issue issue)
public static String linkBugKeys(String body)
public static List getIssueKeysFromString(String body)
public static boolean isPartOfUrl(String body, int start)
public static String getIssueKeyRegex()
protected static void setKeyMatcher(com.atlassian.jira.util.JiraKeyUtils.KeyMatcher keyMatcher)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |