aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/properties/Features.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/properties/Features.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/properties/Features.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/properties/Features.java b/vid-app-common/src/main/java/org/onap/vid/properties/Features.java
new file mode 100644
index 00000000..e08a92ea
--- /dev/null
+++ b/vid-app-common/src/main/java/org/onap/vid/properties/Features.java
@@ -0,0 +1,31 @@
+package org.onap.vid.properties;
+
+import org.togglz.core.Feature;
+import org.togglz.core.context.FeatureContext;
+
+public enum Features implements Feature {
+
+ /*******************************
+ * Use /docs/feature-flags.md for details
+ */
+
+ FLAG_ASYNC_JOBS,
+ FLAG_REGION_ID_FROM_REMOTE,
+ CREATE_INSTANCE_TEST,
+ EMPTY_DRAWING_BOARD_TEST,
+ FLAG_ADVANCED_PORTS_FILTER,
+ FLAG_ADD_MSO_TESTAPI_FIELD,
+ FLAG_ASYNC_INSTANTIATION,
+ FLAG_SERVICE_MODEL_CACHE,
+ FLAG_UNASSIGN_SERVICE,
+ FLAG_NETWORK_TO_ASYNC_INSTANTIATION,
+ FLAG_COLLECTION_RESOURCE_SUPPORT,
+ FLAG_SHOW_ASSIGNMENTS,
+ FLAG_SHOW_VERIFY_SERVICE,
+ FLAG_SETTING_DEFAULTS_IN_DRAWING_BOARD;
+
+ public boolean isActive() {
+ return FeatureContext.getFeatureManager().isActive(this);
+ }
+
+}