diff options
author | hekeguang <hekeguang@chinamobile.com> | 2020-02-18 16:26:57 +0800 |
---|---|---|
committer | hekeguang <hekeguang@chinamobile.com> | 2020-02-18 16:27:40 +0800 |
commit | fbd492a221687261a81575b9179638de2383deb2 (patch) | |
tree | f2b5084632109b8a43bece4e60362b1eed7de312 | |
parent | 53173bfe63d1db4afaf59b79c2bc52c3b4b39269 (diff) |
Add the bean definition related to CSMF
Issue-ID: USECASEUI-368
Change-Id: Iedf588cf03e34f5caac0ed1acca50a9851ea2bf4
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
9 files changed, 283 insertions, 0 deletions
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 index 00000000..81aafdd7 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationParameters.java @@ -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 index 00000000..ccb422c7 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequest.java @@ -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 index 00000000..9562e489 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputs.java @@ -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 index 00000000..f132aa6b --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/CreationService.java @@ -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 index 00000000..2a930057 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderInfo.java @@ -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 index 00000000..a57f1b8e --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/OrderList.java @@ -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 index 00000000..ee8c7084 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResult.java @@ -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 index 00000000..6989fcc9 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrder.java @@ -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 index 00000000..fa01f7d4 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetail.java @@ -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; +} |