org.squashtest.csp.tm.service
Interface CampaignLibraryNavigationService

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

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


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)
           
 Campaign createCopyCampaign(long campaignId)
           
 List<Long> deleteIterations(List<Long> targetIds)
          that method should delete the iterations.
 Campaign findCampaign(long campaignId)
           
 Iteration findIteration(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.
 
Methods inherited from interface org.squashtest.csp.tm.service.LibraryNavigationService
addFolderToFolder, addFolderToLibrary, copyNodesToFolder, copyNodesToLibrary, deleteNodes, findFolder, findFolderContent, findLibrary, findLibraryRootContent, modeNodesToFolder, moveNodesToLibrary, renameFolder, simulateDeletion
 

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)

createCopyCampaign

Campaign createCopyCampaign(long campaignId)

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:


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