org.squashtest.tm.service.internal.testcase
Class TestCaseImportanceManagerServiceImpl

java.lang.Object
  extended by org.squashtest.tm.service.internal.testcase.TestCaseImportanceManagerServiceImpl
All Implemented Interfaces:
TestCaseImportanceManagerService

@Service
@Transactional
public class TestCaseImportanceManagerServiceImpl
extends Object
implements TestCaseImportanceManagerService


Constructor Summary
TestCaseImportanceManagerServiceImpl()
           
 
Method Summary
 void changeImportanceIfCallStepAddedToTestCases(org.squashtest.tm.domain.testcase.TestCase calledTestCase, org.squashtest.tm.domain.testcase.TestCase parentTestCase)
           will compute and update the importance of the parent testCase if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.
 void changeImportanceIfCallStepRemoved(org.squashtest.tm.domain.testcase.TestCase calledTestCase, org.squashtest.tm.domain.testcase.TestCase parentTestCase)
           will compute and update the importance of the parent test case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.
 void changeImportanceIfIsAuto(long testCaseId)
           will compute and update the importance of the testCase if it's importanceAuto == true.
 void changeImportanceIfRelationRemoved(org.squashtest.tm.domain.testcase.TestCaseImportance maxReqCritImportance, org.squashtest.tm.domain.testcase.TestCase testCase)
           will compute and update the importance of the test case and it's parents given the removal of requirements
 void changeImportanceIfRelationsAddedToReq(List<org.squashtest.tm.domain.testcase.TestCase> testCases, org.squashtest.tm.domain.requirement.RequirementVersion requirementVersion)
           will compute and update the importance of each test-case of the list
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".
 void changeImportanceIfRelationsAddedToTestCase(List<org.squashtest.tm.domain.requirement.RequirementVersion> requirementVersions, org.squashtest.tm.domain.testcase.TestCase testCase)
           will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.
 void changeImportanceIfRelationsRemovedFromReq(List<Long> testCasesIds, long requirementVersionId)
           will compute and update the importance of the test-cases if their importance is auto
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".
 void changeImportanceIfRelationsRemovedFromTestCase(List<Long> requirementsVersionIds, long testCaseId)
           will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.
 void changeImportanceIfRequirementCriticalityChanged(long requirementVersionId, org.squashtest.tm.domain.requirement.RequirementCriticality oldRequirementCriticality)
           will update the importance of any directly associated test-case if it's importanceAuto = true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseImportanceManagerServiceImpl

public TestCaseImportanceManagerServiceImpl()
Method Detail

changeImportanceIfIsAuto

public void changeImportanceIfIsAuto(long testCaseId)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the testCase if it's importanceAuto == true.

Specified by:
changeImportanceIfIsAuto in interface TestCaseImportanceManagerService
See Also:
TestCaseImportanceManagerService.changeImportanceIfIsAuto(long)

changeImportanceIfRelationsAddedToReq

public void changeImportanceIfRelationsAddedToReq(List<org.squashtest.tm.domain.testcase.TestCase> testCases,
                                                  org.squashtest.tm.domain.requirement.RequirementVersion requirementVersion)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of each test-case of the list
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".

Specified by:
changeImportanceIfRelationsAddedToReq in interface TestCaseImportanceManagerService
Parameters:
testCases - list of test-cases added to the requirement
See Also:
TestCaseImportanceManagerService.changeImportanceIfRelationsAddedToReq(List, RequirementVersion)

changeImportanceIfRelationsAddedToTestCase

public void changeImportanceIfRelationsAddedToTestCase(List<org.squashtest.tm.domain.requirement.RequirementVersion> requirementVersions,
                                                       org.squashtest.tm.domain.testcase.TestCase testCase)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.

Specified by:
changeImportanceIfRelationsAddedToTestCase in interface TestCaseImportanceManagerService
See Also:
org.squashtest.tm.service.testcase.TestCaseImportanceManagerService#changeImportanceIfRelationsAddedToTestCases(List, TestCase)

changeImportanceIfRelationsRemovedFromReq

public void changeImportanceIfRelationsRemovedFromReq(List<Long> testCasesIds,
                                                      long requirementVersionId)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the test-cases if their importance is auto
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".

Specified by:
changeImportanceIfRelationsRemovedFromReq in interface TestCaseImportanceManagerService
See Also:
TestCaseImportanceManagerService.changeImportanceIfRelationsRemovedFromReq(List, long)

changeImportanceIfRelationRemoved

public void changeImportanceIfRelationRemoved(org.squashtest.tm.domain.testcase.TestCaseImportance maxReqCritImportance,
                                              org.squashtest.tm.domain.testcase.TestCase testCase)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the test case and it's parents given the removal of requirements

Specified by:
changeImportanceIfRelationRemoved in interface TestCaseImportanceManagerService
Parameters:
maxReqCritImportance - is the testCaseImportance that is computed out of the list of removed requirements
testCase - the test case where the requirements are removed from
See Also:
TestCaseImportanceManagerService.changeImportanceIfRelationRemoved(TestCaseImportance, TestCase)

changeImportanceIfRelationsRemovedFromTestCase

public void changeImportanceIfRelationsRemovedFromTestCase(List<Long> requirementsVersionIds,
                                                           long testCaseId)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.

Specified by:
changeImportanceIfRelationsRemovedFromTestCase in interface TestCaseImportanceManagerService
See Also:
TestCaseImportanceManagerService.changeImportanceIfRelationsRemovedFromTestCase(List, long)

changeImportanceIfRequirementCriticalityChanged

public void changeImportanceIfRequirementCriticalityChanged(long requirementVersionId,
                                                            org.squashtest.tm.domain.requirement.RequirementCriticality oldRequirementCriticality)
Description copied from interface: TestCaseImportanceManagerService

will update the importance of any directly associated test-case if it's importanceAuto = true.
takes also care of test-cases calling the directly associated ones.
this method must be called before the modification of criticality

Specified by:
changeImportanceIfRequirementCriticalityChanged in interface TestCaseImportanceManagerService
See Also:
TestCaseImportanceManagerService.changeImportanceIfRequirementCriticalityChanged(long, RequirementCriticality)

changeImportanceIfCallStepAddedToTestCases

public void changeImportanceIfCallStepAddedToTestCases(org.squashtest.tm.domain.testcase.TestCase calledTestCase,
                                                       org.squashtest.tm.domain.testcase.TestCase parentTestCase)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the parent testCase if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.

Specified by:
changeImportanceIfCallStepAddedToTestCases in interface TestCaseImportanceManagerService
See Also:
TestCaseImportanceManagerService.changeImportanceIfCallStepAddedToTestCases(TestCase, TestCase)

changeImportanceIfCallStepRemoved

public void changeImportanceIfCallStepRemoved(org.squashtest.tm.domain.testcase.TestCase calledTestCase,
                                              org.squashtest.tm.domain.testcase.TestCase parentTestCase)
Description copied from interface: TestCaseImportanceManagerService

will compute and update the importance of the parent test case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.

Specified by:
changeImportanceIfCallStepRemoved in interface TestCaseImportanceManagerService
See Also:
TestCaseImportanceManagerService.changeImportanceIfCallStepRemoved(TestCase, TestCase)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.