@Service(value="squashtest.tm.service.ExecutionModificationService") public class ExecutionModificationServiceImpl extends Object implements ExecutionModificationService
| Constructor and Description |
|---|
ExecutionModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteExecution(org.squashtest.tm.domain.execution.Execution execution)
that method should delete the execution.
|
boolean |
exists(long id) |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.execution.Execution>> |
findAllByTestCaseId(long testCaseId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
Fetches all the executions which ran a given test case and matching the given paging and sorting instructions.
|
List<org.squashtest.tm.domain.execution.Execution> |
findAllByTestCaseIdOrderByRunDate(long testCaseId,
org.squashtest.tm.core.foundation.collection.Paging paging) |
org.squashtest.tm.domain.execution.Execution |
findAndInitExecution(Long executionId) |
org.squashtest.tm.domain.execution.Execution |
findById(long id) |
int |
findExecutionRank(Long executionId) |
org.squashtest.tm.domain.execution.ExecutionStep |
findExecutionStepById(long id) |
List<org.squashtest.tm.domain.execution.ExecutionStep> |
findExecutionSteps(long executionId) |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.execution.ExecutionStep>> |
findExecutionSteps(long executionId,
org.squashtest.tm.core.foundation.collection.Paging filter)
Steps methods
|
void |
setExecutionDescription(Long executionId,
String description) |
void |
setExecutionStatus(Long executionId,
org.squashtest.tm.domain.execution.ExecutionStatus status) |
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.
|
long |
updateSteps(long executionId) |
public org.squashtest.tm.domain.execution.Execution findAndInitExecution(Long executionId)
findAndInitExecution in interface ExecutionModificationService@PreAuthorize(value="hasPermission(#executionId, \'org.squashtest.tm.domain.execution.Execution\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public void setExecutionDescription(Long executionId, String description)
setExecutionDescription in interface ExecutionModificationServicepublic List<org.squashtest.tm.domain.execution.ExecutionStep> findExecutionSteps(long executionId)
findExecutionSteps in interface ExecutionFinderpublic int findExecutionRank(Long executionId)
findExecutionRank in interface ExecutionFinder@PreAuthorize(value="hasPermission(#executionStepId, \'org.squashtest.tm.domain.execution.ExecutionStep\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public void setExecutionStepComment(Long executionStepId, String comment)
setExecutionStepComment in interface ExecutionModificationServicepublic org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.execution.ExecutionStep>> findExecutionSteps(long executionId, org.squashtest.tm.core.foundation.collection.Paging filter)
ExecutionModificationServicefindExecutionSteps in interface ExecutionModificationService@PreAuthorize(value="hasPermission(#execId, \'org.squashtest.tm.domain.execution.Execution\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public List<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
ExecutionModificationServicesimulateExecutionDeletion in interface ExecutionModificationService@PreAuthorize(value="hasPermission(#execution, \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public void deleteExecution(org.squashtest.tm.domain.execution.Execution execution)
ExecutionModificationServicedeleteExecution in interface ExecutionModificationServicepublic org.squashtest.tm.domain.execution.Execution findById(long id)
findById in interface ExecutionFinderpublic org.squashtest.tm.domain.execution.ExecutionStep findExecutionStepById(long id)
findExecutionStepById in interface ExecutionFinderpublic List<org.squashtest.tm.domain.execution.Execution> findAllByTestCaseIdOrderByRunDate(long testCaseId, org.squashtest.tm.core.foundation.collection.Paging paging)
findAllByTestCaseIdOrderByRunDate in interface ExecutionFinderpublic org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.execution.Execution>> findAllByTestCaseId(long testCaseId, org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
ExecutionFinderfindAllByTestCaseId in interface ExecutionFinderpas - Paging and sorting data, should not be nullPagedCollectionHolder holding the results. Should never return nullpublic boolean exists(long id)
exists in interface ExecutionFinder@PreAuthorize(value="hasPermission(#executionId, \'org.squashtest.tm.domain.execution.Execution\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public void setExecutionStatus(Long executionId, org.squashtest.tm.domain.execution.ExecutionStatus status)
setExecutionStatus in interface ExecutionModificationServicepublic long updateSteps(long executionId)
updateSteps in interface ExecutionModificationServiceexecutionId - the execution to be updatedCopyright © 2010–2017 Henix, henix.fr. All rights reserved.