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

All Superinterfaces:
EntityDao<Issue>
All Known Implementing Classes:
HibernateIssueDao

public interface IssueDao
extends EntityDao<Issue>


Method Summary
 Integer countIssuesfromIssueList(List<Long> issueListIds)
          Will count the total number of issues related to the given IssueList.
<X extends Bugged>
X
findBuggedEntity(Long entityId, Class<X> entityClass)
           
 List<IssueOwnership<Issue>> findIssuesWithOwner(Bugged entity, CollectionSorting sorter)
          Will recursively find a sorted/filtered list of Issues paired with their owning Bugged entity, from the given bugged entity and its related Bugged entities.
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findAllByIdList, findById, flush, persist, persist, remove
 

Method Detail

findBuggedEntity

<X extends Bugged> X findBuggedEntity(Long entityId,
                                      Class<X> entityClass)

findIssuesWithOwner

List<IssueOwnership<Issue>> findIssuesWithOwner(Bugged entity,
                                                CollectionSorting sorter)
Will recursively find a sorted/filtered list of Issues paired with their owning Bugged entity, from the given bugged entity and its related Bugged entities. The data will be sorted/filtered regardless of their owner.

Parameters:
entity - the entity at the base of the bugged hierarchy
sorter - a CollectionSoring object that will tell who we must sort the data
Returns:
a non null but possibly empty list of IssueOwnership, that will pair each Issue with their Owner.

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.


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.