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

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

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


Constructor Summary
CustomCampaignModificationServiceImpl()
           
 
Method Summary
 org.squashtest.tm.domain.campaign.TestPlanStatistics findCampaignStatistics(long campaignId)
           
 List<org.squashtest.tm.domain.campaign.Iteration> findIterationsByCampaignId(long campaignId)
           
 CampaignStatisticsBundle gatherCampaignStatisticsBundle(long campaignId)
           
 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.tm.domain.campaign.Campaign\' ,\'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long campaignId,
                                String newName)
Specified by:
rename in interface CustomCampaignModificationService

findCampaignStatistics

public org.squashtest.tm.domain.campaign.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

findIterationsByCampaignId

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public List<org.squashtest.tm.domain.campaign.Iteration> findIterationsByCampaignId(long campaignId)
Specified by:
findIterationsByCampaignId in interface CustomCampaignModificationService

gatherCampaignStatisticsBundle

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public CampaignStatisticsBundle gatherCampaignStatisticsBundle(long campaignId)
Specified by:
gatherCampaignStatisticsBundle in interface CustomCampaignModificationService


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