org.squashtest.csp.tm.service
Interface CampaignTestPlanManagerService

All Known Implementing Classes:
CampaignTestPlanManagerServiceImpl

public interface CampaignTestPlanManagerService

Service that aims at managing the test cases of a campaign (i.e. its test plan)

Author:
Agnes Durand

Method Summary
 void addTestCasesToCampaignTestPlan(List<Long> testCaseIds, long campaignId)
          Adds a list of test cases to a campaign.
 void assignUserToTestPlanItem(long itemId, long campaignId, long userId)
          Assign a user to the given test plan items
 void assignUserToTestPlanItems(List<Long> itemsIds, long campaignId, long userId)
          Assign a user to the given test plan items
 List<User> findAssignableUserForTestPlan(long campaignId)
          Get Users with Execute Access for a campaign and his test plans.
 CampaignTestPlanItem findById(long itemId)
           
 Campaign findCampaign(long campaignId)
          Find a campaign using its id
 List<TestCaseLibrary> findLinkableTestCaseLibraries()
          Returns a collection of TestCaseLibrary, the test cases of which may be added to the campaign
 void moveTestPlanItems(long campaignId, int targetIndex, List<Long> itemIds)
           
 void removeTestPlanItem(long campaignId, long itemId)
           
 void removeTestPlanItems(long campaignId, List<Long> itemIds)
           
 

Method Detail

findCampaign

Campaign findCampaign(long campaignId)
Find a campaign using its id

Parameters:
campaignId -

findLinkableTestCaseLibraries

List<TestCaseLibrary> findLinkableTestCaseLibraries()
Returns a collection of TestCaseLibrary, the test cases of which may be added to the campaign


addTestCasesToCampaignTestPlan

void addTestCasesToCampaignTestPlan(List<Long> testCaseIds,
                                    long campaignId)
Adds a list of test cases to a campaign.

Parameters:
testCaseIds -
campaignId -

findAssignableUserForTestPlan

List<User> findAssignableUserForTestPlan(long campaignId)
Get Users with Execute Access for a campaign and his test plans.

Parameters:
testCaseId -
campaignId -

assignUserToTestPlanItem

void assignUserToTestPlanItem(long itemId,
                              long campaignId,
                              long userId)
Assign a user to the given test plan items

Parameters:
itemsIds - the test plan items to which assign a user
campaignId - the campaign which test plan contains the items.
userId - the assigned user

assignUserToTestPlanItems

void assignUserToTestPlanItems(List<Long> itemsIds,
                               long campaignId,
                               long userId)
Assign a user to the given test plan items

Parameters:
itemsIds - the test plan items to which assign a user
campaignId - the campaign which test plan contains the items.
userId - the assigned user

moveTestPlanItems

void moveTestPlanItems(long campaignId,
                       int targetIndex,
                       List<Long> itemIds)
Parameters:
campaignId - the campaign which test plan we are about to modify.
targetIndex - the index of the test plan to which we want to move the items
itemIds - the ids of the items we want to move.

removeTestPlanItem

void removeTestPlanItem(long campaignId,
                        long itemId)
Parameters:
campaignId - id of the campaign which test plan we will remove an item from
itemId - id of the test plan item we want to remove

removeTestPlanItems

void removeTestPlanItems(long campaignId,
                         List<Long> itemIds)
Parameters:
campaignId - id of the campaign which test plan we will remove items from
itemId -

findById

CampaignTestPlanItem findById(long itemId)
Parameters:
itemId -
Returns:


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