Interface TrackingEntryDao
- All Known Implementing Classes:
TrackingEntryDaoImpl
@Transactional
public interface TrackingEntryDao
-
Method Summary
Modifier and TypeMethodDescriptionaddResult
(AOTrackingEntry entry, long resultId, int buildNumber) addUser
(AOTrackingEntry entry, String username, @Nullable String userWhoUpdated) void
closeAllTrackingEntries
(long planid) @NotNull AOTrackingEntry
createTrackingEntry
(long planId, boolean active) Create a new tracking entry for the plan.getActiveTrackingEntriesForUser
(String username) getActiveTrackingEntriesForUser
(String username, int start, int limit) getActiveTrackingEntryForPlan
(long id) Gets the currently active tracking entry for a plan.@Nullable AOTrackingEntry
getTrackingEntryById
(int id) Find tracking entry by database ID@Nullable AOTrackingEntry
getTrackingEntryForResult
(Long resultId) getTrackingEntryWithBuildNumber
(long planId, int buildNumber) void
removeAllUsers
(AOTrackingEntry entry) void
removeResult
(AOTrackingResult result) void
void
removeTrackingForPlan
(long idOfDeletedItem) void
removeTrackingForResult
(long idOfDeletedItem) void
removeUser
(AOTrackingUser responsible) void
saveTrackingEntry
(@NotNull AOTrackingEntry trackingEntry) Save changes for an existing tracking entry Do NOT use to create brand new objects
-
Method Details
-
saveTrackingEntry
Save changes for an existing tracking entry Do NOT use to create brand new objects- Parameters:
trackingEntry
- to save
-
createTrackingEntry
Create a new tracking entry for the plan.- Parameters:
planId
- plan tracking entry belongs toactive
- whether the tracking entry currently active or not- Returns:
- created tracking entry
-
getTrackingEntryById
Find tracking entry by database ID- Parameters:
id
- of tracking entry to find- Returns:
- tracking entry with id if exists, otherwise null
-
getTrackingEntryForResult
-
addUser
AOTrackingEntry addUser(AOTrackingEntry entry, String username, @Nullable @Nullable String userWhoUpdated) -
addResult
-
removeUser
-
removeResult
-
removeTrackingEntry
-
getActiveTrackingEntryForPlan
Gets the currently active tracking entry for a plan.- Parameters:
id
- of the plan- Returns:
- the open tracking entry if one (and only one) exists.
- Throws:
MultipleActiveTrackingEntryException
- if more than one active tracking entry is found
-
removeTrackingForPlan
void removeTrackingForPlan(long idOfDeletedItem) -
removeTrackingForResult
void removeTrackingForResult(long idOfDeletedItem) -
closeAllTrackingEntries
void closeAllTrackingEntries(long planid) -
getActiveTrackingEntries
List<AOTrackingEntry> getActiveTrackingEntries() -
getActiveTrackingEntriesForUser
-
getActiveTrackingEntriesForUser
-
removeAllUsers
-
getTrackingEntryWithBuildNumber
-