org.squashtest.csp.tm.internal.service
Class CampaignTestPlanManagerServiceImpl

java.lang.Object
  extended by org.squashtest.csp.tm.internal.service.CampaignTestPlanManagerServiceImpl
All Implemented Interfaces:
CampaignTestPlanManagerService

@Service(value="squashtest.tm.service.CampaignTestPlanManagerService")
@Transactional
public class CampaignTestPlanManagerServiceImpl
extends Object
implements CampaignTestPlanManagerService


Constructor Summary
CampaignTestPlanManagerServiceImpl()
           
 
Method Summary
 void addTestCasesToCampaignTestPlan(List<Long> testCasesIds, long campaignId)
          Adds a list of test cases to a campaign.
 void assignUserToTestPlanItem(Long testCaseId, long campaignId, Long userId)
          Get Users with Write Access for a TestPlan.
 void assignUserToTestPlanItems(List<Long> testCaseIds, long campaignId, Long userId)
          Get Users with Write Access for a TestPlan.
 List<User> findAssignableUserForTestPlan(long campaignId)
          Get Users with Write Access for a campaign and his test plans.
 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
 CampaignTestPlanItem findTestPlanItemByTestCaseId(long campaignId, long testCaseId)
          Adds a list of test cases to a campaign.
 void removeTestCaseFromCampaign(Long testCaseId, long campaignId)
          Removes a test case from a campaign.
 void removeTestCasesFromCampaign(List<Long> testCaseIds, long campaignId)
          Removes a list of test cases from a campaign.
 void setObjectIdentityRetrievalStrategy(org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CampaignTestPlanManagerServiceImpl

public CampaignTestPlanManagerServiceImpl()
Method Detail

setObjectIdentityRetrievalStrategy

@ServiceReference
public void setObjectIdentityRetrievalStrategy(org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)

findCampaign

@PostAuthorize(value="hasPermission(#campaignId, \'org.squashtest.csp.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public Campaign findCampaign(long campaignId)
Description copied from interface: CampaignTestPlanManagerService
Find a campaign using its id

Specified by:
findCampaign in interface CampaignTestPlanManagerService

findLinkableTestCaseLibraries

@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')")
public List<TestCaseLibrary> findLinkableTestCaseLibraries()
Description copied from interface: CampaignTestPlanManagerService
Returns a collection of TestCaseLibrary, the test cases of which may be added to the campaign

Specified by:
findLinkableTestCaseLibraries in interface CampaignTestPlanManagerService

addTestCasesToCampaignTestPlan

@PostAuthorize(value="hasPermission(#campaignId, \'org.squashtest.csp.tm.domain.campaign.Campaign\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void addTestCasesToCampaignTestPlan(List<Long> testCasesIds,
                                                         long campaignId)
Description copied from interface: CampaignTestPlanManagerService
Adds a list of test cases to a campaign.

Specified by:
addTestCasesToCampaignTestPlan in interface CampaignTestPlanManagerService

removeTestCasesFromCampaign

@PostAuthorize(value="hasPermission(#campaignId, \'org.squashtest.csp.tm.domain.campaign.Campaign\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void removeTestCasesFromCampaign(List<Long> testCaseIds,
                                                      long campaignId)
Description copied from interface: CampaignTestPlanManagerService
Removes a list of test cases from a campaign.

Specified by:
removeTestCasesFromCampaign in interface CampaignTestPlanManagerService

removeTestCaseFromCampaign

@PostAuthorize(value="hasPermission(#campaignId, \'org.squashtest.csp.tm.domain.campaign.Campaign\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void removeTestCaseFromCampaign(Long testCaseId,
                                                     long campaignId)
Description copied from interface: CampaignTestPlanManagerService
Removes a test case from a campaign.

Specified by:
removeTestCaseFromCampaign in interface CampaignTestPlanManagerService

findAssignableUserForTestPlan

public List<User> findAssignableUserForTestPlan(long campaignId)
Description copied from interface: CampaignTestPlanManagerService
Get Users with Write Access for a campaign and his test plans.

Specified by:
findAssignableUserForTestPlan in interface CampaignTestPlanManagerService

assignUserToTestPlanItem

public void assignUserToTestPlanItem(Long testCaseId,
                                     long campaignId,
                                     Long userId)
Description copied from interface: CampaignTestPlanManagerService
Get Users with Write Access for a TestPlan.

Specified by:
assignUserToTestPlanItem in interface CampaignTestPlanManagerService

assignUserToTestPlanItems

public void assignUserToTestPlanItems(List<Long> testCaseIds,
                                      long campaignId,
                                      Long userId)
Description copied from interface: CampaignTestPlanManagerService
Get Users with Write Access for a TestPlan.

Specified by:
assignUserToTestPlanItems in interface CampaignTestPlanManagerService

findTestPlanItemByTestCaseId

public CampaignTestPlanItem findTestPlanItemByTestCaseId(long campaignId,
                                                         long testCaseId)
Description copied from interface: CampaignTestPlanManagerService
Adds a list of test cases to a campaign.

Specified by:
findTestPlanItemByTestCaseId in interface CampaignTestPlanManagerService


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