|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.execution.ExecutionProcessingServiceImpl
@Service(value="squashtest.tm.service.ExecutionProcessingService") @Transactional public class ExecutionProcessingServiceImpl
| Constructor Summary | |
|---|---|
ExecutionProcessingServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
changeExecutionStepStatus(Long executionStepId,
org.squashtest.tm.domain.execution.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 |
org.squashtest.tm.domain.execution.Execution |
findExecution(Long executionId)
|
org.squashtest.tm.domain.execution.ExecutionStep |
findExecutionStep(Long executionStepId)
|
int |
findExecutionStepRank(Long executionStepId)
|
org.squashtest.tm.domain.execution.ExecutionStep |
findRunnableExecutionStep(long executionId)
|
org.squashtest.tm.domain.execution.ExecutionStep |
findStepAt(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" |
int |
findTotalNumberSteps(Long executionId)
|
org.squashtest.tm.domain.execution.ExecutionStatusReport |
getExecutionStatusReport(Long executionId)
|
List<org.squashtest.tm.domain.execution.ExecutionStep> |
getExecutionSteps(Long executionId)
|
void |
setExecutionStatus(Long executionId,
org.squashtest.tm.domain.execution.ExecutionStatus status)
|
void |
setExecutionStatus(Long executionId,
org.squashtest.tm.domain.execution.ExecutionStatusReport report)
|
void |
setExecutionStepComment(Long executionStepId,
String comment)
|
void |
updateExecutionMetadata(org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender extender)
Asks an execution to update it's metadata (lastExecutionOn, lastExecutedBy) according to automated execution business rules. |
void |
updateExecutionMetadata(org.squashtest.tm.domain.execution.Execution execution)
Asks an execution to update it's metadata (lastExecutionOn, lastExecutedBy) according to regular execution business rules. |
boolean |
wasNeverRun(Long executionId)
Tells whether the execution is fresh new or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionProcessingServiceImpl()
| Method Detail |
|---|
public org.squashtest.tm.domain.execution.ExecutionStep findExecutionStep(Long executionStepId)
findExecutionStep in interface ExecutionProcessingServicepublic boolean wasNeverRun(Long executionId)
ExecutionProcessingService
wasNeverRun in interface ExecutionProcessingService
public org.squashtest.tm.domain.execution.ExecutionStep findRunnableExecutionStep(long executionId)
throws org.squashtest.tm.exception.execution.ExecutionHasNoStepsException
findRunnableExecutionStep in interface ExecutionProcessingServiceorg.squashtest.tm.exception.execution.ExecutionHasNoStepsException
public org.squashtest.tm.domain.execution.ExecutionStep findStepAt(long executionId,
int executionStepIndex)
ExecutionProcessingService
findStepAt in interface ExecutionProcessingService
public void changeExecutionStepStatus(Long executionStepId,
org.squashtest.tm.domain.execution.ExecutionStatus status)
ExecutionProcessingService
changeExecutionStepStatus in interface ExecutionProcessingServiceexecutionStepId - the step idstatus - the new status
public void setExecutionStepComment(Long executionStepId,
String comment)
setExecutionStepComment in interface ExecutionProcessingServicepublic org.squashtest.tm.domain.execution.Execution findExecution(Long executionId)
findExecution in interface ExecutionProcessingServicepublic List<org.squashtest.tm.domain.execution.ExecutionStep> getExecutionSteps(Long executionId)
getExecutionSteps in interface ExecutionProcessingServicepublic int findExecutionStepRank(Long executionStepId)
findExecutionStepRank in interface ExecutionProcessingServicepublic int findTotalNumberSteps(Long executionId)
findTotalNumberSteps in interface ExecutionProcessingService
public void setExecutionStatus(Long executionId,
org.squashtest.tm.domain.execution.ExecutionStatus status)
setExecutionStatus in interface ExecutionProcessingServicepublic org.squashtest.tm.domain.execution.ExecutionStatusReport getExecutionStatusReport(Long executionId)
getExecutionStatusReport in interface ExecutionProcessingService@PreAuthorize(value="hasPermission(#execution, \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public void updateExecutionMetadata(org.squashtest.tm.domain.execution.Execution execution)
ExecutionProcessingService
updateExecutionMetadata in interface ExecutionProcessingServiceexecution - the execution to update@PreAuthorize(value="hasPermission(#extender, \'EXECUTE\') or hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TA_API_CLIENT\')") public void updateExecutionMetadata(org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender extender)
ExecutionProcessingService
updateExecutionMetadata in interface ExecutionProcessingService
public void setExecutionStatus(Long executionId,
org.squashtest.tm.domain.execution.ExecutionStatusReport report)
setExecutionStatus in interface ExecutionProcessingService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||