com.atlassian.greenhopper.customfield.sprint
Class SprintResolver

java.lang.Object
  extended by com.atlassian.greenhopper.customfield.sprint.SprintResolver

public class SprintResolver
extends java.lang.Object

Provides utility methods to ease sprints JQL clause implementation.

Since:
6.1.3

Constructor Summary
SprintResolver()
           
 
Method Summary
 boolean checkSprintAccessible(com.atlassian.crowd.embedded.api.User searcher, java.lang.Long sprintId)
           
 java.util.Collection<Sprint> findSprintByPredicate(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, com.google.common.base.Predicate<Sprint> predicate)
          Returns the Sprints matching the provided predicate
 java.lang.Iterable<Sprint> findSprintByPredicate(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, com.google.common.base.Predicate<Sprint> predicate, int maxNumResults)
          Same as findSprintByPredicate(com.atlassian.crowd.embedded.api.User, boolean, com.google.common.base.Predicate) with a size restriction.
 java.util.Collection<java.lang.Long> findSprintIdsByName(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, java.lang.String sprintNameCriteria)
          Returns the ids of the Sprints matching the provided name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprintResolver

public SprintResolver()
Method Detail

checkSprintAccessible

public boolean checkSprintAccessible(com.atlassian.crowd.embedded.api.User searcher,
                                     java.lang.Long sprintId)

findSprintIdsByName

public java.util.Collection<java.lang.Long> findSprintIdsByName(com.atlassian.crowd.embedded.api.User user,
                                                                boolean overrideSecurity,
                                                                java.lang.String sprintNameCriteria)
Returns the ids of the Sprints matching the provided name

Parameters:
user - the user that execute the search
overrideSecurity - if true, bypass access rights checking
sprintNameCriteria - the sprint name to look for
Returns:
the ids

findSprintByPredicate

public java.util.Collection<Sprint> findSprintByPredicate(com.atlassian.crowd.embedded.api.User user,
                                                          boolean overrideSecurity,
                                                          com.google.common.base.Predicate<Sprint> predicate)
Returns the Sprints matching the provided predicate

Parameters:
user - the user that execute the search
overrideSecurity - if true, bypass access rights checking
predicate - the predicate to filter with
Returns:
the sprints

findSprintByPredicate

public java.lang.Iterable<Sprint> findSprintByPredicate(com.atlassian.crowd.embedded.api.User user,
                                                        boolean overrideSecurity,
                                                        com.google.common.base.Predicate<Sprint> predicate,
                                                        int maxNumResults)
Same as findSprintByPredicate(com.atlassian.crowd.embedded.api.User, boolean, com.google.common.base.Predicate) with a size restriction.

Parameters:
user - the user that execute the search
overrideSecurity - if true, bypass access rights checking
predicate - the predicate to filter with
maxNumResults - the maximum count of results
Returns:
the sprints


Copyright © 2007-2014 Atlassian. All Rights Reserved.