org.squashtest.csp.tm.service
Interface CampaignLibraryNavigationService

All Superinterfaces:
CampaignLibraryFinderService, LibraryNavigationService<CampaignLibrary,CampaignFolder,CampaignLibraryNode>
All Known Implementing Classes:
CampaignLibraryNavigationServiceImpl

public interface CampaignLibraryNavigationService
extends LibraryNavigationService<CampaignLibrary,CampaignFolder,CampaignLibraryNode>, CampaignLibraryFinderService


Method Summary
 void addCampaignToCampaignFolder(long folderId, Campaign campaign)
           
 void addCampaignToCampaignLibrary(long libraryId, Campaign campaign)
           
 int addIterationToCampaign(Iteration iteration, long campaignId)
          Adds a new iteration to a campaign.
 List<Iteration> copyIterationsToCampaign(long campaignId, Long[] iterationsIds)
           
 int copyIterationToCampaign(long campaignId, long iterationId)
           
 List<Long> deleteIterations(List<Long> targetIds)
          that method should delete the iterations.
 List<Long> deleteSuites(List<Long> suiteIds)
          that method should delete test suites, and remove its references in iteration and iteration test plan item
 Campaign findCampaign(long campaignId)
           
 Iteration findIteration(long iterationId)
           
 List<TestSuite> findIterationContent(long iterationId)
           
 List<Iteration> findIterationsByCampaignId(long campaignId)
           
 List<CampaignLibrary> findLinkableCampaignLibraries()
           
 int moveIterationToNewCampaign(long newCampaignId, long oldCampaignId, long iterationId)
           
 List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
          that method should investigate the consequences of the deletion request of iterations, and return a report about what will happen.
 List<SuppressionPreviewReport> simulateSuiteDeletion(List<Long> targetIds)
           
 
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.CampaignLibraryFinderService
getPathAsString
 

Method Detail

addCampaignToCampaignLibrary

void addCampaignToCampaignLibrary(long libraryId,
                                  Campaign campaign)

addCampaignToCampaignFolder

void addCampaignToCampaignFolder(long folderId,
                                 Campaign campaign)

findCampaign

Campaign findCampaign(long campaignId)

addIterationToCampaign

int addIterationToCampaign(Iteration iteration,
                           long campaignId)
Adds a new iteration to a campaign. Returns the index of the new iteration.

Parameters:
iteration -
campaignId -
Returns:

findIterationsByCampaignId

List<Iteration> findIterationsByCampaignId(long campaignId)

copyIterationToCampaign

int copyIterationToCampaign(long campaignId,
                            long iterationId)

copyIterationsToCampaign

List<Iteration> copyIterationsToCampaign(long campaignId,
                                         Long[] iterationsIds)

moveIterationToNewCampaign

int moveIterationToNewCampaign(long newCampaignId,
                               long oldCampaignId,
                               long iterationId)

findIteration

Iteration findIteration(long iterationId)

findIterationContent

List<TestSuite> findIterationContent(long iterationId)

findLinkableCampaignLibraries

List<CampaignLibrary> findLinkableCampaignLibraries()

simulateIterationDeletion

List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request of iterations, and return a report about what will happen.

Parameters:
targetIds -
Returns:

deleteIterations

List<Long> deleteIterations(List<Long> targetIds)
that method should delete the iterations. It still takes care of non deletable iterations so the implementation should filter out the ids who can't be deleted.

Parameters:
targetIds -
Returns:

simulateSuiteDeletion

List<SuppressionPreviewReport> simulateSuiteDeletion(List<Long> targetIds)

deleteSuites

List<Long> deleteSuites(List<Long> suiteIds)
that method should delete test suites, and remove its references in iteration and iteration test plan item

Parameters:
testSuites -
Returns:


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