From 3dff1c221e58de6a81cf6bbdfb84fdf97665e484 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Thu, 23 Mar 2023 11:52:27 +0000 Subject: Support to change substitution mapping node or version after service creation Before changing check for service property usage in sub mapping node change Issue-ID: SDC-4439 Issue-ID: SDC-4430 Signed-off-by: JvD_Ericsson Change-Id: Ia0f24c626ac836f0b4e7ffbe0004e7ab30089b25 --- .../org/openecomp/sdc/be/datatypes/elements/ToscaFunctionType.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common-be/src/main/java') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionType.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionType.java index 2636c4f6d7..450c7d0d94 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionType.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionType.java @@ -46,4 +46,9 @@ public enum ToscaFunctionType { } return Arrays.stream(values()).filter(toscaFunctionType -> toscaFunctionType.getName().equalsIgnoreCase(functionType)).findFirst(); } + + public static boolean isGetFunction(final ToscaFunctionType functionType) { + return GET_INPUT.equals(functionType) || GET_PROPERTY.equals(functionType) || GET_ATTRIBUTE.equals(functionType); + } + } -- cgit 1.2.3-korg