@Component public class TrackingEntryManagerImpl extends Object implements TrackingEntryManager
Constructor and Description |
---|
TrackingEntryManagerImpl(TrackingEntryDao trackingEntryDao) |
Modifier and Type | Method and Description |
---|---|
void |
addResult(TrackingEntry entry,
long resultId,
int buildNumber)
Add a result to an existing tracking entry
|
void |
addUser(TrackingEntry entry,
String user,
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.
|
Collection<TrackingEntry> |
getActiveTrackingEntriesForUser(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,
String user)
Remove a responsible user from existing tracking entry
|
void |
setActiveEntry(TrackingEntry trackingEntry)
Sets tracing entry to active.
|
@Autowired public TrackingEntryManagerImpl(TrackingEntryDao trackingEntryDao)
public TrackingEntry getTrackingEntryById(int id)
TrackingEntryManager
getTrackingEntryById
in interface TrackingEntryManager
id
- of tracking entry to findpublic TrackingEntry getTrackingEntryByResultId(long resultId)
TrackingEntryManager
getTrackingEntryByResultId
in interface TrackingEntryManager
resultId
- of the resultpublic TrackingEntry getActiveTrackingEntryForPlan(long id)
TrackingEntryManager
getActiveTrackingEntryForPlan
in interface TrackingEntryManager
id
- of the plan@NotNull public Collection<TrackingEntry> getActiveTrackingEntriesForUser(@NotNull String username)
TrackingEntryManager
getActiveTrackingEntriesForUser
in interface TrackingEntryManager
username
- of the userpublic 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 String user, @Nullable 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 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 entrypublic 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
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.