|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.brokenbuildtracker.data.TrackingEntryDaoImpl
public class TrackingEntryDaoImpl
Constructor Summary | |
---|---|
TrackingEntryDaoImpl(com.atlassian.activeobjects.external.ActiveObjects ao)
|
Method Summary | |
---|---|
AOTrackingEntry |
addResult(AOTrackingEntry entry,
long resultId,
int buildNumber)
|
AOTrackingEntry |
addUser(AOTrackingEntry entry,
java.lang.String username,
java.lang.String userWhoUpdated)
|
void |
closeAllTrackingEntries(long planId)
|
AOTrackingEntry |
createTrackingEntry(long planId,
boolean active)
Create a new tracking entry for the plan. |
java.util.List<AOTrackingEntry> |
getActiveTrackingEntries()
|
java.util.List<AOTrackingEntry> |
getActiveTrackingEntriesForUser(java.lang.String username)
|
AOTrackingEntry |
getActiveTrackingEntryForPlan(long id)
Gets the currently active tracking entry for a plan. |
AOTrackingEntry |
getTrackingEntryById(int id)
Find tracking entry by database ID |
AOTrackingEntry |
getTrackingEntryForResult(java.lang.Long resultId)
|
AOTrackingEntry |
getTrackingEntryWithBuildNumber(long planId,
int buildNumber)
|
void |
removeAllResults(AOTrackingEntry entry)
|
void |
removeAllUsers(AOTrackingEntry entry)
|
void |
removeResult(AOTrackingResult result)
|
void |
removeTrackingEntry(AOTrackingEntry entry)
|
void |
removeTrackingForPlan(long id)
|
void |
removeTrackingForResult(long idOfDeletedItem)
|
void |
removeUser(AOTrackingUser responsible)
|
void |
saveTrackingEntry(AOTrackingEntry trackingEntry)
Save changes for an existing tracking entry Do NOT use to create brand new objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrackingEntryDaoImpl(com.atlassian.activeobjects.external.ActiveObjects ao)
Method Detail |
---|
public void saveTrackingEntry(@NotNull AOTrackingEntry trackingEntry)
TrackingEntryDao
saveTrackingEntry
in interface TrackingEntryDao
trackingEntry
- to save@NotNull public AOTrackingEntry createTrackingEntry(long planId, boolean active)
TrackingEntryDao
createTrackingEntry
in interface TrackingEntryDao
planId
- plan tracking entry belongs toactive
- whether the tracking entry currently active or not
public AOTrackingEntry addUser(AOTrackingEntry entry, java.lang.String username, java.lang.String userWhoUpdated)
addUser
in interface TrackingEntryDao
public AOTrackingEntry addResult(AOTrackingEntry entry, long resultId, int buildNumber)
addResult
in interface TrackingEntryDao
public void removeUser(AOTrackingUser responsible)
removeUser
in interface TrackingEntryDao
public void removeResult(AOTrackingResult result)
removeResult
in interface TrackingEntryDao
public void removeAllUsers(AOTrackingEntry entry)
removeAllUsers
in interface TrackingEntryDao
public void removeAllResults(AOTrackingEntry entry)
public void removeTrackingEntry(AOTrackingEntry entry)
removeTrackingEntry
in interface TrackingEntryDao
@Nullable public AOTrackingEntry getTrackingEntryById(int id)
TrackingEntryDao
getTrackingEntryById
in interface TrackingEntryDao
id
- of tracking entry to find
@Nullable public AOTrackingEntry getTrackingEntryForResult(java.lang.Long resultId)
getTrackingEntryForResult
in interface TrackingEntryDao
public AOTrackingEntry getActiveTrackingEntryForPlan(long id) throws MultipleActiveTrackingEntryException
TrackingEntryDao
getActiveTrackingEntryForPlan
in interface TrackingEntryDao
id
- of the plan
MultipleActiveTrackingEntryException
- if more than one active tracking entry is foundpublic java.util.List<AOTrackingEntry> getActiveTrackingEntries()
getActiveTrackingEntries
in interface TrackingEntryDao
public java.util.List<AOTrackingEntry> getActiveTrackingEntriesForUser(java.lang.String username)
getActiveTrackingEntriesForUser
in interface TrackingEntryDao
public AOTrackingEntry getTrackingEntryWithBuildNumber(long planId, int buildNumber)
getTrackingEntryWithBuildNumber
in interface TrackingEntryDao
public void closeAllTrackingEntries(long planId)
closeAllTrackingEntries
in interface TrackingEntryDao
public void removeTrackingForPlan(long id)
removeTrackingForPlan
in interface TrackingEntryDao
public void removeTrackingForResult(long idOfDeletedItem)
removeTrackingForResult
in interface TrackingEntryDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |