public class TestItemRepositoryCustomImpl extends java.lang.Object implements TestItemRepositoryCustom
| Modifier and Type | Field and Description |
|---|---|
static int |
HISTORY_LIMIT |
| Constructor and Description |
|---|
TestItemRepositoryCustomImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteExecutionStatistics(TestItem item) |
void |
deleteIssueStatistics(TestItem item) |
void |
dropIssueStatisticsType(java.lang.String id,
StatisticSubType type) |
java.util.List<TestItem> |
findByHasChildStatus(boolean hasChildren,
java.lang.String launch)
Get elements in launch branches specified by has_childs status.
|
java.util.List<TestItem> |
findByLaunch(Launch launch) |
java.util.List<TestItem> |
findDescendants(java.lang.String... id) |
java.util.List<java.lang.String> |
findDistinctValues(java.lang.String launchId,
java.lang.String containsValue,
java.lang.String distinctBy)
Get list of distinct values from TestItems collection
|
java.util.List<TestItem> |
findForSpecifiedSubType(java.util.List<java.lang.String> launchesIds,
boolean hasChild,
StatisticSubType type)
Get all test items without descendants under specified launches with specified sub-types.
|
java.util.List<TestItem> |
findIdsByLaunch(java.lang.Iterable<Launch> launches)
Finds testItems by specified launch IDs
|
java.util.List<TestItem> |
findInIssueTypeItems(java.lang.String issueType,
java.lang.String launchId)
Get test-items for specified launch with specified issue type.
|
java.util.List<java.lang.String> |
findItemIdsByLaunchRef(java.util.List<java.lang.String> launchRef) |
java.util.List<TestItem> |
findModifiedLaterAgo(Time period,
Status status,
Launch launch)
Finds items modified later than provided period with provided status which is item of
provided launch
|
java.util.List<TestItem> |
findModifiedLaterAgo(Time period,
Status status,
Launch launch,
boolean hasChilds)
Finds items modified later than provided period with provided status which is item of
provided launch
|
java.util.Map<java.lang.String,java.lang.String> |
findPathNames(java.lang.Iterable<java.lang.String> path)
Get names of path field of test item
|
java.util.List<TestItem> |
findTestItemWithInvestigated(java.lang.String launchId)
Find test items of specified launch with investigated issues.
|
java.util.Map<java.lang.String,java.lang.String> |
getMostFailedTestCases(java.util.List<Launch> launches,
java.lang.String criteria)
Get content of Most Failed Test Cases widget
|
java.util.List<java.lang.String> |
getUniqueTicketsCount(java.util.List<Launch> launches)
Get list of unique tickets for specified list of launches
|
boolean |
hasDescendants(java.lang.Object... id) |
boolean |
hasLogs(java.lang.Iterable<TestItem> items)
Whether some of provided items has logs
|
boolean |
hasTestItemsAddedLately(Time period,
Launch launch,
Status status)
Whether launch contains any testItems added lately.
|
java.util.List<TestItem> |
loadItemsHistory(java.util.List<TestItem> items,
java.util.List<java.lang.String> launchesIds,
java.util.List<java.lang.String> parentIds)
Load states of specified testItems in specified launches
|
void |
resetExecutionStatistics(TestItem item) |
void |
resetIssueStatistics(TestItem item,
ProjectSettings settings) |
void |
updateExecutionStatistics(TestItem item) |
void |
updateIssueStatistics(TestItem item,
ProjectSettings settings) |
public static final int HISTORY_LIMIT
public void updateExecutionStatistics(TestItem item)
updateExecutionStatistics in interface StatisticsUpdatePolicy<TestItem,ProjectSettings>public void updateIssueStatistics(TestItem item, ProjectSettings settings)
updateIssueStatistics in interface StatisticsUpdatePolicy<TestItem,ProjectSettings>public void dropIssueStatisticsType(java.lang.String id,
StatisticSubType type)
dropIssueStatisticsType in interface TestItemRepositoryCustompublic boolean hasDescendants(java.lang.Object... id)
hasDescendants in interface TestItemRepositoryCustompublic java.util.List<TestItem> findDescendants(java.lang.String... id)
findDescendants in interface TestItemRepositoryCustompublic void resetIssueStatistics(TestItem item, ProjectSettings settings)
resetIssueStatistics in interface StatisticsUpdatePolicy<TestItem,ProjectSettings>public void resetExecutionStatistics(TestItem item)
resetExecutionStatistics in interface StatisticsUpdatePolicy<TestItem,ProjectSettings>public void deleteIssueStatistics(TestItem item)
deleteIssueStatistics in interface StatisticsUpdatePolicy<TestItem,ProjectSettings>public void deleteExecutionStatistics(TestItem item)
deleteExecutionStatistics in interface StatisticsUpdatePolicy<TestItem,ProjectSettings>public java.util.List<TestItem> findByLaunch(Launch launch)
findByLaunch in interface TestItemRepositoryCustompublic java.util.List<TestItem> findIdsByLaunch(java.lang.Iterable<Launch> launches)
TestItemRepositoryCustomfindIdsByLaunch in interface TestItemRepositoryCustompublic java.util.Map<java.lang.String,java.lang.String> findPathNames(java.lang.Iterable<java.lang.String> path)
TestItemRepositoryCustomfindPathNames in interface TestItemRepositoryCustompublic java.util.List<TestItem> findModifiedLaterAgo(Time period, Status status, Launch launch, boolean hasChilds)
TestItemRepositoryCustomfindModifiedLaterAgo in interface TestItemRepositoryCustompublic java.util.List<TestItem> findModifiedLaterAgo(Time period, Status status, Launch launch)
TestItemRepositoryCustomfindModifiedLaterAgo in interface TestItemRepositoryCustompublic java.util.List<java.lang.String> findDistinctValues(java.lang.String launchId,
java.lang.String containsValue,
java.lang.String distinctBy)
TestItemRepositoryCustomfindDistinctValues in interface TestItemRepositoryCustomlaunchId - - parent launch idcontainsValue - - part of string of searching valuedistinctBy - - field which should contain valuepublic java.util.List<java.lang.String> getUniqueTicketsCount(java.util.List<Launch> launches)
TestItemRepositoryCustomgetUniqueTicketsCount in interface TestItemRepositoryCustompublic java.util.Map<java.lang.String,java.lang.String> getMostFailedTestCases(java.util.List<Launch> launches, java.lang.String criteria)
TestItemRepositoryCustomgetMostFailedTestCases in interface TestItemRepositoryCustompublic boolean hasLogs(java.lang.Iterable<TestItem> items)
TestItemRepositoryCustomhasLogs in interface TestItemRepositoryCustompublic java.util.List<TestItem> loadItemsHistory(java.util.List<TestItem> items, java.util.List<java.lang.String> launchesIds, java.util.List<java.lang.String> parentIds)
TestItemRepositoryCustomloadItemsHistory in interface TestItemRepositoryCustompublic java.util.List<TestItem> findTestItemWithInvestigated(java.lang.String launchId)
TestItemRepositoryCustomfindTestItemWithInvestigated in interface TestItemRepositoryCustompublic boolean hasTestItemsAddedLately(Time period, Launch launch, Status status)
TestItemRepositoryCustomhasTestItemsAddedLately in interface TestItemRepositoryCustompublic java.util.List<TestItem> findInIssueTypeItems(java.lang.String issueType, java.lang.String launchId)
TestItemRepositoryCustomfindInIssueTypeItems in interface TestItemRepositoryCustompublic java.util.List<java.lang.String> findItemIdsByLaunchRef(java.util.List<java.lang.String> launchRef)
findItemIdsByLaunchRef in interface TestItemRepositoryCustompublic java.util.List<TestItem> findByHasChildStatus(boolean hasChildren, java.lang.String launch)
TestItemRepositoryCustomfindByHasChildStatus in interface TestItemRepositoryCustompublic java.util.List<TestItem> findForSpecifiedSubType(java.util.List<java.lang.String> launchesIds, boolean hasChild, StatisticSubType type)
TestItemRepositoryCustomfindForSpecifiedSubType in interface TestItemRepositoryCustom