aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java17
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java1
2 files changed, 18 insertions, 0 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
index 91f158a164..766825cdbe 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
@@ -20,6 +20,7 @@
package org.openecomp.sdc.common.api;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
@@ -182,4 +183,20 @@ public enum ArtifactTypeEnum {
return new HashSet<>(artifactTypeEnums);
}
+ public static String findType(final String type) {
+ for (final ArtifactTypeEnum ate : ArtifactTypeEnum.values()) {
+ if (ate.getType().equalsIgnoreCase(type)) {
+ return type;
+ }
+ }
+ return null;
+ }
+
+ public static List<String> getAllTypes() {
+ final List<String> types = new ArrayList<>();
+ for (final ArtifactTypeEnum ate : ArtifactTypeEnum.values()) {
+ types.add(ate.getType());
+ }
+ return types;
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java
index d11cc02d86..340b198460 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java
@@ -88,6 +88,7 @@ public final class Constants {
public static final String TOSCA_META_PATH = "TOSCA-Metadata/TOSCA.meta";
public static final String TOSCA_META_ENTRY_DEFINITIONS = "Entry-Definitions";
public static final String USER_DEFINED_RESOURCE_NAMESPACE_PREFIX = "org.openecomp.resource.";
+ public static final String USER_DEFINED_SERVICE_NAMESPACE_PREFIX = "org.openecomp.service.";
public static final String IS_BASE = "isBase";
public static final String HEAT_FILE_PROPS = "heat_file";