From 4d47aed0768ea661ec8ad810968895837f22b036 Mon Sep 17 00:00:00 2001 From: ashanmugavel Date: Tue, 23 Jul 2024 11:07:08 +0200 Subject: [PATCH] chore[1194]: updated response --- .../application/service/PolicyService.java | 1 + .../policies/response/OperatorResponse.java | 21 ++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/policies/application/service/PolicyService.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/policies/application/service/PolicyService.java index 3891f5964d..8e51666d4f 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/policies/application/service/PolicyService.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/policies/application/service/PolicyService.java @@ -31,6 +31,7 @@ public interface PolicyService { List getPolicies(); Map> getIrsPolicies(); + PolicyResponse getPolicy(String id); CreatePolicyResponse createPolicy(RegisterPolicyRequest registerPolicyRequest); diff --git a/tx-models/src/main/java/policies/response/OperatorResponse.java b/tx-models/src/main/java/policies/response/OperatorResponse.java index 3a10e74b50..08459f9b8c 100644 --- a/tx-models/src/main/java/policies/response/OperatorResponse.java +++ b/tx-models/src/main/java/policies/response/OperatorResponse.java @@ -1,3 +1,21 @@ +/******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ package policies.response; import com.fasterxml.jackson.annotation.JsonAlias; @@ -5,6 +23,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import lombok.Builder; import org.eclipse.tractusx.irs.edc.client.policy.OperatorType; +import policies.response.OperatorTypeResponse; import java.util.Arrays; @Builder @@ -15,7 +34,7 @@ public record OperatorResponse( implementation = OperatorType.class, example = "odrl:eq" ) - OperatorTypeResponse operatorType + OperatorTypeResponse operatorType ) { public static OperatorType toDomain(OperatorTypeResponse operatorTypeResponse) { if (operatorTypeResponse == null) {