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

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

@Service(value="CustomCampaignModificationService")
@Transactional
public class CustomCampaignModificationServiceImpl
extends Object
implements CustomCampaignModificationService


Constructor Summary
CustomCampaignModificationServiceImpl()
           
 
Method Summary
 TestPlanStatistics findCampaignStatistics(long campaignId)
           
 FilteredCollectionHolder<List<CampaignTestPlanItem>> findTestPlanByCampaignId(long campaignId, CollectionSorting filter)
           
 void rename(long campaignId, String newName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCampaignModificationServiceImpl

public CustomCampaignModificationServiceImpl()
Method Detail

rename

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.csp.tm.domain.campaign.Campaign\' ,\'SMALL_EDIT\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long campaignId,
                                String newName)
Specified by:
rename in interface CustomCampaignModificationService

findTestPlanByCampaignId

public FilteredCollectionHolder<List<CampaignTestPlanItem>> findTestPlanByCampaignId(long campaignId,
                                                                                     CollectionSorting filter)
Specified by:
findTestPlanByCampaignId in interface CustomCampaignModificationService

findCampaignStatistics

public TestPlanStatistics findCampaignStatistics(long campaignId)
Specified by:
findCampaignStatistics in interface CustomCampaignModificationService
Parameters:
campaignId - the id of the concerned campaign
Returns:
the computed TestPlanStatistics out of each test-plan-item of each campaign's iteration


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