mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-27 23:00:39 +00:00
Test repository change
This commit is contained in:
parent
9fdc8b1bcb
commit
951224abd0
@ -1,5 +1,6 @@
|
|||||||
package hirs.attestationca.persist.entity.manager;
|
package hirs.attestationca.persist.entity.manager;
|
||||||
|
|
||||||
|
import hirs.attestationca.persist.entity.userdefined.Device;
|
||||||
import hirs.attestationca.persist.entity.userdefined.SupplyChainValidationSummary;
|
import hirs.attestationca.persist.entity.userdefined.SupplyChainValidationSummary;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
@ -9,4 +10,5 @@ import java.util.UUID;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface SupplyChainValidationSummaryRepository extends JpaRepository<SupplyChainValidationSummary, UUID> {
|
public interface SupplyChainValidationSummaryRepository extends JpaRepository<SupplyChainValidationSummary, UUID> {
|
||||||
SupplyChainValidationSummary findByDevice(String device);
|
SupplyChainValidationSummary findByDevice(String device);
|
||||||
|
SupplyChainValidationSummary findByDevice(Device device);
|
||||||
}
|
}
|
||||||
|
@ -359,7 +359,8 @@ public class SupplyChainValidationService {
|
|||||||
// Generate validation summary, save it, and return it.
|
// Generate validation summary, save it, and return it.
|
||||||
List<SupplyChainValidation> validations = new ArrayList<>();
|
List<SupplyChainValidation> validations = new ArrayList<>();
|
||||||
SupplyChainValidationSummary previous
|
SupplyChainValidationSummary previous
|
||||||
= this.supplyChainValidationSummaryRepository.findByDevice(deviceName);
|
//= this.supplyChainValidationSummaryRepository.findByDevice(deviceName);
|
||||||
|
= this.supplyChainValidationSummaryRepository.findByDevice(device);
|
||||||
for (SupplyChainValidation scv : previous.getValidations()) {
|
for (SupplyChainValidation scv : previous.getValidations()) {
|
||||||
if (scv.getValidationType() != SupplyChainValidation.ValidationType.FIRMWARE) {
|
if (scv.getValidationType() != SupplyChainValidation.ValidationType.FIRMWARE) {
|
||||||
validations.add(ValidationService.buildValidationRecord(scv.getValidationType(),
|
validations.add(ValidationService.buildValidationRecord(scv.getValidationType(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user