@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 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 notpublic AOTrackingEntry addUser(AOTrackingEntry entry, String username, @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 AOTrackingEntry getTrackingEntryById(int id)
TrackingEntryDao
getTrackingEntryById
in interface TrackingEntryDao
id
- of tracking entry to find@Nullable public 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 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 © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.