|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.jira.jiraissues.JiraIssueUtils
public class JiraIssueUtils
Constructor Summary | |
---|---|
JiraIssueUtils()
|
Method Summary | |
---|---|
void |
findAndSaveJiraIssueKeys(java.lang.String string,
ResultsSummary buildResultsSummary)
Finds any jira issue keys in the given input string, and saves them against the given build result summary. |
java.util.Collection<java.lang.String> |
findIssueKeysInText(java.lang.String string)
Find the and JIRA issue keys within the given string. |
java.util.Collection<java.lang.String> |
findIssueKeysInText(java.lang.String string,
boolean ignoreIfInUrl)
Find the and JIRA issue keys within the given string. |
java.util.List<LinkedJiraIssue> |
getFilteredFixedJiraIssues(java.util.Collection<LinkedJiraIssue> possibleIssues,
int numberNeeded)
|
java.util.List<LinkedJiraIssue> |
getFilteredJiraIssues(java.util.Collection<LinkedJiraIssue> possibleIssues,
int numberNeeded)
Returns a required length list of jira issues and controls logic behind which are shown * Fixed issues are given preference This is needed so that only the required number of Jira Issues will be retrieved from the jira server |
java.util.List<LinkedJiraIssue> |
getFilteredRelatedJiraIssues(java.util.Collection<LinkedJiraIssue> possibleIssues,
int numberNeeded)
|
java.util.Collection<LinkedJiraIssue> |
getFixedJiraIssues(java.util.Collection<LinkedJiraIssue> allIssues)
returns a set of all jira issues with link type 'fixed' |
java.lang.String |
getJiraUrl(java.lang.String issueKey)
|
java.util.Collection<LinkedJiraIssue> |
getRelatedJiraIssues(java.util.Collection<LinkedJiraIssue> allIssues)
returns a set of all jira issues with link type 'related' |
java.lang.String |
getRenderedString(java.lang.String inputString)
Renders any jira links within the input string |
java.lang.String |
getRenderedString(java.lang.String inputString,
ResultsSummary resultsSummary)
Renders valid jira issues in the input string, valid issues are determined by what is stored in the BuildResultSummary |
java.lang.String |
getRenderedString(java.lang.String inputString,
java.lang.String buildKey,
java.lang.Integer buildNumber)
Renders valid jira issues in the input string, valid issues are determined by what is stored in the BuildResultSummary |
protected com.opensymphony.xwork.TextProvider |
getTextProvider()
|
boolean |
isJiraServerSetup()
|
boolean |
isValidIssueKey(java.lang.String string)
Checks whether a given string is a valid issue key |
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setJiraServerManager(JiraServerManager jiraServerManager)
|
void |
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraIssueUtils()
Method Detail |
---|
public void findAndSaveJiraIssueKeys(@NotNull java.lang.String string, @NotNull ResultsSummary buildResultsSummary)
string
- buildResultsSummary
- public boolean isValidIssueKey(@NotNull java.lang.String string)
string
-
@NotNull public java.util.Collection<LinkedJiraIssue> getFixedJiraIssues(@NotNull java.util.Collection<LinkedJiraIssue> allIssues)
allIssues
-
@NotNull public java.util.Collection<LinkedJiraIssue> getRelatedJiraIssues(@NotNull java.util.Collection<LinkedJiraIssue> allIssues)
allIssues
-
public java.util.Collection<java.lang.String> findIssueKeysInText(@NotNull java.lang.String string)
string
-
public java.util.Collection<java.lang.String> findIssueKeysInText(@NotNull java.lang.String string, boolean ignoreIfInUrl)
string
- ignoreIfInUrl
-
public java.lang.String getRenderedString(@Nullable java.lang.String inputString, @NotNull java.lang.String buildKey, @NotNull java.lang.Integer buildNumber)
inputString
- buildKey
- buildNumber
-
public java.lang.String getRenderedString(@Nullable java.lang.String inputString, @NotNull ResultsSummary resultsSummary)
inputString
- resultsSummary
-
public java.lang.String getRenderedString(@Nullable java.lang.String inputString)
inputString
-
public java.lang.String getJiraUrl(java.lang.String issueKey)
protected com.opensymphony.xwork.TextProvider getTextProvider()
@NotNull public java.util.List<LinkedJiraIssue> getFilteredJiraIssues(@Nullable java.util.Collection<LinkedJiraIssue> possibleIssues, int numberNeeded)
possibleIssues
- numberNeeded
-
@NotNull public java.util.List<LinkedJiraIssue> getFilteredFixedJiraIssues(@Nullable java.util.Collection<LinkedJiraIssue> possibleIssues, int numberNeeded)
@NotNull public java.util.List<LinkedJiraIssue> getFilteredRelatedJiraIssues(@Nullable java.util.Collection<LinkedJiraIssue> possibleIssues, int numberNeeded)
public boolean isJiraServerSetup()
public void setJiraServerManager(@Nullable JiraServerManager jiraServerManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
public void setEventManager(com.atlassian.event.EventManager eventManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |