public interface TrackingEntryManager
| 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 idOfDeletedPlan)
Remove any tracking information for a given plan
|
void |
removeTrackingForResult(long idOfDeletedResult)
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.
|
@Nullable TrackingEntry getTrackingEntryById(int id)
id - of tracking entry to find@Nullable TrackingEntry getTrackingEntryByResultId(long resultId)
resultId - of the result@Nullable TrackingEntry getActiveTrackingEntryForPlan(long id)
id - of the planvoid addResult(@NotNull
TrackingEntry entry,
long resultId,
int buildNumber)
entry - to add result toresultId - id of the result to addbuildNumber - void addUser(@NotNull
TrackingEntry entry,
@NotNull
String user,
@Nullable
String userWhoUpdated)
entry - to add user toouser - to adduserWhoUpdated - user who updated the responsibility entry. Null if responsibility has been automatically assignedvoid removeUser(@NotNull
TrackingEntry entry,
@NotNull
String user)
entry - to remove user fromuser - to removevoid removeAllUsers(@NotNull
TrackingEntry entry)
entry - to remove users fromvoid closeTrackingEntry(@NotNull
TrackingEntry entry)
entry - to close@NotNull TrackingEntry createTrackingEntry(long planId, boolean active)
planId - of planactive - should the new entry be created as active entry@NotNull Collection<TrackingEntry> getActiveTrackingEntriesForUser(@NotNull String username)
username - of the uservoid removeTrackingForPlan(long idOfDeletedPlan)
idOfDeletedPlan - db id of the planvoid removeTrackingForResult(long idOfDeletedResult)
idOfDeletedResult - db if of the resultvoid removeTrackingEntry(TrackingEntry trackingEntry)
trackingEntry - void setActiveEntry(TrackingEntry trackingEntry)
trackingEntry - @Nullable TrackingEntry getTrackingEntryWithBuildNumber(long planId, int buildNumber)
planId - buildNumber - Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.