com.atlassian.greenhopper.service.rank
Class RankManager
java.lang.Object
com.atlassian.greenhopper.global.AbstractLoggable
com.atlassian.greenhopper.service.rank.RankManager
@Service
public class RankManager
- extends AbstractLoggable
Manager to work with the rank index. Ranking always takes place with rankable objects, which
can either be backed by an issue or a rankableobject.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RankManager
public RankManager()
rankBefore
@NotNull
public ServiceOutcome<RankChange> rankBefore(com.atlassian.jira.issue.fields.CustomField rankField,
Rankable rankable,
Rankable rankBefore)
rankAfter
@NotNull
public ServiceOutcome<RankChange> rankAfter(com.atlassian.jira.issue.fields.CustomField rankField,
Rankable rankable,
Rankable rankAfter)
rankFirst
@NotNull
public ServiceOutcome<RankChange> rankFirst(com.atlassian.jira.issue.fields.CustomField rankField,
Rankable rankable)
rankLast
@NotNull
public ServiceOutcome<RankChange> rankLast(com.atlassian.jira.issue.fields.CustomField rankField,
Rankable rankable)
getRankablePosition
@NotNull
public ServiceOutcome<java.lang.Long> getRankablePosition(com.atlassian.jira.issue.fields.CustomField rankField,
Rankable rankable)
compareRankablePosition
public int compareRankablePosition(com.atlassian.jira.issue.fields.CustomField rankField,
Rankable first,
Rankable second)
- Compares two rankables to each other.
Note: this method simply compares two positions, and does not take into account issue hierarchy
Copyright © 2007-2012 Atlassian. All Rights Reserved.