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

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

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


Constructor Summary
ExecutionProcessingServiceImpl()
           
 
Method Summary
 Execution findExecution(Long executionId)
           
 int findExecutionRank(Long executionId)
           
 ExecutionStep findExecutionStep(Long executionStepId)
           
 int findExecutionStepRank(Long executionStepId)
           
 ExecutionStep findRunningExecutionStep(Long executionId)
           
 int findTotalNumberSteps(Long executionId)
           
 ExecutionStatusReport getExecutionStatusReport(Long executionId)
           
 List<ExecutionStep> getExecutionSteps(Long executionId)
           
 ExecutionStep getStepAt(Long executionId, int executionStepIndex)
          Returns, for a given execution and for a given step index, the corresponding ExecutionStep Will create the next step if the index corresponds to the one immediately following the last step, similarly to "nextExecutionStep"
 void setExecutionStatus(Long executionId, ExecutionStatus status)
           
 void setExecutionStatus(Long executionId, ExecutionStatusReport report)
           
 void setExecutionStepComment(Long executionStepId, String comment)
           
 void setExecutionStepStatus(Long executionStepId, ExecutionStatus status)
          Method which modify the execution step status
It implies :
* execution status update
* item test plan status update
* last execution date and user update for step, execution and item test plan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionProcessingServiceImpl

public ExecutionProcessingServiceImpl()
Method Detail

findExecutionStep

public ExecutionStep findExecutionStep(Long executionStepId)
Specified by:
findExecutionStep in interface ExecutionProcessingService

findRunningExecutionStep

public ExecutionStep findRunningExecutionStep(Long executionId)
Specified by:
findRunningExecutionStep in interface ExecutionProcessingService
Returns:
the first occurence of a running or ready ExecutionStep

getStepAt

public ExecutionStep getStepAt(Long executionId,
                               int executionStepIndex)
Description copied from interface: ExecutionProcessingService
Returns, for a given execution and for a given step index, the corresponding ExecutionStep Will create the next step if the index corresponds to the one immediately following the last step, similarly to "nextExecutionStep"

Specified by:
getStepAt in interface ExecutionProcessingService
Returns:

setExecutionStepStatus

public void setExecutionStepStatus(Long executionStepId,
                                   ExecutionStatus status)
Description copied from interface: ExecutionProcessingService
Method which modify the execution step status
It implies :
* execution status update
* item test plan status update
* last execution date and user update for step, execution and item test plan

Specified by:
setExecutionStepStatus in interface ExecutionProcessingService
Parameters:
executionStepId - the step id
status - the new status

setExecutionStepComment

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

findExecution

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

findExecutionRank

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

getExecutionSteps

public List<ExecutionStep> getExecutionSteps(Long executionId)
Specified by:
getExecutionSteps in interface ExecutionProcessingService

findExecutionStepRank

public int findExecutionStepRank(Long executionStepId)
Specified by:
findExecutionStepRank in interface ExecutionProcessingService

findTotalNumberSteps

public int findTotalNumberSteps(Long executionId)
Specified by:
findTotalNumberSteps in interface ExecutionProcessingService

setExecutionStatus

public void setExecutionStatus(Long executionId,
                               ExecutionStatus status)
Specified by:
setExecutionStatus in interface ExecutionProcessingService

getExecutionStatusReport

public ExecutionStatusReport getExecutionStatusReport(Long executionId)
Specified by:
getExecutionStatusReport in interface ExecutionProcessingService

setExecutionStatus

public void setExecutionStatus(Long executionId,
                               ExecutionStatusReport report)
Specified by:
setExecutionStatus in interface ExecutionProcessingService


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