Skip to content

Commit

Permalink
feature: 420 fix bean discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-lcapellino committed Mar 1, 2024
1 parent bd0f106 commit ed81601
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@
* EdcContractAgreementService used for contract agreements and contract agreement negotiation details
*/
@Slf4j
@RequiredArgsConstructor
@Service("irsEdcClientEdcContractAgreementService")
public class EdcContractAgreementService {

public static final String EDC_REQUEST_SUFFIX = "/request";
public static final String EDC_ASSET_ID = "https://w3id.org/edc/v0.0.1/ns/assetId";
public static final String EDC_CONTRACT_AGREEMENT_ID = "https://w3id.org/edc/v0.0.1/ns/id";
private final EdcConfiguration config;
private final @Qualifier("edcClientRestTemplate") RestTemplate edcRestTemplate;
private final RestTemplate edcRestTemplate;

public EdcContractAgreementService(final EdcConfiguration config,
@Qualifier("edcClientRestTemplate") final RestTemplate edcRestTemplate) {
this.config = config;
this.edcRestTemplate = edcRestTemplate;
}

public List<ContractAgreement> getContractAgreements(final String... contractAgreementIds)
throws ContractAgreementException {
Expand Down Expand Up @@ -89,7 +94,7 @@ private EdcContractAgreementRequest buildContractAgreementRequest(final String..

final List<EdcContractAgreementFilterExpression> list = Arrays.stream(contractAgreementIds)
.map(s -> new EdcContractAgreementFilterExpression(
EDC_ASSET_ID, "=", s))
EDC_CONTRACT_AGREEMENT_ID, "=", s))
.toList();

return new EdcContractAgreementRequest(list);
Expand Down

0 comments on commit ed81601

Please sign in to comment.