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
 Campaign findById(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

findById

@PostAuthorize(value="hasPermission(returnObject,\'READ\') or hasRole(\'ROLE_ADMIN\')")
public Campaign findById(long campaignId)
Specified by:
findById in interface CustomCampaignModificationService

rename

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

findTestPlanByCampaignId

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


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