Add the bean definition related to CSMF 74/101874/1
authorhekeguang <hekeguang@chinamobile.com>
Tue, 18 Feb 2020 08:26:57 +0000 (16:26 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Tue, 18 Feb 2020 08:27:40 +0000 (16:27 +0800)
Issue-ID: USECASEUI-368
Change-Id: Iedf588cf03e34f5caac0ed1acca50a9851ea2bf4
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationParameters.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequest.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputs.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderInfo.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderList.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResult.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrder.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetail.java [new file with mode: 0644]

diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationParameters.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationParameters.java
new file mode 100644 (file)
index 0000000..81aafdd
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class CreationParameters {
+    private CreationRequestInputs requestInputs;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequest.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequest.java
new file mode 100644 (file)
index 0000000..ccb422c
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class CreationRequest {
+    private CreationService service;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputs.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputs.java
new file mode 100644 (file)
index 0000000..9562e48
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class CreationRequestInputs {
+    private Integer expDataRateDL;
+    private Integer expDataRateUL;
+    private Integer latency;
+    private Integer maxNumberofUEs;
+    private String uemobilityLevel;
+    private String resourceSharingLevel;
+    private String coverageAreaList;
+    private String useInterval;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationService.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationService.java
new file mode 100644 (file)
index 0000000..f132aa6
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class CreationService {
+    private String name;
+
+    private String description;
+
+    private String serviceInvariantUuid;
+
+    private String serviceUuid;
+
+    private String globalSubscriberId;
+
+    private String serviceType;
+
+    private CreationParameters parameters;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderInfo.java
new file mode 100644 (file)
index 0000000..2a93005
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class OrderInfo {
+    private String order_index;
+    private String order_id;
+    private String order_name;
+    private String order_creation_time;
+    private String service_snssai;
+    private String order_status;
+    private String last_operation_type;
+    private String last_operation_progress;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderList.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderList.java
new file mode 100644 (file)
index 0000000..a57f1b8
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * 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.bean.csmf;
+
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class OrderList {
+
+    private int record_number;
+    private List<OrderInfo> slicing_order_list;
+
+    public OrderList() {
+    }
+
+    public OrderList(int record_number, List<OrderInfo> slicing_order_list) {
+        this.record_number = record_number;
+        this.slicing_order_list = slicing_order_list;
+    }
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResult.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResult.java
new file mode 100644 (file)
index 0000000..ee8c708
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class ServiceCreateResult {
+    private String service_id;
+    private String operation_id;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrder.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrder.java
new file mode 100644 (file)
index 0000000..6989fcc
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * 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.bean.csmf;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class SlicingOrder {
+
+    private SlicingOrderDetail slicing_order_info;
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetail.java b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetail.java
new file mode 100644 (file)
index 0000000..fa01f7d
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * 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.bean.csmf;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class SlicingOrderDetail {
+
+    private String name;
+
+    private Integer expDataRateDL;
+
+    private Integer expDataRateUL;
+
+    private Integer latency;
+
+    private Integer maxNumberofUEs;
+
+    @JsonProperty("uEMobilityLevel")
+    private String uEMobilityLevel;
+
+    private String resourceSharingLevel;
+
+    private String coverageArea;
+
+    private String useInterval;
+}