Skip to content

Commit

Permalink
fix: DDCCGW-666 and DDCCGW-695 (#43)
Browse files Browse the repository at this point in the history
* commit: DDCCGW-666 and DDCCGW-695

* commit: DDCCGW-666 and DDCCGW-695

* commit:vulnerability resolved for spring-web-6.1.6

* commit: vulnerability resolved updated dependency spring-web-6.1.6 to spring-web-6.1.12
  • Loading branch information
dattatrayamote authored Aug 22, 2024
1 parent 299b6fb commit e640777
Show file tree
Hide file tree
Showing 5 changed files with 221 additions and 54 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>6.1.6</version>
<version>6.1.12</version>
</dependency>

<!-- Persistence Dependencies -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public interface SignerInformationRepository extends JpaRepository<SignerInforma

List<SignerInformationEntity> getByDomainIsAndCountryIs(String domain, String country);

List<SignerInformationEntity> findByCountryIn(List<String> country);

List<SignerInformationEntity> findByGroupIn(List<String> group);

List<SignerInformationEntity> getByCountryIsAndGroupIs(String country, String group);

List<SignerInformationEntity> getByCountryIsAndGroupIsAndKidIs(String country, String group, String kid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,23 @@ public List<SignerInformationEntity> getCertificatesByCountry(String country) {
return signerInformationRepository.getByCountryIs(country);
}

public List<SignerInformationEntity> getCertificatesByAllCountries(List<String> countries) {

return signerInformationRepository.findByCountryIn(countries);
}

public List<SignerInformationEntity> getCertificatesByAllGroups(List<String> groups) {

return signerInformationRepository.findByGroupIn(groups);
}
/**
* Returns signer information that are filtered by domain and participant.
*
* @param domain a domain name used as filter
* @param country a participant aka country code, used as filter
* @return matching SignerInformationEntities
*/

public List<SignerInformationEntity> getCertificatesByCountryDomain(String country, String domain) {

return signerInformationRepository.getByDomainIsAndCountryIs(domain, country);
Expand Down
Loading

0 comments on commit e640777

Please sign in to comment.