diff --git a/CHANGELOG.md b/CHANGELOG.md index 4426a7be7..aadcf2980 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,20 +10,19 @@ _**For better traceability add the corresponding GitHub issue number in each cha ### Added - ### Fixed +- Access and Usage Policy Validation flow correction. #757 ### Changed -- Replaced technical error message when trying to delete the configured default policy with a user-friendly message. +- Replaced technical error message when trying to delete the configured default policy with a user-friendly message. ## [5.2.0] - 2024-07-03 ### Fixed -- Access and Usage Policy Validation flow correction. #757 - Fixed ESS Investigation job processing not starting. #579 - Policy store API returns 'rightOperand' without 'odrl:' prefix now (see traceability-foss/issues/970). - Fixed trivy workflow to fail only on CRITICAL, HIGH (according to https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/pull/949/files). diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java index 65780fd3a..9019a0476 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java @@ -29,7 +29,6 @@ import java.time.OffsetDateTime; import java.util.AbstractMap; import java.util.ArrayList; -import java.util.Collection; import java.util.Comparator; import java.util.LinkedList; import java.util.List; @@ -290,14 +289,6 @@ private static Stream sortByPolicyId(final List policies) { return result.stream(); } - private List getAllPolicies() { - return getAllStoredPolicies().values() - .stream() - .flatMap(Collection::stream) - .map(this::toAcceptedPolicy) - .toList(); - } - private AcceptedPolicy toAcceptedPolicy(final Policy policy) { return new AcceptedPolicy(policy, policy.getValidUntil()); }