|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.CustomTestSuiteModificationServiceImpl
@Service(value="CustomTestSuiteModificationService") public class CustomTestSuiteModificationServiceImpl
| Constructor Summary | |
|---|---|
CustomTestSuiteModificationServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
bindTestPlan(long suiteId,
List<Long> itemTestPlanIds)
That method will attach several IterationTestPlanItem to the given TestSuite. |
void |
bindTestPlanObj(TestSuite testSuite,
List<IterationTestPlanItem> itemTestPlans)
That method will attach several IterationTestPlanItem to the given TestSuite. |
void |
changeTestPlanPosition(Long testSuiteId,
int newIndex,
List<Long> itemIds)
|
AutomatedSuite |
createAutomatedSuite(long suiteId)
Create an automated execution for every automated item test plan in the given test-suite, group them in an automated suite and tells the connector to process them. |
List<IterationTestPlanItem> |
filterTestSuiteByUser(List<IterationTestPlanItem> testPlanItems,
String userLogin,
Long projectId)
|
TestSuite |
findById(long suiteId)
That method will find the test Suite by its ID |
TestPlanStatistics |
findTestSuiteStatistics(long suiteId)
That method will retrieve the data and fill the testSuiteStatistics DTO. |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IterationTestPlanItem>> |
findTestSuiteTestPlan(long suiteId,
org.squashtest.tm.core.foundation.collection.Paging paging)
That method will retrieve the test plan items attached to a given test suite. |
void |
rename(long suiteId,
String newName)
That method will update the name of the suite with newName, identified by suiteId. |
void |
setUserAccountService(UserAccountService service)
|
void |
unbindTestPlanObj(TestSuite testSuite,
List<IterationTestPlanItem> itemTestPlans)
That method will detach several IterationTestPlanItem from the given TestSuite. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomTestSuiteModificationServiceImpl()
| Method Detail |
|---|
@ServiceReference public void setUserAccountService(UserAccountService service)
@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long suiteId,
String newName)
throws DuplicateNameException
CustomTestSuiteModificationServiceDuplicateNameException
if the suite could not rename itself due to name already used by another suite from the same owning Iteration (as as spec of TestSuite).
rename in interface CustomTestSuiteModificationServiceDuplicateNameException
@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\', \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void bindTestPlan(long suiteId,
List<Long> itemTestPlanIds)
CustomTestSuiteModificationServiceThat method will attach several IterationTestPlanItem to the given TestSuite. As usual, they
are identified using their Ids. Since a given item can be bound to at most one test suite, the item
be deassociated from its former TestSuite.
The implementation must also check that all these entities all belong to the same iteration or throw an unchecked exception if not. TODO : define that exception.
bindTestPlan in interface CustomTestSuiteModificationService
@PreAuthorize(value="hasPermission(#testSuite, \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void bindTestPlanObj(TestSuite testSuite,
List<IterationTestPlanItem> itemTestPlans)
CustomTestSuiteModificationServiceThat method will attach several IterationTestPlanItem to the given TestSuite. They
are identified using their Objects. Since a given item can be bound to at most one test suite, the item
be deassociated from its former TestSuite.
These entities all belong to the same iteration since they have previously been attached to it.
bindTestPlanObj in interface CustomTestSuiteModificationService
@PreAuthorize(value="hasPermission(#testSuite, \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void unbindTestPlanObj(TestSuite testSuite,
List<IterationTestPlanItem> itemTestPlans)
CustomTestSuiteModificationServiceThat method will detach several IterationTestPlanItem from the given TestSuite. They
are identified using their Objects. Since a given item can be bound to at most one test suite, the item
be deassociated from its former TestSuite.
These entities all belong to the same iteration since they have previously been attached to it.
unbindTestPlanObj in interface CustomTestSuiteModificationService@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')") public TestSuite findById(long suiteId)
TestSuiteFinder
findById in interface TestSuiteFinder
@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IterationTestPlanItem>> findTestSuiteTestPlan(long suiteId,
org.squashtest.tm.core.foundation.collection.Paging paging)
CustomTestSuiteModificationServiceThat method will retrieve the test plan items attached to a given test suite.
findTestSuiteTestPlan in interface CustomTestSuiteModificationService@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')") public TestPlanStatistics findTestSuiteStatistics(long suiteId)
CustomTestSuiteModificationServiceThat method will retrieve the data and fill the testSuiteStatistics DTO.
findTestSuiteStatistics in interface CustomTestSuiteModificationService
@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\',\'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void changeTestPlanPosition(Long testSuiteId,
int newIndex,
List<Long> itemIds)
changeTestPlanPosition in interface CustomTestSuiteModificationService@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.csp.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public AutomatedSuite createAutomatedSuite(long suiteId)
CustomTestSuiteModificationService
createAutomatedSuite in interface CustomTestSuiteModificationServiceAutomatedSuite
public List<IterationTestPlanItem> filterTestSuiteByUser(List<IterationTestPlanItem> testPlanItems,
String userLogin,
Long projectId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||