|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.rank.RankServiceImpl
@Service(value="greenhopper-rank-service-internal") public class RankServiceImpl
RankService implementation.
Field Summary | |
---|---|
protected LoggerWrapper |
log
|
Fields inherited from interface com.atlassian.greenhopper.service.rank.RankService |
---|
CAN_RANK_PERMISSION, CUSTOM_FIELD_ID_ERROR_CONTEXT |
Constructor Summary | |
---|---|
RankServiceImpl()
|
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<LexoRank> |
getRankablePosition(long customFieldId,
Rankable rankable)
Get the position for the given rankable. |
ServiceOutcome<RankChangesOutcome> |
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<RankChangesOutcome> |
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<RankChangesOutcome> |
rankFirst(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
java.util.List<Rankable> rankables)
Rank a rankable first, thus add it as first global rankable. |
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<RankChangesOutcome> |
rankLast(com.atlassian.crowd.embedded.api.User user,
long customFieldId,
java.util.List<Rankable> rankables)
Rank a rankable last, thus add it as last 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final LoggerWrapper log
Constructor Detail |
---|
public RankServiceImpl()
Method Detail |
---|
@NotNull public ServiceOutcome<RankChange> rankBefore(com.atlassian.crowd.embedded.api.User user, long customFieldId, Rankable rankable, Rankable rankBefore)
RankService
rankBefore
in interface RankService
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 public ServiceOutcome<RankChangesOutcome> rankBefore(com.atlassian.crowd.embedded.api.User user, long customFieldId, java.util.List<Rankable> rankables, Rankable rankBefore)
RankService
rankBefore
in interface RankService
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 public ServiceOutcome<RankChange> rankAfter(com.atlassian.crowd.embedded.api.User user, long customFieldId, Rankable rankable, Rankable rankAfter)
RankService
rankAfter
in interface RankService
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 public ServiceOutcome<RankChangesOutcome> rankAfter(com.atlassian.crowd.embedded.api.User user, long customFieldId, java.util.List<Rankable> rankables, Rankable rankAfter)
RankService
rankAfter
in interface RankService
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 public ServiceOutcome<RankChange> rankFirst(com.atlassian.crowd.embedded.api.User user, long customFieldId, Rankable rankable)
RankService
rankFirst
in interface RankService
user
- : The user performing the rank operationrankable
- : The rankable to rankpublic ServiceOutcome<RankChangesOutcome> rankFirst(com.atlassian.crowd.embedded.api.User user, long customFieldId, java.util.List<Rankable> rankables)
RankService
rankFirst
in interface RankService
user
- : The user performing the rank operationrankables
- : The rankable to rank@NotNull public ServiceOutcome<RankChange> rankLast(com.atlassian.crowd.embedded.api.User user, long customFieldId, Rankable rankable)
RankService
rankLast
in interface RankService
user
- : The user performing the rank operationrankable
- : The rankable to rankpublic ServiceOutcome<RankChangesOutcome> rankLast(com.atlassian.crowd.embedded.api.User user, long customFieldId, java.util.List<Rankable> rankables)
RankService
rankLast
in interface RankService
user
- : The user performing the rank operationrankables
- : The rankable to rank@NotNull public ServiceOutcome<LexoRank> getRankablePosition(long customFieldId, Rankable rankable)
RankService
getRankablePosition
in interface RankService
rankable
- : The rankable to rankpublic ServiceOutcome<java.util.Comparator<Rankable>> createFlatComparator(com.atlassian.crowd.embedded.api.User user, long customFieldId)
RankService
createFlatComparator
in interface RankService
public ServiceOutcome<java.util.Comparator<Rankable>> createParentSubtaskComparator(com.atlassian.crowd.embedded.api.User user, long customFieldId)
RankService
createParentSubtaskComparator
in interface RankService
public ServiceOutcome<java.lang.Void> canRank(com.atlassian.crowd.embedded.api.User user, Rankable rankable)
RankService
canRank
in interface RankService
user
- : the user in playrankable
- : the rankable in play
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |