org.squashtest.tm.service.internal.repository
Interface IssueDao

All Superinterfaces:
EntityDao<org.squashtest.tm.domain.bugtracker.Issue>, GenericDao<org.squashtest.tm.domain.bugtracker.Issue>
All Known Implementing Classes:
HibernateIssueDao

public interface IssueDao
extends EntityDao<org.squashtest.tm.domain.bugtracker.Issue>


Method Summary
 Integer countIssuesfromExecutionAndExecutionSteps(List<Long> executionsIds, List<Long> executionStepsIds)
          Will count all Issues from the given executions and execution-steps concerned by the active bug-tracker for each execution/execution-step's project.
 Integer countIssuesfromExecutionSteps(List<Long> executionStepsIds)
          Self explanatory
 Integer countIssuesfromIssueList(Collection<Long> issueListIds, Long bugTrackerId)
          Will count the total number of issues related to the given IssueList, for the given bugtracker
 Integer countIssuesfromIssueList(List<Long> issueListIds)
          Will count the total number of issues related to the given IssueList.
 List<org.squashtest.tm.domain.bugtracker.Issue> findAllForIteration(Long id)
          Will find all issues declared in the iteration of the given id.
 List<org.squashtest.tm.domain.bugtracker.Issue> findAllForTestSuite(Long id)
          Will find all issues declared in the test suite of the given id.
 org.squashtest.tm.domain.bugtracker.IssueDetector findIssueDetectorByIssue(long id)
          Will return the Execution or the ExecutionStep that holds the Issue of the given id.
 List<Object[]> findSortedIssuesFromExecutionAndExecutionSteps(List<Long> executionIds, List<Long> executionStepsIds, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
          Will find all issues belonging to the executions/executionSteps of the given ids, and, return a list of Object[] that have the following structure : [IssueList.id, Issue.remoteIssueId , Issue.bugtracker.id]

The issues are also filtered over the bug-tracker parameter: only issues linked to the bug-tracker active for the given execution/executionSteps's project's bug-tracker are retained.
 List<Object[]> findSortedIssuesFromIssuesLists(Collection<Long> issueListId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter, Long bugTrackerId)
          Will find all issues belonging to the issue-lists of the given ids, and, return a list of Object[] that have the following structure : [IssueList.id, Issue.remoteIssueId, Issue.id]

The issues are also filtered over the bug-tracker parameter: only issues linked to the bug-tracker of the given id are retained.
 org.squashtest.tm.domain.testcase.TestCase findTestCaseRelatedToIssue(long issueId)
           
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Method Detail

countIssuesfromIssueList

Integer countIssuesfromIssueList(List<Long> issueListIds)
Will count the total number of issues related to the given IssueList.

Parameters:
issueListIds - the id of the issue lists.
Returns:
how many issues they hold.

countIssuesfromIssueList

Integer countIssuesfromIssueList(Collection<Long> issueListIds,
                                 Long bugTrackerId)
Will count the total number of issues related to the given IssueList, for the given bugtracker

Parameters:
issueListIds - the id of the issue lists.
bugTrackerId - the id of the bug-tracker we are filtering on
Returns:
how many issues they hold.

findSortedIssuesFromIssuesLists

List<Object[]> findSortedIssuesFromIssuesLists(Collection<Long> issueListId,
                                               org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter,
                                               Long bugTrackerId)
Will find all issues belonging to the issue-lists of the given ids, and, return a list of Object[] that have the following structure : [IssueList.id, Issue.remoteIssueId, Issue.id]

The issues are also filtered over the bug-tracker parameter: only issues linked to the bug-tracker of the given id are retained.

Parameters:
issueListIds - the list of the ids of the IssueList
sorter - : will sort and filter the result set
bugtrackerId - the id of the bug-tracker we want the issues to be connected-to
Returns:
non-null but possibly empty list of Object[] which have the following structure [IssueList.id, Issue.remoteIssueId, Issue.id]

findSortedIssuesFromExecutionAndExecutionSteps

List<Object[]> findSortedIssuesFromExecutionAndExecutionSteps(List<Long> executionIds,
                                                              List<Long> executionStepsIds,
                                                              org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Will find all issues belonging to the executions/executionSteps of the given ids, and, return a list of Object[] that have the following structure : [IssueList.id, Issue.remoteIssueId , Issue.bugtracker.id]

The issues are also filtered over the bug-tracker parameter: only issues linked to the bug-tracker active for the given execution/executionSteps's project's bug-tracker are retained.

Parameters:
executionIds - : ids of executions we will extract Issues from
executionStepsIds - : ids of executionSteps we will extract Issues from
sorter - : holds the sort parameters for the query
Returns:
non-null but possibly empty list of Object[] which have the following structure [IssueList.id, Issue.remoteIssueId , Issue.bugtracker.id]

countIssuesfromExecutionAndExecutionSteps

Integer countIssuesfromExecutionAndExecutionSteps(List<Long> executionsIds,
                                                  List<Long> executionStepsIds)
Will count all Issues from the given executions and execution-steps concerned by the active bug-tracker for each execution/execution-step's project.

Parameters:
executionsIds -
executionStepsIds -
Returns:
the number of Issues detected by the given execution / execution Steps

findAllForIteration

List<org.squashtest.tm.domain.bugtracker.Issue> findAllForIteration(Long id)
Will find all issues declared in the iteration of the given id.

Parameters:
id - : the id of the concerned Iteration
Returns:
the list of the iteration's Issues

findAllForTestSuite

List<org.squashtest.tm.domain.bugtracker.Issue> findAllForTestSuite(Long id)
Will find all issues declared in the test suite of the given id.

Parameters:
id - : the id of the concerned TestSuite
Returns:
the list of the suite's Issues

countIssuesfromExecutionSteps

Integer countIssuesfromExecutionSteps(List<Long> executionStepsIds)
Self explanatory

Parameters:
executionStepsIds -
Returns:

findIssueDetectorByIssue

org.squashtest.tm.domain.bugtracker.IssueDetector findIssueDetectorByIssue(long id)
Will return the Execution or the ExecutionStep that holds the Issue of the given id.

Parameters:
id - : the id of the Issue we want the owner of.
Returns:
the found IssueDetector or null.

findTestCaseRelatedToIssue

org.squashtest.tm.domain.testcase.TestCase findTestCaseRelatedToIssue(long issueId)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.