|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RankIndexService
Allows ranking issues relative to each other. Note: If you are interested in rank operations, you probably want to use RankService instead.
Method Summary | |
---|---|
int |
compare(long customFieldId,
long firstId,
long secondId)
Compares two issues according to their rank. |
long |
getIssuePosition(long customFieldId,
long issueId)
Get the position for the given issueId. |
RankChange |
rankAfter(long customFieldId,
long issueId,
long rankAfterId)
Rank an issue after another one. |
RankChange |
rankBefore(long customFieldId,
long issueId,
long rankBeforeId)
Rank an issue before another one. |
RankChange |
rankFirst(long customFieldId,
long issueId)
Rank an issue first, thus add it as first global issue. |
RankChange |
rankLast(long customFieldId,
long issueId)
Rank an issue last, thus add it as last global issue |
java.util.List<RankChange> |
rankLastForAllFields(long issueId)
|
RankChange |
removeIssue(long customFieldId,
long issueId)
Remove the issue with the given ID from the rank index. |
java.util.List<RankChange> |
removeIssueForAllFields(long issueId)
|
Method Detail |
---|
int compare(long customFieldId, long firstId, long secondId)
RankChange rankBefore(long customFieldId, long issueId, long rankBeforeId)
issueId
- : The ID of the issue to be rankedrankBeforeId
- : The ID of the issue to be ranked before. If this doesn't exist in the index, it will be added at the last position.
RankChange rankAfter(long customFieldId, long issueId, long rankAfterId)
issueId
- : The ID of the issue to be rankedrankAfterId
- : The ID of the issue to be ranked after. If this doesn't exist in the index, it will be added at the last position.
RankChange rankFirst(long customFieldId, long issueId)
RankChange rankLast(long customFieldId, long issueId)
java.util.List<RankChange> rankLastForAllFields(long issueId)
RankChange removeIssue(long customFieldId, long issueId)
java.util.List<RankChange> removeIssueForAllFields(long issueId)
long getIssuePosition(long customFieldId, long issueId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |