com.atlassian.bamboo.jira.jiraissues
Class JiraIssuePredicates

java.lang.Object
  extended by com.atlassian.bamboo.jira.jiraissues.JiraIssuePredicates

public class JiraIssuePredicates
extends java.lang.Object

Author:
Krystian Brazulewicz

Constructor Summary
JiraIssuePredicates()
           
 
Method Summary
static com.google.common.base.Predicate<LinkedJiraIssue> allowUniqueLinkedJiraIssue()
           
static com.google.common.base.Function<JiraIssueDetails,java.lang.String> getJiraIssueDetailsKey()
           
static com.google.common.base.Function<java.lang.String,java.lang.String> getJiraProjectKey()
           
static com.google.common.base.Function<LinkedJiraIssue,java.lang.String> getLinkedJiraIssueKey()
           
static com.google.common.base.Function<LinkedJiraIssue,JiraIssueLinkType> getLinkedJiraIssueType()
           
static com.google.common.base.Predicate<LinkedJiraIssue> isIssueFixed()
           
static com.google.common.base.Predicate<LinkedJiraIssue> isIssueRelated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraIssuePredicates

public JiraIssuePredicates()
Method Detail

getLinkedJiraIssueType

public static com.google.common.base.Function<LinkedJiraIssue,JiraIssueLinkType> getLinkedJiraIssueType()
Returns:
Function that will return issue type from input LinkedJiraIssue

getJiraIssueDetailsKey

public static com.google.common.base.Function<JiraIssueDetails,java.lang.String> getJiraIssueDetailsKey()
Returns:
Function that will return issue key from input JiraIssueDetails

getLinkedJiraIssueKey

public static com.google.common.base.Function<LinkedJiraIssue,java.lang.String> getLinkedJiraIssueKey()
Returns:
Function that will return issue key from input LinkedJiraIssue

getJiraProjectKey

public static com.google.common.base.Function<java.lang.String,java.lang.String> getJiraProjectKey()
Returns:
Function that will return JIRA project key from input valid JIRA issue key

isIssueFixed

public static com.google.common.base.Predicate<LinkedJiraIssue> isIssueFixed()
Returns:
Predicate that will return true for LinkedJiraIssue which type is JiraIssueLinkType.BUILD_FIXES

isIssueRelated

public static com.google.common.base.Predicate<LinkedJiraIssue> isIssueRelated()
Returns:
Predicate that will return true for LinkedJiraIssue which type is JiraIssueLinkType.BUILD_RELATES

allowUniqueLinkedJiraIssue

public static com.google.common.base.Predicate<LinkedJiraIssue> allowUniqueLinkedJiraIssue()
Returns:
Predicate that will return true for LinkedJiraIssue if issue with the same issue key was not earlier processed by this predicate


Copyright © 2012 Atlassian. All Rights Reserved.