Interface TrackingEntryDao
-
- All Known Implementing Classes:
TrackingEntryDaoImpl
@Transactional public interface TrackingEntryDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AOTrackingEntry
addResult(AOTrackingEntry entry, long resultId, int buildNumber)
AOTrackingEntry
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.List<AOTrackingEntry>
getActiveTrackingEntries()
List<AOTrackingEntry>
getActiveTrackingEntriesForUser(String username)
List<AOTrackingEntry>
getActiveTrackingEntriesForUser(String username, int start, int limit)
AOTrackingEntry
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)
AOTrackingEntry
getTrackingEntryWithBuildNumber(long planId, int buildNumber)
void
removeAllUsers(AOTrackingEntry entry)
void
removeResult(AOTrackingResult result)
void
removeTrackingEntry(AOTrackingEntry entry)
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 Detail
-
saveTrackingEntry
void saveTrackingEntry(@NotNull @NotNull AOTrackingEntry trackingEntry)
Save changes for an existing tracking entry Do NOT use to create brand new objects- Parameters:
trackingEntry
- to save
-
createTrackingEntry
@NotNull @NotNull AOTrackingEntry createTrackingEntry(long planId, boolean active)
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
@Nullable @Nullable AOTrackingEntry getTrackingEntryById(int id)
Find tracking entry by database ID- Parameters:
id
- of tracking entry to find- Returns:
- tracking entry with id if exists, otherwise null
-
getTrackingEntryForResult
@Nullable @Nullable AOTrackingEntry getTrackingEntryForResult(Long resultId)
-
addUser
AOTrackingEntry addUser(AOTrackingEntry entry, String username, @Nullable @Nullable String userWhoUpdated)
-
addResult
AOTrackingEntry addResult(AOTrackingEntry entry, long resultId, int buildNumber)
-
removeUser
void removeUser(AOTrackingUser responsible)
-
removeResult
void removeResult(AOTrackingResult result)
-
removeTrackingEntry
void removeTrackingEntry(AOTrackingEntry entry)
-
getActiveTrackingEntryForPlan
AOTrackingEntry getActiveTrackingEntryForPlan(long id) throws MultipleActiveTrackingEntryException
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
List<AOTrackingEntry> getActiveTrackingEntriesForUser(String username)
-
getActiveTrackingEntriesForUser
List<AOTrackingEntry> getActiveTrackingEntriesForUser(String username, int start, int limit)
-
removeAllUsers
void removeAllUsers(AOTrackingEntry entry)
-
getTrackingEntryWithBuildNumber
AOTrackingEntry getTrackingEntryWithBuildNumber(long planId, int buildNumber)
-
-