|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RankService
GreenHopper global ranking service. Allows ranking issues (and other 'rankables') relative to each other. Current permission checks only apply to rankable (issue or otherwise) being ranked, not to the old/new predecessor or successor.
| Field Summary | |
|---|---|
static int |
CAN_RANK_PERMISSION
Permission used to check whether the user is allowed to rank an issue. |
static java.lang.String |
CUSTOM_FIELD_ID_ERROR_CONTEXT
|
| Method Summary | |
|---|---|
ServiceOutcome<java.lang.Void> |
canRank(com.atlassian.crowd.embedded.api.User user,
Rankable rankable)
Returns true if the user has the ability to perform a rank operation for a given issue |
ServiceOutcome<java.util.Comparator<Rankable>> |
createFlatComparator(com.atlassian.crowd.embedded.api.User user,
long customFieldId)
Create a 'flat' comparator for Rankables. |
ServiceOutcome<java.util.Comparator<Rankable>> |
createParentSubtaskComparator(com.atlassian.crowd.embedded.api.User user,
long customFieldId)
Create an issue hierarchy comparator, which orders subtasks relative to their parents. |
ServiceOutcome<java.lang.Long> |
getRankablePosition(long customFieldId,
Rankable rankable)
Get the position for the given rankable. |
ServiceOutcome<java.util.List<RankChange>> |
rankAfter(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
java.util.List<Rankable> rankables,
Rankable rankAfter)
Rank several rankables after another one. |
ServiceOutcome<RankChange> |
rankAfter(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable,
Rankable rankAfter)
Rank an rankable after another one. |
ServiceOutcome<java.util.List<RankChange>> |
rankBefore(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
java.util.List<Rankable> rankables,
Rankable rankBefore)
Rank several rankables before another one. |
ServiceOutcome<RankChange> |
rankBefore(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable,
Rankable rankBefore)
Rank a rankable object before another one. |
ServiceOutcome<RankChange> |
rankFirst(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable)
Rank a rankable first, thus add it as first global rankable. |
ServiceOutcome<RankChange> |
rankLast(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable)
Rank a rankable last, thus add it as last global rankable |
| Field Detail |
|---|
static final java.lang.String CUSTOM_FIELD_ID_ERROR_CONTEXT
static final int CAN_RANK_PERMISSION
| Method Detail |
|---|
@NotNull
ServiceOutcome<RankChange> rankBefore(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable,
Rankable rankBefore)
user - : The user performing the rank operationrankable - : The rankable to rankrankBefore - : The rankable to be ranked before. If this doesn't exist in the index, it will be added at the last position.
@NotNull
ServiceOutcome<java.util.List<RankChange>> rankBefore(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
java.util.List<Rankable> rankables,
Rankable rankBefore)
user - : The user performing the rank operationrankables - : The rankables to rank (in order)rankBefore: - The rankable to be ranked before. If this doesn't exist in the index, it will be added at the last position.
@NotNull
ServiceOutcome<RankChange> rankAfter(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable,
Rankable rankAfter)
user - : The user performing the rank operationrankable - : The rankable to rankrankAfter - : The rankable to be ranked after. If this doesn't exist in the index, it will be added at the last position.
@NotNull
ServiceOutcome<java.util.List<RankChange>> rankAfter(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
java.util.List<Rankable> rankables,
Rankable rankAfter)
user - : The user performing the rank operationrankables - : The rankables to rank (in order)rankAfter - : The rankable to be ranked after. If this doesn't exist in the index, it will be added at the last position.
@NotNull
ServiceOutcome<RankChange> rankFirst(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable)
user - : The user performing the rank operationrankable - : The rankable to rank
@NotNull
ServiceOutcome<RankChange> rankLast(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
Rankable rankable)
user - : The user performing the rank operationrankable - : The rankable to rank
@NotNull
ServiceOutcome<java.lang.Long> getRankablePosition(long customFieldId,
Rankable rankable)
rankable - : The rankable to rank
@NotNull
ServiceOutcome<java.lang.Void> canRank(com.atlassian.crowd.embedded.api.User user,
Rankable rankable)
user - : the user in playrankable - : the rankable in play
ServiceOutcome<java.util.Comparator<Rankable>> createFlatComparator(com.atlassian.crowd.embedded.api.User user,
long customFieldId)
ServiceOutcome<java.util.Comparator<Rankable>> createParentSubtaskComparator(com.atlassian.crowd.embedded.api.User user,
long customFieldId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||