org.squashtest.csp.tm.service
Interface RequirementLibraryNavigationService

All Superinterfaces:
LibraryNavigationService<RequirementLibrary,RequirementFolder,RequirementLibraryNode>, RequirementLibraryFinderService
All Known Implementing Classes:
RequirementLibraryNavigationServiceImpl

public interface RequirementLibraryNavigationService
extends LibraryNavigationService<RequirementLibrary,RequirementFolder,RequirementLibraryNode>, RequirementLibraryFinderService


Method Summary
 Requirement addRequirementToRequirementFolder(long folderId, NewRequirementVersionDto newRequirement)
           
 Requirement addRequirementToRequirementFolder(long folderId, Requirement requirement)
           
 Requirement addRequirementToRequirementLibrary(long libraryId, NewRequirementVersionDto newRequirement)
           
 Requirement addRequirementToRequirementLibrary(long libraryId, Requirement requirement)
           
 Requirement findRequirement(long reqId)
           
 List<ExportRequirementData> findRequirementsToExportFromNodes(List<Long> nodesIds)
          Will find all requirements of the given ids and contained in folders of the given ids, and return their information as a list of ExportRequirementData
 List<ExportRequirementData> findRequirementsToExportFromProject(List<Long> libraryIds)
          Will find all requirements found in the given projects and return their information as a list of ExportRequirementData
 ImportSummary importExcel(InputStream stream, long projectId)
          Accepts a stream to a .xls / .xlsx file info for requirement folders and requirements.
 ImportRequirementTestCaseLinksSummary importLinksExcel(InputStream stream)
          Accepts a stream to a .xls / .xlsx file info for requirement and test-case links.
 
Methods inherited from interface org.squashtest.csp.tm.service.LibraryNavigationService
addFolderToFolder, addFolderToLibrary, copyNodesToFolder, copyNodesToLibrary, deleteNodes, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, modeNodesToFolder, moveNodesToLibrary, renameFolder, simulateDeletion
 
Methods inherited from interface org.squashtest.csp.tm.service.RequirementLibraryFinderService
findLinkableRequirementLibraries, getPathAsString
 

Method Detail

addRequirementToRequirementLibrary

Requirement addRequirementToRequirementLibrary(long libraryId,
                                               @NotNull
                                               Requirement requirement)

addRequirementToRequirementLibrary

Requirement addRequirementToRequirementLibrary(long libraryId,
                                               @NotNull
                                               NewRequirementVersionDto newRequirement)

addRequirementToRequirementFolder

Requirement addRequirementToRequirementFolder(long folderId,
                                              @NotNull
                                              Requirement requirement)

addRequirementToRequirementFolder

Requirement addRequirementToRequirementFolder(long folderId,
                                              @NotNull
                                              NewRequirementVersionDto newRequirement)

findRequirement

Requirement findRequirement(long reqId)

findRequirementsToExportFromProject

List<ExportRequirementData> findRequirementsToExportFromProject(@NotNull
                                                                List<Long> libraryIds)
Will find all requirements found in the given projects and return their information as a list of ExportRequirementData

Parameters:
libraryIds - ids of Project
Returns:
a list of ExportRequirementData

findRequirementsToExportFromNodes

List<ExportRequirementData> findRequirementsToExportFromNodes(@NotNull
                                                              List<Long> nodesIds)
Will find all requirements of the given ids and contained in folders of the given ids, and return their information as a list of ExportRequirementData

Parameters:
nodesIds - ids of RequirementLibraryNode
Returns:
a list of ExportRequirementData

importExcel

ImportSummary importExcel(InputStream stream,
                          long projectId)
Accepts a stream to a .xls / .xlsx file info for requirement folders and requirements. Will convert the requirements from excel to squash.

Parameters:
ExcelStream -
libraryId - the identifier of the library we are importing requirements into.
Returns:
a summary of the operations.

importLinksExcel

ImportRequirementTestCaseLinksSummary importLinksExcel(InputStream stream)
Accepts a stream to a .xls / .xlsx file info for requirement and test-case links. Will convert the links from excel to squash.

Parameters:
ExcelStream -
Returns:
a summary of the operations.


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