Add nsmf related constant definition 40/101940/1
authorhekeguang <hekeguang@chinamobile.com>
Wed, 19 Feb 2020 02:25:47 +0000 (10:25 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Wed, 19 Feb 2020 02:26:06 +0000 (10:26 +0800)
Issue-ID: USECASEUI-374
Change-Id: I659c6e626cb6631da3802e5ba2cf58a09c36b2c2
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
server/src/main/java/org/onap/usecaseui/server/constant/csmf/CsmfParamConstant.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/constant/nsmf/NsmfCodeConstant.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/constant/nsmf/NsmfParamConstant.java [new file with mode: 0644]

diff --git a/server/src/main/java/org/onap/usecaseui/server/constant/csmf/CsmfParamConstant.java b/server/src/main/java/org/onap/usecaseui/server/constant/csmf/CsmfParamConstant.java
new file mode 100644 (file)
index 0000000..57642cd
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2020 CMCC, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://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.
+ */
+package org.onap.usecaseui.server.constant.csmf;
+
+public class CsmfParamConstant {
+    public static final String COMMUNICATION_SERVICE = "communication-service";
+
+    public static final String E2ESLICE_SERVICE = "e2eslice-service";
+
+    public static final String ALL = "all";
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/constant/nsmf/NsmfCodeConstant.java b/server/src/main/java/org/onap/usecaseui/server/constant/nsmf/NsmfCodeConstant.java
new file mode 100644 (file)
index 0000000..d52ff33
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://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.
+ */
+package org.onap.usecaseui.server.constant.nsmf;
+
+public class NsmfCodeConstant {
+    public static final String SUCCESS_CODE = "200";
+
+    public static final String ERROR_CODE_UNKNOWN = "500";
+
+    public static final int RESOURCE_NOT_FOUND_CODE = 404;
+
+    public static final String ACTIVATE_TYPE = "activate";
+
+    public static final String DEACTIVATE_TYPE = "deactivate";
+
+    public static final String DELETE_TYPE = "delete";
+
+    public static final String OPERATION_ERROR_STATUS = "error";
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/constant/nsmf/NsmfParamConstant.java b/server/src/main/java/org/onap/usecaseui/server/constant/nsmf/NsmfParamConstant.java
new file mode 100644 (file)
index 0000000..8f212d4
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://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.
+ */
+package org.onap.usecaseui.server.constant.nsmf;
+
+public class NsmfParamConstant {
+    public static final String CUSTOM_5G = "5GCustomer";
+
+    public static final String SERVICE_TYPE_5G = "5G";
+
+    public static final String SERVICE_INSTANCE = "service-instance";
+
+    public static final String ALLOTTED_RESOURCE = "allotted-resource";
+
+    public static final String  SERVICE_INSTANCE_SERVICE_INSTANCE_ID = "service-instance.service-instance-id";
+
+    public static final String AN_NAME = "an";
+
+    public static final String TN_NAME = "tn";
+
+    public static final String CN_NAME = "cn";
+
+    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
+
+    public static final String SPACE = " ";
+}