com.atlassian.greenhopper.service.lexorank
Class LexoRankService
java.lang.Object
com.atlassian.greenhopper.service.lexorank.LexoRankService
@Service
public class LexoRankService
- extends java.lang.Object
Method Summary |
ServiceOutcome<java.lang.Void> |
deleteRanksForDeletedIssue(long issueId)
Removes all the rank entries for an issue with the given issueId
No reIndex is triggered for the issue |
ServiceOutcome<java.util.Set<java.lang.Long>> |
dropField(long fieldId)
|
com.atlassian.fugue.Option<LexoRank> |
getRank(long fieldId,
long issueId)
|
ServiceOutcome<RankChange> |
getRankOrRankInitially(long fieldId,
long issueId)
Returns the rank of an issue for a custom field. |
ServiceOutcome<RankChange> |
getRankOrRankInitially(long fieldId,
long issueId,
boolean reIndex)
Returns the rank of an issue for a custom field. |
ServiceOutcome<java.lang.Void> |
healDuplicates(long fieldId)
|
ServiceOutcome<java.lang.Void> |
initField(long fieldId)
|
ServiceOutcome<RankChange> |
rankAfter(long fieldId,
long issueId,
long otherIssueId)
|
ServiceOutcome<RankChange> |
rankBefore(long fieldId,
long issueId,
long otherIssueId)
|
ServiceOutcome<RankChange> |
rankFirst(long fieldId,
long issueId)
|
ServiceOutcome<RankChange> |
rankLast(long fieldId,
long issueId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final LoggerWrapper log
LexoRankService
public LexoRankService()
initField
public ServiceOutcome<java.lang.Void> initField(long fieldId)
dropField
public ServiceOutcome<java.util.Set<java.lang.Long>> dropField(long fieldId)
getRankOrRankInitially
public ServiceOutcome<RankChange> getRankOrRankInitially(long fieldId,
long issueId)
- Returns the rank of an issue for a custom field. If no rank currently exists for the issue, an initial rank value will be assigned to the issue.
- Parameters:
fieldId
- issueId
-
- Returns:
getRankOrRankInitially
public ServiceOutcome<RankChange> getRankOrRankInitially(long fieldId,
long issueId,
boolean reIndex)
- Returns the rank of an issue for a custom field. If no rank currently exists for the issue, an initial rank value will be assigned to the issue.
- Parameters:
fieldId
- issueId
- reIndex
- whether to reIndex the issue if it was assigned an initial rank.
- Returns:
deleteRanksForDeletedIssue
public ServiceOutcome<java.lang.Void> deleteRanksForDeletedIssue(long issueId)
- Removes all the rank entries for an issue with the given issueId
No reIndex is triggered for the issue
- Parameters:
issueId
-
- Returns:
rankBefore
public ServiceOutcome<RankChange> rankBefore(long fieldId,
long issueId,
long otherIssueId)
rankAfter
public ServiceOutcome<RankChange> rankAfter(long fieldId,
long issueId,
long otherIssueId)
rankFirst
public ServiceOutcome<RankChange> rankFirst(long fieldId,
long issueId)
rankLast
public ServiceOutcome<RankChange> rankLast(long fieldId,
long issueId)
healDuplicates
public ServiceOutcome<java.lang.Void> healDuplicates(long fieldId)
getRank
public com.atlassian.fugue.Option<LexoRank> getRank(long fieldId,
long issueId)
Copyright © 2007-2014 Atlassian. All Rights Reserved.