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

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

@Service(value="squashtest.tm.service.ExecutionModificationService")
public class ExecutionModificationServiceImpl
extends Object
implements ExecutionModificationService


Constructor Summary
ExecutionModificationServiceImpl()
           
 
Method Summary
 void deleteExecution(Execution execution)
          that method should delete the execution.
 Execution findAndInitExecution(Long executionId)
           
 Execution findExecution(Long executionId)
           
 int findExecutionRank(Long executionId)
           
 List<ExecutionStep> getExecutionSteps(Long executionId)
          Steps methods
 FilteredCollectionHolder<List<ExecutionStep>> getExecutionSteps(long executionId, CollectionFilter filter)
           
 void setExecutionDescription(Long executionId, String description)
           
 void setExecutionStepComment(Long executionStepId, String comment)
           
 List<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
          that method should investigate the consequences of the deletion of the given executions, and return a report about what will happen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionModificationServiceImpl

public ExecutionModificationServiceImpl()
Method Detail

findExecution

public Execution findExecution(Long executionId)
Specified by:
findExecution in interface ExecutionModificationService

findAndInitExecution

public Execution findAndInitExecution(Long executionId)
Specified by:
findAndInitExecution in interface ExecutionModificationService

setExecutionDescription

public void setExecutionDescription(Long executionId,
                                    String description)
Specified by:
setExecutionDescription in interface ExecutionModificationService

getExecutionSteps

public List<ExecutionStep> getExecutionSteps(Long executionId)
Description copied from interface: ExecutionModificationService
Steps methods

Specified by:
getExecutionSteps in interface ExecutionModificationService

findExecutionRank

public int findExecutionRank(Long executionId)
Specified by:
findExecutionRank in interface ExecutionModificationService

setExecutionStepComment

public void setExecutionStepComment(Long executionStepId,
                                    String comment)
Specified by:
setExecutionStepComment in interface ExecutionModificationService

getExecutionSteps

public FilteredCollectionHolder<List<ExecutionStep>> getExecutionSteps(long executionId,
                                                                       CollectionFilter filter)
Specified by:
getExecutionSteps in interface ExecutionModificationService

simulateExecutionDeletion

public List<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
Description copied from interface: ExecutionModificationService
that method should investigate the consequences of the deletion of the given executions, and return a report about what will happen.

Specified by:
simulateExecutionDeletion in interface ExecutionModificationService
Returns:

deleteExecution

public void deleteExecution(Execution execution)
Description copied from interface: ExecutionModificationService
that method should delete the execution. It still takes care of non deletable executions so the implementation should abort if the execution can't be deleted.

Specified by:
deleteExecution in interface ExecutionModificationService


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