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)
          Adds a campaign to a folder.
 void addCampaignToCampaignFolder(long folderId, Campaign campaign, Map<Long,String> customFieldValues)
          Adds a campaign to a folder, and its initial custom field values.
 void addCampaignToCampaignLibrary(long libraryId, Campaign campaign)
          Adds a Campaign to the root of the library.
 void addCampaignToCampaignLibrary(long libraryId, Campaign campaign, Map<Long,String> customFieldValues)
          Adds a Campaign to the root of the Library, and its initial custom field values.
 int addIterationToCampaign(Iteration iteration, long campaignId, boolean copyTestPlan)
          Adds a new iteration to a campaign.
 int addIterationToCampaign(Iteration iteration, long campaignId, boolean copyTestPlan, Map<Long,String> customFieldValues)
          Adds a new iteration to a campaign.
 List<Iteration> copyIterationsToCampaign(long campaignId, Long[] iterationsIds)
           
 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)
          Deprecated. use CampaignFinder.findById(long) instead
 Iteration findIteration(long iterationId)
          Deprecated. use IterationFinder.findById(long) instead
 List<TestSuite> findIterationContent(long iterationId)
           
 List<Iteration> findIterationsByCampaignId(long campaignId)
           
 List<CampaignLibrary> findLinkableCampaignLibraries()
           
 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)
Adds a Campaign to the root of the library. The custom fields will be created with their default value.

Parameters:
libraryId -
campaign -

addCampaignToCampaignLibrary

void addCampaignToCampaignLibrary(long libraryId,
                                  Campaign campaign,
                                  Map<Long,String> customFieldValues)
Adds a Campaign to the root of the Library, and its initial custom field values. The initial custom field values are passed as a Map, that maps the id of the CustomField to the values of the corresponding CustomFieldValue. Read that last sentence again.

Parameters:
libraryId -
campaign -
customFieldValues -

addCampaignToCampaignFolder

void addCampaignToCampaignFolder(long folderId,
                                 Campaign campaign)
Adds a campaign to a folder. The custom fields will be created with their default value.

Parameters:
libraryId -
campaign -

addCampaignToCampaignFolder

void addCampaignToCampaignFolder(long folderId,
                                 Campaign campaign,
                                 Map<Long,String> customFieldValues)
Adds a campaign to a folder, and its initial custom field values. The initial custom field values are passed as a Map, that maps the id of the CustomField to the values of the corresponding CustomFieldValue. Read that last sentence again.

Parameters:
libraryId -
campaign -
customFieldValues -

findCampaign

@Deprecated
Campaign findCampaign(long campaignId)
Deprecated. use CampaignFinder.findById(long) instead

Parameters:
campaignId -
Returns:

addIterationToCampaign

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

Parameters:
iteration -
campaignId -
Returns:

addIterationToCampaign

int addIterationToCampaign(Iteration iteration,
                           long campaignId,
                           boolean copyTestPlan,
                           Map<Long,String> customFieldValues)
Adds a new iteration to a campaign. Returns the index of the new iteration. The initial custom field values are passed as a Map, that maps the id of the CustomField to the values of the corresponding CustomFieldValue. Read that last sentence again.

Parameters:
iteration -
campaignId -
Returns:

findIterationsByCampaignId

List<Iteration> findIterationsByCampaignId(long campaignId)

copyIterationsToCampaign

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

findIteration

@Deprecated
Iteration findIteration(long iterationId)
Deprecated. use IterationFinder.findById(long) instead

Parameters:
iterationId -
Returns:

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.