|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.global.AbstractLoggable com.atlassian.greenhopper.service.rank.RankDaoImpl
@Service public class RankDaoImpl
Field Summary |
---|
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable |
---|
logger |
Constructor Summary | |
---|---|
RankDaoImpl()
|
Method Summary | |
---|---|
void |
executeOutstandingTransaction()
Executes any outstanding transactions. |
boolean |
hasOutstandingTransactions()
Returns whether outstanding transactions are available |
void |
insert(java.lang.Long customFieldId,
java.lang.Long issueId,
java.lang.Long newNext,
java.lang.Long newPrevious)
Insert a new rank. |
void |
loadAll(java.lang.Long customFieldId,
com.atlassian.jira.util.Consumer<IssueRankingAO> consumer)
Loads all data |
void |
move(java.lang.Long customFieldId,
java.lang.Long issueId,
java.lang.Long oldNext,
java.lang.Long oldPrevious,
java.lang.Long newNext,
java.lang.Long newPrevious)
Move a rank to a new position. |
void |
remove(java.lang.Long customFieldId,
java.lang.Long issueId,
java.lang.Long oldNext,
java.lang.Long oldPrevious)
Remove a rank. |
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable |
---|
logDebug, logError, logException, logInfo, logTrace, logWarn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RankDaoImpl()
Method Detail |
---|
public void loadAll(java.lang.Long customFieldId, com.atlassian.jira.util.Consumer<IssueRankingAO> consumer)
RankDao
loadAll
in interface RankDao
customFieldId
- the ID of the rank custom fieldpublic void insert(java.lang.Long customFieldId, java.lang.Long issueId, java.lang.Long newNext, java.lang.Long newPrevious)
RankDao
insert
in interface RankDao
customFieldId
- the ID of the rank custom fieldissueId
- : the issueId of the issue to insertnewNext
- : the next issue from the new position, after the move. Can be null if moved to the last position.newPrevious
- : the previous issue from the new position, after the move. Can be null if moved to the first position.public void move(java.lang.Long customFieldId, java.lang.Long issueId, java.lang.Long oldNext, java.lang.Long oldPrevious, java.lang.Long newNext, java.lang.Long newPrevious)
RankDao
move
in interface RankDao
customFieldId
- the ID of the rank custom fieldissueId
- : the issueId of the issue to moveoldNext
- : the next issue from the former position, before the move. Can be null in case the last issue is moved.oldPrevious
- : the previous issue from the former position, before the move. Can be null in case the first issue is moved.newNext
- : the next issue from the new position, after the move. Can be null if moved to the last position.newPrevious
- : the previous issue from the new position, after the move. Can be null if moved to the first position.public void remove(java.lang.Long customFieldId, java.lang.Long issueId, java.lang.Long oldNext, java.lang.Long oldPrevious)
RankDao
remove
in interface RankDao
customFieldId
- the ID of the rank custom fieldissueId
- : the issueId of the issue to removeoldNext
- : the next issue from the former position, before the removal. Can be null in case the last issue is removed.oldPrevious
- : the previous issue from the former position, before the removal. Can be null in case the first issue is removed.public boolean hasOutstandingTransactions()
RankDao
hasOutstandingTransactions
in interface RankDao
public void executeOutstandingTransaction()
executeOutstandingTransaction
in interface RankDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |