Class TestPlansService

java.lang.Object
org.qubership.atp.ram.services.CrudService<TestPlan>
org.qubership.atp.ram.services.TestPlansService

@Service public class TestPlansService extends CrudService<TestPlan>
  • Constructor Details

    • TestPlansService

      public TestPlansService()
  • Method Details

    • repository

      protected org.springframework.data.mongodb.repository.MongoRepository<TestPlan,UUID> repository()
      Specified by:
      repository in class CrudService<TestPlan>
    • getTestPlansByProjectUuid

      public List<TestPlan> getTestPlansByProjectUuid(UUID projectUuid)
      Returns list of TestPlans by Project.
    • save

      public TestPlan save(TestPlan testPlan)
      Save TestPlan.
      Overrides:
      save in class CrudService<TestPlan>
    • create

      @Deprecated public TestPlan create(TestPlan testPlan)
      Deprecated.
      Create new test plan. Project ID cannot be null
      Parameters:
      testPlan - for creating
      Returns:
      creating new test plan
    • findTestPlanByProjectUuidAndTestPlanName

      @Deprecated public TestPlan findTestPlanByProjectUuidAndTestPlanName(UUID projectUuid, String testPlanName)
      Deprecated.
      Returns testPlan by ProjectUuid and TestPlan's name.
    • findOrCreateTestPlanByProjectUuidAndTestPlanName

      @Deprecated public TestPlan findOrCreateTestPlanByProjectUuidAndTestPlanName(UUID projectUuid, String testPlanName)
      Deprecated.
      Returns existing TestPlan for provided Project or create new.
    • findOrCreateTestPlanByUuid

      @Deprecated public TestPlan findOrCreateTestPlanByUuid(UUID projectId, UUID testPlanId, String testPlanName)
      Deprecated.
      Return existed test plan or create new.
      Parameters:
      projectId - for set project UUID
      testPlanId - for search
      testPlanName - for set test plan name
      Returns:
      existed or new TestPlan
    • findByTestPlanUuid

      public TestPlan findByTestPlanUuid(UUID testPlanUuid)
      Returns TestPlan by uuid.
    • getRecipients

      public MailRecipients getRecipients(UUID testPlanUuid)
    • saveRecipients

      public void saveRecipients(UUID testPlanUuid, MailRecipients recipients)
      Save recipients for TestPlane.
      Parameters:
      testPlanUuid - UUID of TestPlan
      recipients - MailRecipients which has list of email addresses.
    • getTestPlanName

      public String getTestPlanName(UUID testPlanUuid)
    • getTestPlanForNavigationPath

      public TestPlan getTestPlanForNavigationPath(UUID testPlanUuid)
    • getProjectIdByTestPlanId

      public UUID getProjectIdByTestPlanId(UUID id)
    • findByUuidNameOrCreateNew

      @Deprecated public TestPlan findByUuidNameOrCreateNew(TestPlan testPlan, Project project)
      Deprecated.
      Find existed test plan by UUID/name or create new.
      Parameters:
      testPlan - request for search test plan
      project - for search test plan
      Returns:
      existed or created TestPlan
    • search

      public List<TestPlan> search(TestPlansSearchRequest request)
      Search test plans.