Class AkbRecordsService

java.lang.Object
org.qubership.atp.ram.services.CrudService<AkbRecord>
org.qubership.atp.ram.services.AkbRecordsService

@Service public class AkbRecordsService extends CrudService<AkbRecord>
  • Constructor Details

    • AkbRecordsService

      public AkbRecordsService()
  • Method Details

    • repository

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

      public List<AkbRecord> getRecordsByProjectUuid(UUID projectUuid, boolean withRootCauseName)
      Get all akb records with root cause ids or root cause names.
      Parameters:
      projectUuid - - project id
      withRootCauseName - - get names if true
      Returns:
      all akb records
    • removeDefectFromAkbRecord

      public void removeDefectFromAkbRecord(UUID defectUuid)
      Remove defectUuid from AKB records.
      Parameters:
      defectUuid - for removed
    • getAllWithRootCauseName

      public List<AkbRecord> getAllWithRootCauseName()
      To get all akb records with root cause names.
      Returns:
      list of akb records
    • getProjectIdByAkbRecordId

      public UUID getProjectIdByAkbRecordId(UUID id)
    • findByUuid

      public AkbRecord findByUuid(UUID uuid)
    • deleteByUuid

      public void deleteByUuid(UUID uuid)