|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.JiraKeyUtils
Field Summary | |
static boolean |
IGNORE_URL_WITH_KEY
|
static String |
ISSUEKEY_REGEX
|
Constructor Summary | |
JiraKeyUtils()
|
Method Summary | |
static boolean |
canCurrentUserSeeIssue(org.ofbiz.core.entity.GenericValue 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 List |
getIssueKeysFromString(String body)
|
static String |
getProjectKeyFromIssueKey(String key)
|
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 boolean |
validIssueKey(String key)
|
static boolean |
validProjectKey(String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String ISSUEKEY_REGEX
public static boolean IGNORE_URL_WITH_KEY
Constructor Detail |
public JiraKeyUtils()
Method Detail |
public static boolean validProjectKey(String key)
public static boolean isReservedKeyword(String key)
key
-
public static String getProjectKeyFromIssueKey(String key)
public static String getFastProjectKeyFromIssueKey(String key)
getProjectKeyFromIssueKey(String)
except that it does not check key validity
public static long getFastCountFromKey(String key)
getCountFromKey(String)
except that is does not check for key validity
public static long getCountFromKey(String key)
public static boolean validIssueKey(String key)
public static boolean isKeyInString(String issueKey, String body)
issueKey
- body
- public static boolean isKeyInString(String s)
s
- string to check
public static boolean canCurrentUserSeeIssue(org.ofbiz.core.entity.GenericValue issue)
public static String linkBugKeys(String body)
public static List getIssueKeysFromString(String body)
public static boolean isPartOfUrl(String body, int start)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |