Class ManualRootCauseService

java.lang.Object
org.qubership.atp.ram.services.CrudService<ManualRootCause>
org.qubership.atp.ram.services.ManualRootCauseService

@Service public class ManualRootCauseService extends CrudService<ManualRootCause>
  • Constructor Details

    • ManualRootCauseService

      public ManualRootCauseService()
  • Method Details

    • repository

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

      public List<ManualRootCause> getManualRootCauseByProjectUuid(UUID projectUuid, boolean withRootCauseName)
      Get all manual root causes with root cause ids or root cause names.
      Parameters:
      projectUuid - - project id
      withRootCauseName - - get names if true
      Returns:
      all manual root causes
    • findByUuid

      public ManualRootCause findByUuid(UUID uuid)
    • deleteByUuid

      public void deleteByUuid(UUID uuid)
    • getProjectIdByManualRootCauseId

      public UUID getProjectIdByManualRootCauseId(UUID uuid)