|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.customfield.sprint.SprintResolver
public class SprintResolver
Provides utility methods to ease sprints JQL clause implementation.
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 Sprint s 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 Sprint s matching the provided name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SprintResolver()
Method Detail |
---|
public boolean checkSprintAccessible(com.atlassian.crowd.embedded.api.User searcher, java.lang.Long sprintId)
public java.util.Collection<java.lang.Long> findSprintIdsByName(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, java.lang.String sprintNameCriteria)
Sprint
s matching the provided name
user
- the user that execute the searchoverrideSecurity
- if true, bypass access rights checkingsprintNameCriteria
- the sprint name to look for
public java.util.Collection<Sprint> findSprintByPredicate(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, com.google.common.base.Predicate<Sprint> predicate)
Sprint
s matching the provided predicate
user
- the user that execute the searchoverrideSecurity
- if true, bypass access rights checkingpredicate
- the predicate to filter with
public java.lang.Iterable<Sprint> findSprintByPredicate(com.atlassian.crowd.embedded.api.User user, boolean overrideSecurity, com.google.common.base.Predicate<Sprint> predicate, int maxNumResults)
findSprintByPredicate(com.atlassian.crowd.embedded.api.User, boolean, com.google.common.base.Predicate)
with a size restriction.
user
- the user that execute the searchoverrideSecurity
- if true, bypass access rights checkingpredicate
- the predicate to filter withmaxNumResults
- the maximum count of results
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |