org.squashtest.tm.service.testcase
Interface TestCaseLibraryFinderService

All Known Subinterfaces:
TestCaseLibraryNavigationService
All Known Implementing Classes:
TestCaseLibraryNavigationServiceImpl

public interface TestCaseLibraryFinderService

Author:
Gregory

Method Summary
 List<org.squashtest.tm.domain.testcase.TestCaseLibrary> findLinkableTestCaseLibraries()
          Returns the collection of TestCaseLibrarys which TestCases can be linked by a TestCase via a CallTestStep
 Collection<Long> findTestCaseIdsFromSelection(Collection<Long> libraryIds, Collection<Long> nodeIds)
          Passing the ids of some selected TestCaseLibrary and TestCaseLibraryNodes (in separate collections), will return the ids of the TestCases encompassed by this selection.
 String getPathAsString(long entityId)
          Returns the path of a TestCaseLibraryNode given its id.
 TestCaseStatisticsBundle getStatisticsForSelection(Collection<Long> libraryIds, Collection<Long> nodeIds)
          Passing the ids of some selected TestCaseLibrary and TestCaseLibraryNodes (in separate collections), will return the statistics covering all the TestCases encompassed by this selection.
 

Method Detail

findLinkableTestCaseLibraries

List<org.squashtest.tm.domain.testcase.TestCaseLibrary> findLinkableTestCaseLibraries()
Returns the collection of TestCaseLibrarys which TestCases can be linked by a TestCase via a CallTestStep

Returns:

getPathAsString

String getPathAsString(long entityId)
Returns the path of a TestCaseLibraryNode given its id. The format is standard, beginning with /<project-name>

Parameters:
entityId - the id of the node.
Returns:
the path of that node.

getStatisticsForSelection

TestCaseStatisticsBundle getStatisticsForSelection(Collection<Long> libraryIds,
                                                   Collection<Long> nodeIds)
Passing the ids of some selected TestCaseLibrary and TestCaseLibraryNodes (in separate collections), will return the statistics covering all the TestCases encompassed by this selection. The test case ids that cannot be accessed for security reason will be filtered out.

Parameters:
libraryIds -
nodeIds -
Returns:
TestcaseStatisticsBundle

findTestCaseIdsFromSelection

Collection<Long> findTestCaseIdsFromSelection(Collection<Long> libraryIds,
                                              Collection<Long> nodeIds)
Passing the ids of some selected TestCaseLibrary and TestCaseLibraryNodes (in separate collections), will return the ids of the TestCases encompassed by this selection. The test case ids that cannot be accessed for security reason will be filtered out.

Parameters:
libraryIds -
nodeIds -
Returns:


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