@Component public class TrackingEntryDaoImpl extends Object implements TrackingEntryDao
Constructor and Description |
---|
TrackingEntryDaoImpl(com.atlassian.activeobjects.external.ActiveObjects ao) |
@Autowired public TrackingEntryDaoImpl(com.atlassian.activeobjects.external.ActiveObjects ao)
public void saveTrackingEntry(@NotNull @NotNull AOTrackingEntry trackingEntry)
TrackingEntryDao
saveTrackingEntry
in interface TrackingEntryDao
trackingEntry
- to save@NotNull public @NotNull AOTrackingEntry createTrackingEntry(long planId, boolean active)
TrackingEntryDao
createTrackingEntry
in interface TrackingEntryDao
planId
- plan tracking entry belongs toactive
- whether the tracking entry currently active or notpublic AOTrackingEntry addUser(AOTrackingEntry entry, String username, @Nullable @Nullable 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 @Nullable AOTrackingEntry getTrackingEntryById(int id)
TrackingEntryDao
getTrackingEntryById
in interface TrackingEntryDao
id
- of tracking entry to find@Nullable public @Nullable AOTrackingEntry getTrackingEntryForResult(Long resultId)
getTrackingEntryForResult
in interface TrackingEntryDao
public AOTrackingEntry getActiveTrackingEntryForPlan(long id) throws MultipleActiveTrackingEntryException
TrackingEntryDao
getActiveTrackingEntryForPlan
in interface TrackingEntryDao
id
- of the planMultipleActiveTrackingEntryException
- if more than one active tracking entry is foundpublic List<AOTrackingEntry> getActiveTrackingEntries()
getActiveTrackingEntries
in interface TrackingEntryDao
public List<AOTrackingEntry> getActiveTrackingEntriesForUser(String username)
getActiveTrackingEntriesForUser
in interface TrackingEntryDao
public List<AOTrackingEntry> getActiveTrackingEntriesForUser(String username, int start, int limit)
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
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.