|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.brokenbuildtracker.data.TrackingEntryManagerImpl
public class TrackingEntryManagerImpl
Constructor Summary | |
---|---|
TrackingEntryManagerImpl(TrackingEntryDao trackingEntryDao)
|
Method Summary | |
---|---|
void |
addResult(TrackingEntry entry,
long resultId,
int buildNumber)
Add a result to an existing tracking entry |
void |
addUser(TrackingEntry entry,
java.lang.String user,
java.lang.String userWhoUpdated)
Add a responsible user to an existing tracking entry |
void |
closeTrackingEntry(TrackingEntry entry)
Close a tracking entry. |
TrackingEntry |
createTrackingEntry(long planId,
boolean active)
Create a brand new tracking entry for this plan. |
java.util.Collection<TrackingEntry> |
getActiveTrackingEntriesForUser(java.lang.String username)
Find any active tracking entries for a given user. |
TrackingEntry |
getActiveTrackingEntryForPlan(long id)
Returns the currently open tracking entry for plan. |
TrackingEntry |
getTrackingEntryById(int id)
Find tracking entry by database id |
TrackingEntry |
getTrackingEntryByResultId(long resultId)
Find the tracking entry for a given chain result. |
TrackingEntry |
getTrackingEntryWithBuildNumber(long planId,
int buildNumber)
Find the tracking entry with given build number. |
void |
removeAllUsers(TrackingEntry entry)
Removes all existing responsible users from the existing tracking entry. |
void |
removeTrackingEntry(TrackingEntry trackingEntry)
Remove entire tracking entry. |
void |
removeTrackingForPlan(long idOfDeletedItem)
Remove any tracking information for a given plan |
void |
removeTrackingForResult(long idOfDeletedItem)
Remove any tracking information for a given result |
void |
removeUser(TrackingEntry entry,
java.lang.String user)
Remove a responsible user from existing tracking entry |
void |
setActiveEntry(TrackingEntry trackingEntry)
Sets tracing entry to active. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrackingEntryManagerImpl(TrackingEntryDao trackingEntryDao)
Method Detail |
---|
public TrackingEntry getTrackingEntryById(int id)
TrackingEntryManager
getTrackingEntryById
in interface TrackingEntryManager
id
- of tracking entry to find
public TrackingEntry getTrackingEntryByResultId(long resultId)
TrackingEntryManager
getTrackingEntryByResultId
in interface TrackingEntryManager
resultId
- of the result
public TrackingEntry getActiveTrackingEntryForPlan(long id)
TrackingEntryManager
getActiveTrackingEntryForPlan
in interface TrackingEntryManager
id
- of the plan
@NotNull public java.util.Collection<TrackingEntry> getActiveTrackingEntriesForUser(@NotNull java.lang.String username)
TrackingEntryManager
getActiveTrackingEntriesForUser
in interface TrackingEntryManager
username
- of the user
public void addResult(@NotNull TrackingEntry entry, long resultId, int buildNumber)
TrackingEntryManager
addResult
in interface TrackingEntryManager
entry
- to add result toresultId
- id of the result to addpublic void addUser(@NotNull TrackingEntry entry, @NotNull java.lang.String user, @Nullable java.lang.String userWhoUpdated)
TrackingEntryManager
addUser
in interface TrackingEntryManager
entry
- to add user toouser
- to adduserWhoUpdated
- user who updated the responsibility entry. Null if responsibility has been automatically assignedpublic void removeUser(@NotNull TrackingEntry entry, @NotNull java.lang.String user)
TrackingEntryManager
removeUser
in interface TrackingEntryManager
entry
- to remove user fromuser
- to removepublic void removeAllUsers(@NotNull TrackingEntry entry)
TrackingEntryManager
removeAllUsers
in interface TrackingEntryManager
entry
- to remove users frompublic void closeTrackingEntry(@NotNull TrackingEntry entry)
TrackingEntryManager
closeTrackingEntry
in interface TrackingEntryManager
entry
- to close@NotNull public TrackingEntry createTrackingEntry(long planId, boolean active)
TrackingEntryManager
createTrackingEntry
in interface TrackingEntryManager
planId
- of planactive
- should the new entry be created as active entry
public void removeTrackingForPlan(long idOfDeletedItem)
TrackingEntryManager
removeTrackingForPlan
in interface TrackingEntryManager
idOfDeletedItem
- db id of the planpublic void removeTrackingForResult(long idOfDeletedItem)
TrackingEntryManager
removeTrackingForResult
in interface TrackingEntryManager
idOfDeletedItem
- db if of the resultpublic void removeTrackingEntry(TrackingEntry trackingEntry)
TrackingEntryManager
removeTrackingEntry
in interface TrackingEntryManager
public void setActiveEntry(TrackingEntry trackingEntry)
TrackingEntryManager
setActiveEntry
in interface TrackingEntryManager
public TrackingEntry getTrackingEntryWithBuildNumber(long planId, int buildNumber)
TrackingEntryManager
getTrackingEntryWithBuildNumber
in interface TrackingEntryManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |