Add code to interact with AAI, so and other modules 44/101944/1
authorhekeguang <hekeguang@chinamobile.com>
Wed, 19 Feb 2020 03:45:56 +0000 (11:45 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Wed, 19 Feb 2020 03:46:22 +0000 (11:46 +0800)
Issue-ID: USECASEUI-374
Change-Id: I8c9d09fed1d5edf947baf1b3ddde680d0f357a81
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
25 files changed:
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/SlicServiceInstanceService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/AAISliceService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceAndInstance.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceInstance.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceNST.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceRsp.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelatedToProperty.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/Relationship.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/exception/AAIException.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiBean.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiTotalBandwidth.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiTotalTraffic.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiUserNumber.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService-595b4273.javaoldbuyong [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.javalocal [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/ActivateService.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOTask.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOTaskRsp.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/exception/SOException.java [new file with mode: 0644]

diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/SlicServiceInstanceService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/SlicServiceInstanceService.java
new file mode 100644 (file)
index 0000000..fa5977e
--- /dev/null
@@ -0,0 +1,37 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain;
+
+
+import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceInstance;
+
+import com.alibaba.fastjson.JSONObject;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+
+public interface SlicServiceInstanceService {
+       
+    List<AAIServiceInstance> listService();
+    
+    List<AAIServiceInstance> listServiceNSI();
+    
+    List<AAIServiceInstance> listServiceNSSI();
+    
+    JSONObject getServiceProfiles();
+    
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/AAISliceService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/AAISliceService.java
new file mode 100644 (file)
index 0000000..53cbc4f
--- /dev/null
@@ -0,0 +1,177 @@
+/*
+ * 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.service.slicingdomain.aai;
+
+import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceNST;
+
+import com.alibaba.fastjson.JSONObject;
+
+import retrofit2.Call;
+import retrofit2.http.GET;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+
+public interface AAISliceService {
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=e2eslice-service")
+    Call<JSONObject> listService(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType);
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=e2eslice-service")
+       Call<JSONObject> listServiceByStatus(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Query("orchestration-status") String orchestrationStatus);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}")
+       Call<JSONObject> listServiceById(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String businessId);
+
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=nsi")
+       Call<JSONObject> listServiceNSI(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=nsi")
+       Call<JSONObject> listServiceNSIByStatus(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Query("orchestration-status") String orchestrationStatus);
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=nssi")
+       Call<JSONObject> listServiceNSSI(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType);
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=nssi")
+       Call<JSONObject> listServiceNSSIByStatus(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Query("orchestration-status") String orchestrationStatus);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=nssi")
+       Call<JSONObject> listServiceNSSIByEnv(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Query("environment-context") String environmentContext);
+
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v16/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}/service-profiles")
+       Call<JSONObject> getServiceProfiles(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String serviceInstanceId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}/allotted-resources")
+       Call<JSONObject> queryAllottedResources(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String serviceInstanceId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}")
+       Call<JSONObject> querySerAndSubInsByNSI(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String serviceInstanceId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}")
+       Call<JSONObject> queryNSIByNSSI(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String serviceInstanceId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}")
+       Call<JSONObject> queryOrderByService(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String serviceInstanceId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}")
+       Call<JSONObject> queryOrderByOrderId(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType,@Path("service-instance-id") String serviceInstanceId);
+
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: MSO",
+        "Authorization: Basic QUFJOkFBSQ==",
+        "Accept: application/json"
+       })
+       @GET("/api/aai-sdc/v13/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}")
+       Call<AAIServiceNST> queryServiceNST(@Path("model-invariant-id") String modelInvariantIid,
+                       @Path("model-version-id") String modelVersionId);
+
+       @Headers({
+               "X-TransactionId: 9999",
+               "X-FromAppId: MSO",
+               "Authorization: Basic QUFJOkFBSQ==",
+               "Accept: application/json"
+       })
+       @GET("/api/aai-business/v13/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-role=communication-service")
+       Call<JSONObject> listOrders(@Path("global-customer-id") String globalCustomerId,@Path("service-type") String serviceType);
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIService.java
new file mode 100644 (file)
index 0000000..3541c82
--- /dev/null
@@ -0,0 +1,148 @@
+/**
+ * Copyright 2019 HUAWEI Corporation.
+ *
+ * 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.service.slicingdomain.aai.bean;
+
+import java.io.Serializable;
+
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AAIService implements Serializable{
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -2847142014162429886L;
+
+       private String serviceInstanceId;
+
+       private String serviceInstanceName;
+       
+       private String serviceType;
+       
+       private String serviceRole;
+       
+       private String environmentContext;
+       
+       private String description;
+       
+       private String modelInvariantId;
+       
+       private String modelVersionId;
+
+       private String resourceVersion;
+
+       private String serviceInstanceLocationId;
+       
+       private String orchestrationStatus;
+       
+
+       public String getServiceInstanceId() {
+               return serviceInstanceId;
+       }
+
+       public void setServiceInstanceId(String serviceInstanceId) {
+               this.serviceInstanceId = serviceInstanceId;
+       }
+
+       public String getServiceInstanceName() {
+               return serviceInstanceName;
+       }
+
+       public void setServiceInstanceName(String serviceInstanceName) {
+               this.serviceInstanceName = serviceInstanceName;
+       }
+
+       public String getServiceType() {
+               return serviceType;
+       }
+
+       public void setServiceType(String serviceType) {
+               this.serviceType = serviceType;
+       }
+
+       public String getServiceRole() {
+               return serviceRole;
+       }
+
+       public void setServiceRole(String serviceRole) {
+               this.serviceRole = serviceRole;
+       }
+
+       public String getEnvironmentContext() {
+               return environmentContext;
+       }
+
+       public void setEnvironmentContext(String environmentContext) {
+               this.environmentContext = environmentContext;
+       }
+
+
+       public String getModelInvariantId() {
+               return modelInvariantId;
+       }
+
+       public void setModelInvariantId(String modelInvariantId) {
+               this.modelInvariantId = modelInvariantId;
+       }
+
+       public String getModelVersionId() {
+               return modelVersionId;
+       }
+
+       public void setModelVersionId(String modelVersionId) {
+               this.modelVersionId = modelVersionId;
+       }
+
+       public String getResourceVersion() {
+               return resourceVersion;
+       }
+
+       public String getDescription() {
+               return description;
+       }
+
+       public void setDescription(String description) {
+               this.description = description;
+       }
+
+       public void setResourceVersion(String resourceVersion) {
+               this.resourceVersion = resourceVersion;
+       }
+
+       public String getServiceInstanceLocationId() {
+               return serviceInstanceLocationId;
+       }
+
+       public void setServiceInstanceLocationId(String serviceInstanceLocationId) {
+               this.serviceInstanceLocationId = serviceInstanceLocationId;
+       }
+
+       public String getOrchestrationStatus() {
+               return orchestrationStatus;
+       }
+
+       public void setOrchestrationStatus(String orchestrationStatus) {
+               this.orchestrationStatus = orchestrationStatus;
+       }
+
+       public static long getSerialversionuid() {
+               return serialVersionUID;
+       }
+       
+       
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceAndInstance.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceAndInstance.java
new file mode 100644 (file)
index 0000000..dd6f5c6
--- /dev/null
@@ -0,0 +1,113 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class AAIServiceAndInstance {
+
+    private String serviceInstanceId;
+
+    private String serviceInstanceName;
+
+    private String serviceType;
+
+    private String environmentContext;
+
+    private String modelInvariantId;
+
+    private String modelVersionId;
+
+    private String orchestrationStatus;
+
+    private String workloadContext;
+
+    private List<Relationship> relationshipList;
+
+
+    public String getEnvironmentContext() {
+        return environmentContext;
+    }
+
+    public void setEnvironmentContext(String environmentContext) {
+        this.environmentContext = environmentContext;
+    }
+
+    public String getServiceInstanceId() {
+        return serviceInstanceId;
+    }
+
+    public void setServiceInstanceId(String serviceInstanceId) {
+        this.serviceInstanceId = serviceInstanceId;
+    }
+
+    public String getServiceInstanceName() {
+        return serviceInstanceName;
+    }
+
+    public void setServiceInstanceName(String serviceInstanceName) {
+        this.serviceInstanceName = serviceInstanceName;
+    }
+
+    public String getServiceType() {
+        return serviceType;
+    }
+
+    public void setServiceType(String serviceType) {
+        this.serviceType = serviceType;
+    }
+
+    public String getModelInvariantId() {
+        return modelInvariantId;
+    }
+
+    public void setModelInvariantId(String modelInvariantId) {
+        this.modelInvariantId = modelInvariantId;
+    }
+
+    public String getModelVersionId() {
+        return modelVersionId;
+    }
+
+    public void setModelVersionId(String modelVersionId) {
+        this.modelVersionId = modelVersionId;
+    }
+
+    public String getOrchestrationStatus() {
+        return orchestrationStatus;
+    }
+
+    public void setOrchestrationStatus(String orchestrationStatus) {
+        this.orchestrationStatus = orchestrationStatus;
+    }
+
+    public List<Relationship> getRelationshipList() {
+        return relationshipList;
+    }
+
+    public void setRelationshipList(List<Relationship> relationshipList) {
+        this.relationshipList = relationshipList;
+    }
+
+    public String getWorkloadContext() {
+        return workloadContext;
+    }
+
+    public void setWorkloadContext(String workloadContext) {
+        this.workloadContext = workloadContext;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceInstance.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceInstance.java
new file mode 100644 (file)
index 0000000..0e50f61
--- /dev/null
@@ -0,0 +1,301 @@
+/**
+ * Copyright 2019 HUAWEI Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import java.io.Serializable;
+import java.util.List;
+
+import javax.persistence.Column;
+import javax.persistence.Id;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AAIServiceInstance implements Serializable {
+
+    private static final long serialVersionUID = -2847142014162429886L;
+
+    @JsonProperty("service-instance-id")
+    private String serviceInstanceId;
+
+    @JsonProperty("service-instance-name")
+    private String serviceInstanceName;
+
+    @JsonProperty("service-type")
+    private String serviceType;
+
+    @JsonProperty("service-role")
+    private String serviceRole;
+
+    @JsonProperty("environment-context")
+    private String environmentContext;
+
+    @JsonProperty("description")
+    private String description;
+
+    @JsonProperty("model-invariant-id")
+    private String modelInvariantId;
+
+    @JsonProperty("model-version-id")
+    private String modelVersionId;
+
+    @JsonProperty("resource-version")
+    private String resourceVersion;
+
+    @JsonProperty("service-instance-location-id")
+    private String serviceInstanceLocationId;
+
+    @JsonProperty("orchestration-status")
+    private String orchestrationStatus;
+
+    @JsonProperty("relationship-list")
+    public RelationshipList relationshipList;
+
+
+    public AAIServiceInstance() {
+        super();
+    }
+
+    public String getEnvironmentContext() {
+        return environmentContext;
+    }
+
+    public void setEnvironmentContext(String environmentContext) {
+        this.environmentContext = environmentContext;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getServiceInstanceId() {
+        return serviceInstanceId;
+    }
+
+    public void setServiceInstanceId(String serviceInstanceId) {
+        this.serviceInstanceId = serviceInstanceId;
+    }
+
+    public String getServiceInstanceName() {
+        return serviceInstanceName;
+    }
+
+    public void setServiceInstanceName(String serviceInstanceName) {
+        this.serviceInstanceName = serviceInstanceName;
+    }
+
+    public String getServiceType() {
+        return serviceType;
+    }
+
+    public void setServiceType(String serviceType) {
+        this.serviceType = serviceType;
+    }
+
+    public String getServiceRole() {
+        return serviceRole;
+    }
+
+    public void setServiceRole(String serviceRole) {
+        this.serviceRole = serviceRole;
+    }
+
+    public String getServiceInstanceLocationId() {
+        return serviceInstanceLocationId;
+    }
+
+    public void setServiceInstanceLocationId(String serviceInstanceLocationId) {
+        this.serviceInstanceLocationId = serviceInstanceLocationId;
+    }
+
+    public String getOrchestrationStatus() {
+        return orchestrationStatus;
+    }
+
+    public void setOrchestrationStatus(String orchestrationStatus) {
+        this.orchestrationStatus = orchestrationStatus;
+    }
+
+    public String getModelInvariantId() {
+        return modelInvariantId;
+    }
+
+    public void setModelInvariantId(String modelInvariantId) {
+        this.modelInvariantId = modelInvariantId;
+    }
+
+    public String getModelVersionId() {
+        return modelVersionId;
+    }
+
+    public void setModelVersionId(String modelVersionId) {
+        this.modelVersionId = modelVersionId;
+    }
+
+    public String getResourceVersion() {
+        return resourceVersion;
+    }
+
+    public void setResourceVersion(String resourceVersion) {
+        this.resourceVersion = resourceVersion;
+    }
+
+    public RelationshipList getRelationshipList() {
+        return relationshipList;
+    }
+
+    public void setRelationshipList(RelationshipList relationshipList) {
+        this.relationshipList = relationshipList;
+    }
+
+
+    public class RelationshipList {
+
+        public RelationshipList() {
+            super();
+        }
+
+        @JsonProperty("relationship")
+        public List<Relationship> relationship;
+
+        public List<Relationship> getRelationship() {
+            return relationship;
+        }
+
+        public void setRelationship(List<Relationship> relationship) {
+            this.relationship = relationship;
+        }
+
+    }
+
+    public class Relationship {
+
+        public Relationship() {
+            super();
+        }
+
+        @JsonProperty("related-to")
+        private String relatedTo;
+
+        @JsonProperty("relationship-label")
+        private String relationshipLabel;
+
+        @JsonProperty("related-link")
+        private String relatedLink;
+
+        @JsonProperty("relationship-data")
+        private List<RelationshipData> relationshipData;
+
+        @JsonProperty("related-to-property")
+        private List<RelatedToProperty> relatedToProperty;
+
+        public String getRelatedTo() {
+            return relatedTo;
+        }
+
+        public void setRelatedTo(String relatedTo) {
+            this.relatedTo = relatedTo;
+        }
+
+        public String getRelationshipLabel() {
+            return relationshipLabel;
+        }
+
+        public void setRelationshipLabel(String relationshipLabel) {
+            this.relationshipLabel = relationshipLabel;
+        }
+
+        public String getRelatedLink() {
+            return relatedLink;
+        }
+
+        public void setRelatedLink(String relatedLink) {
+            this.relatedLink = relatedLink;
+        }
+
+        public List<RelationshipData> getRelationshipData() {
+            return relationshipData;
+        }
+
+        public void setRelationshipData(List<RelationshipData> relationshipData) {
+            this.relationshipData = relationshipData;
+        }
+
+        public List<RelatedToProperty> getRelatedToProperty() {
+            return relatedToProperty;
+        }
+
+        public void setRelatedToProperty(List<RelatedToProperty> relatedToProperty) {
+            this.relatedToProperty = relatedToProperty;
+        }
+
+    }
+
+    public class RelationshipData {
+
+        @JsonProperty("relationship-key")
+        private String relationshipKey;
+
+        @JsonProperty("relationship-value")
+        private String relationshipValue;
+
+        public String getRelationshipKey() {
+            return relationshipKey;
+        }
+
+        public void setRelationshipKey(String relationshipKey) {
+            this.relationshipKey = relationshipKey;
+        }
+
+        public String getRelationshipValue() {
+            return relationshipValue;
+        }
+
+        public void setRelationshipValue(String relationshipValue) {
+            this.relationshipValue = relationshipValue;
+        }
+
+    }
+
+    public class RelatedToProperty {
+
+        @JsonProperty("property-key")
+        private String propertyKey;
+
+        @JsonProperty("property-value")
+        private String propertyValue;
+
+        public String getPropertyKey() {
+            return propertyKey;
+        }
+
+        public void setPropertyKey(String propertyKey) {
+            this.propertyKey = propertyKey;
+        }
+
+        public String getPropertyValue() {
+            return propertyValue;
+        }
+
+        public void setPropertyValue(String propertyValue) {
+            this.propertyValue = propertyValue;
+        }
+
+    }
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceNST.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceNST.java
new file mode 100644 (file)
index 0000000..847a1cc
--- /dev/null
@@ -0,0 +1,67 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AAIServiceNST {
+
+    @JsonProperty("model-version-id")
+    private String modelVersionId;
+
+    @JsonProperty("model-name")
+    private String modelName;
+
+    @JsonProperty("model-version")
+    private String modelVersion;
+
+    @JsonProperty("resource-version")
+    private String resourceVersion;
+
+    public String getModelVersionId() {
+        return modelVersionId;
+    }
+
+    public void setModelVersionId(String modelVersionId) {
+        this.modelVersionId = modelVersionId;
+    }
+
+    public String getModelName() {
+        return modelName;
+    }
+
+    public void setModelName(String modelName) {
+        this.modelName = modelName;
+    }
+
+    public String getModelVersion() {
+        return modelVersion;
+    }
+
+    public void setModelVersion(String modelVersion) {
+        this.modelVersion = modelVersion;
+    }
+
+    public String getResourceVersion() {
+        return resourceVersion;
+    }
+
+    public void setResourceVersion(String resourceVersion) {
+        this.resourceVersion = resourceVersion;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java
new file mode 100644 (file)
index 0000000..4338f46
--- /dev/null
@@ -0,0 +1,235 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import javax.persistence.Column;
+import javax.persistence.Id;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AAIServiceProfiles {
+
+    @JsonProperty("profile-id")
+    private String profileId;
+
+    @JsonProperty("latency")
+    private int latency;
+
+    @JsonProperty("max-number-of-UEs")
+    private int maxNumberOfUEs;
+
+    @JsonProperty("coverage-area-TA-list")
+    private String coverageAreaTAList;
+
+    @JsonProperty("ue-mobility-level")
+    private String ueMobilityLevel;
+
+    @JsonProperty("resource-sharing-level")
+    private String resourceSharingLevel;
+
+    @JsonProperty("exp-data-rate-UL")
+    private int expDataRateUL;
+
+    @JsonProperty("exp-data-rate-DL")
+    private int expDataRateDL;
+
+    @JsonProperty("area-traffic-cap-UL")
+    private int areaTrafficCapUL;
+
+    @JsonProperty("area-traffic-cap-DL")
+    private int areaTrafficCapDL;
+
+    @JsonProperty("activity-factor")
+    private int activityFactor;
+
+    @JsonProperty("jitter")
+    private int jitter;
+
+    @JsonProperty("survival-time")
+    private int survivalTime;
+
+    @JsonProperty("cs-availability")
+    private int csAvailability;
+
+    @JsonProperty("reliability")
+    private int reliability;
+
+    @JsonProperty("exp-data-rate")
+    private int expDataRate;
+
+    @JsonProperty("traffic-density")
+    private int trafficDensity;
+
+    @JsonProperty("conn-density")
+    private int connDensity;
+
+    @JsonProperty("resource-version")
+    private String resourceVersion;
+
+    public String getProfileId() {
+        return profileId;
+    }
+
+    public void setProfileId(String profileId) {
+        this.profileId = profileId;
+    }
+
+    public int getLatency() {
+        return latency;
+    }
+
+    public void setLatency(int latency) {
+        this.latency = latency;
+    }
+
+    public int getMaxNumberOfUEs() {
+        return maxNumberOfUEs;
+    }
+
+    public void setMaxNumberOfUEs(int maxNumberOfUEs) {
+        this.maxNumberOfUEs = maxNumberOfUEs;
+    }
+
+    public String getCoverageAreaTAList() {
+        return coverageAreaTAList;
+    }
+
+    public void setCoverageAreaTAList(String coverageAreaTAList) {
+        this.coverageAreaTAList = coverageAreaTAList;
+    }
+
+    public String getUeMobilityLevel() {
+        return ueMobilityLevel;
+    }
+
+    public void setUeMobilityLevel(String ueMobilityLevel) {
+        this.ueMobilityLevel = ueMobilityLevel;
+    }
+
+    public String getResourceSharingLevel() {
+        return resourceSharingLevel;
+    }
+
+    public void setResourceSharingLevel(String resourceSharingLevel) {
+        this.resourceSharingLevel = resourceSharingLevel;
+    }
+
+    public int getExpDataRateUL() {
+        return expDataRateUL;
+    }
+
+    public void setExpDataRateUL(int expDataRateUL) {
+        this.expDataRateUL = expDataRateUL;
+    }
+
+    public int getExpDataRateDL() {
+        return expDataRateDL;
+    }
+
+    public void setExpDataRateDL(int expDataRateDL) {
+        this.expDataRateDL = expDataRateDL;
+    }
+
+    public int getAreaTrafficCapUL() {
+        return areaTrafficCapUL;
+    }
+
+    public void setAreaTrafficCapUL(int areaTrafficCapUL) {
+        this.areaTrafficCapUL = areaTrafficCapUL;
+    }
+
+    public int getAreaTrafficCapDL() {
+        return areaTrafficCapDL;
+    }
+
+    public void setAreaTrafficCapDL(int areaTrafficCapDL) {
+        this.areaTrafficCapDL = areaTrafficCapDL;
+    }
+
+    public int getActivityFactor() {
+        return activityFactor;
+    }
+
+    public void setActivityFactor(int activityFactor) {
+        this.activityFactor = activityFactor;
+    }
+
+    public int getJitter() {
+        return jitter;
+    }
+
+    public void setJitter(int jitter) {
+        this.jitter = jitter;
+    }
+
+    public int getSurvivalTime() {
+        return survivalTime;
+    }
+
+    public void setSurvivalTime(int survivalTime) {
+        this.survivalTime = survivalTime;
+    }
+
+    public int getCsAvailability() {
+        return csAvailability;
+    }
+
+    public void setCsAvailability(int csAvailability) {
+        this.csAvailability = csAvailability;
+    }
+
+    public int getReliability() {
+        return reliability;
+    }
+
+    public void setReliability(int reliability) {
+        this.reliability = reliability;
+    }
+
+    public int getExpDataRate() {
+        return expDataRate;
+    }
+
+    public void setExpDataRate(int expDataRate) {
+        this.expDataRate = expDataRate;
+    }
+
+    public int getTrafficDensity() {
+        return trafficDensity;
+    }
+
+    public void setTrafficDensity(int trafficDensity) {
+        this.trafficDensity = trafficDensity;
+    }
+
+    public int getConnDensity() {
+        return connDensity;
+    }
+
+    public void setConnDensity(int connDensity) {
+        this.connDensity = connDensity;
+    }
+
+    public String getResourceVersion() {
+        return resourceVersion;
+    }
+
+    public void setResourceVersion(String resourceVersion) {
+        this.resourceVersion = resourceVersion;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceRsp.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceRsp.java
new file mode 100644 (file)
index 0000000..7264733
--- /dev/null
@@ -0,0 +1,42 @@
+/**
+ * Copyright 2019 HUAWEI Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import java.io.Serializable;
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class AAIServiceRsp implements Serializable {
+
+    /**
+     *
+     */
+    private static final long serialVersionUID = 3571621205575997704L;
+    private List<AAIService> aAIService;
+
+    public static long getSerialversionuid() {
+        return serialVersionUID;
+    }
+
+    public List<AAIService> getaAIService() {
+        return aAIService;
+    }
+
+    public void setaAIService(List<AAIService> aAIService) {
+        this.aAIService = aAIService;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelatedToProperty.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelatedToProperty.java
new file mode 100644 (file)
index 0000000..b1f2614
--- /dev/null
@@ -0,0 +1,38 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+
+public class RelatedToProperty {
+
+    private String propertyKey;
+
+    private String propertyValue;
+
+    public String getPropertyKey() {
+        return propertyKey;
+    }
+
+    public void setPropertyKey(String propertyKey) {
+        this.propertyKey = propertyKey;
+    }
+
+    public String getPropertyValue() {
+        return propertyValue;
+    }
+
+    public void setPropertyValue(String propertyValue) {
+        this.propertyValue = propertyValue;
+    }
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/Relationship.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/Relationship.java
new file mode 100644 (file)
index 0000000..c0dda4a
--- /dev/null
@@ -0,0 +1,73 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class Relationship {
+
+
+    private String relatedTo;
+
+    private String relationshipLabel;
+
+    private String relatedLink;
+
+    private List<RelationshipData> relationshipData;
+
+    private List<RelatedToProperty> relatedToProperty;
+
+    public String getRelatedTo() {
+        return relatedTo;
+    }
+
+    public void setRelatedTo(String relatedTo) {
+        this.relatedTo = relatedTo;
+    }
+
+    public String getRelationshipLabel() {
+        return relationshipLabel;
+    }
+
+    public void setRelationshipLabel(String relationshipLabel) {
+        this.relationshipLabel = relationshipLabel;
+    }
+
+    public String getRelatedLink() {
+        return relatedLink;
+    }
+
+    public void setRelatedLink(String relatedLink) {
+        this.relatedLink = relatedLink;
+    }
+
+    public List<RelationshipData> getRelationshipData() {
+        return relationshipData;
+    }
+
+    public void setRelationshipData(List<RelationshipData> relationshipData) {
+        this.relationshipData = relationshipData;
+    }
+
+    public List<RelatedToProperty> getRelatedToProperty() {
+        return relatedToProperty;
+    }
+
+    public void setRelatedToProperty(List<RelatedToProperty> relatedToProperty) {
+        this.relatedToProperty = relatedToProperty;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java
new file mode 100644 (file)
index 0000000..843b222
--- /dev/null
@@ -0,0 +1,42 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.aai.bean;
+
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class RelationshipData {
+
+    private String relationshipKey;
+
+    private String relationshipValue;
+
+    public String getRelationshipKey() {
+        return relationshipKey;
+    }
+
+    public void setRelationshipKey(String relationshipKey) {
+        this.relationshipKey = relationshipKey;
+    }
+
+    public String getRelationshipValue() {
+        return relationshipValue;
+    }
+
+    public void setRelationshipValue(String relationshipValue) {
+        this.relationshipValue = relationshipValue;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/exception/AAIException.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/exception/AAIException.java
new file mode 100644 (file)
index 0000000..feadad3
--- /dev/null
@@ -0,0 +1,23 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain.aai.exception;
+
+public class AAIException extends RuntimeException {
+
+    public AAIException(String message, Throwable cause) {
+        super(message, cause);
+    }
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java
new file mode 100644 (file)
index 0000000..e6637f5
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * 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.service.slicingdomain.kpi;
+
+
+import org.onap.usecaseui.server.service.slicingdomain.kpi.bean.KpiTotalBandwidth;
+import org.onap.usecaseui.server.service.slicingdomain.kpi.bean.KpiTotalTraffic;
+import org.onap.usecaseui.server.service.slicingdomain.kpi.bean.KpiUserNumber;
+import okhttp3.RequestBody;
+import retrofit2.Call;
+import retrofit2.http.Body;
+import retrofit2.http.GET;
+import retrofit2.http.Headers;
+import retrofit2.http.POST;
+
+public interface KpiSliceService {
+
+    @Headers({"Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json"})
+    @POST("/api/kpi-service/v1/userNumber")
+    Call<KpiUserNumber> listUserNumber(@Body RequestBody body);
+
+    @Headers({"Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json"})
+    @POST("/api/kpi-service/v1/totalBandwidth")
+    Call<KpiTotalBandwidth> listTotalBandwidth(@Body RequestBody body);
+
+    @Headers({"Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json"})
+    @POST("/api/kpi-service/v1/totalTraffic")
+    Call<KpiTotalTraffic> listTotalTraffic(@Body RequestBody body);
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiBean.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiBean.java
new file mode 100644 (file)
index 0000000..929eb69
--- /dev/null
@@ -0,0 +1,54 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain.kpi.bean;
+
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class KpiBean {
+       private String id;
+
+    private String timeStamp;
+    
+    private int hours;
+
+       public String getId() {
+               return id;
+       }
+
+       public void setId(String id) {
+               this.id = id;
+       }
+
+       public String getTimeStamp() {
+               return timeStamp;
+       }
+
+       public void setTimeStamp(String timeStamp) {
+               this.timeStamp = timeStamp;
+       }
+
+       public int getHours() {
+               return hours;
+       }
+
+       public void setHours(int hours) {
+               this.hours = hours;
+       }
+
+    
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiTotalBandwidth.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiTotalBandwidth.java
new file mode 100644 (file)
index 0000000..eed118c
--- /dev/null
@@ -0,0 +1,70 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain.kpi.bean;
+
+
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class KpiTotalBandwidth {
+       private String id;
+
+    private List<TotalBandwidth> totalBandwidth;
+    
+    
+       public static class TotalBandwidth{
+       private String timeStamp;
+       
+       private int bandwidth;
+
+               public String getTimeStamp() {
+                       return timeStamp;
+               }
+
+               public void setTimeStamp(String timeStamp) {
+                       this.timeStamp = timeStamp;
+               }
+
+               public int getBandwidth() {
+                       return bandwidth;
+               }
+
+               public void setBandwidth(int bandwidth) {
+                       this.bandwidth = bandwidth;
+               }
+       
+       
+    }
+
+       public String getId() {
+               return id;
+       }
+
+       public void setId(String id) {
+               this.id = id;
+       }
+
+       public List<TotalBandwidth> getTotalBandwidth() {
+               return totalBandwidth;
+       }
+
+       public void setTotalBandwidth(List<TotalBandwidth> totalBandwidth) {
+               this.totalBandwidth = totalBandwidth;
+       }
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiTotalTraffic.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiTotalTraffic.java
new file mode 100644 (file)
index 0000000..8c4f99e
--- /dev/null
@@ -0,0 +1,44 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain.kpi.bean;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown=true)
+public class KpiTotalTraffic {
+
+    private String id;
+    
+    private int totalTraffic;
+
+       public String getId() {
+               return id;
+       }
+
+       public void setId(String id) {
+               this.id = id;
+       }
+
+       public int getTotalTraffic() {
+               return totalTraffic;
+       }
+
+       public void setTotalTraffic(int totalTraffic) {
+               this.totalTraffic = totalTraffic;
+       }
+    
+    
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiUserNumber.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/KpiUserNumber.java
new file mode 100644 (file)
index 0000000..ca4edcc
--- /dev/null
@@ -0,0 +1,69 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.kpi.bean;
+
+
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class KpiUserNumber {
+
+    private String id;
+
+    private List<UserNumbers> userNumbers;
+
+    public static class UserNumbers {
+
+        private String timeStamp;
+
+        private int userNumber;
+
+        public String getTimeStamp() {
+            return timeStamp;
+        }
+
+        public void setTimeStamp(String timeStamp) {
+            this.timeStamp = timeStamp;
+        }
+
+        public int getUserNumber() {
+            return userNumber;
+        }
+
+        public void setUserNumber(int userNumber) {
+            this.userNumber = userNumber;
+        }
+
+
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public List<UserNumbers> getUserNumbers() {
+        return userNumbers;
+    }
+
+    public void setUserNumbers(List<UserNumbers> userNumbers) {
+        this.userNumbers = userNumbers;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService-595b4273.javaoldbuyong b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService-595b4273.javaoldbuyong
new file mode 100644 (file)
index 0000000..bd33ae5
--- /dev/null
@@ -0,0 +1,88 @@
+/*
+ * 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.service.slicingdomain.so;
+
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.DeleteOperationRsp;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.OperationProgressInformation;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.ServiceOperation;
+import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIAllottedResources;
+import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceInstance;
+import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceInstanceRsp;
+import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceNST;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.ActivateService;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOOperation;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOTask;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOTaskD;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOTaskRsp;
+
+import com.alibaba.fastjson.JSONObject;
+
+import okhttp3.RequestBody;
+import okhttp3.ResponseBody;
+import retrofit2.Call;
+import retrofit2.http.Body;
+import retrofit2.http.DELETE;
+import retrofit2.http.GET;
+import retrofit2.http.Headers;
+import retrofit2.http.POST;
+import retrofit2.http.PUT;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+
+public interface SOSliceService {
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/onap/so/infra/e2eServiceInstances/v3/{serviceId}/operations/{operationId}")
+       Call<SOOperation> queryOperationProgress(@Path("serviceId") String serviceId,
+                       @Path("operationId") String operationId);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @POST("/onap/so/infra/e2eServiceInstances/v3/{serviceInstanceId}/activate")
+       Call<ActivateService> activeService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @POST("/onap/so/infra/e2eServiceInstances/v3/{serviceInstanceId}/deactivate")
+       Call<ActivateService> deactiveService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @DELETE("/onap/so/infra/e2eServiceInstances/v3/{serviceInstanceId}")
+       Call<ActivateService> terminateService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/onap/so/infra/orchestrationTasks/v4")
+       Call<SOTaskRsp> listTask();
+       
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/onap/so/infra/orchestrationTasks/v4")
+       Call<SOTaskRsp> listTaskByStage(@Query("status") String status );
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/onap/so/infra/orchestrationTasks/v4/{taskId}")
+       Call<SOTask> getTaskById(@Path("taskId") String taskId);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/onap/so/infra/orchestrationTasks/v4/{taskId}")
+       Call<SOTaskD> getTaskByIdD(@Path("taskId") String taskId);
+       
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @PUT("/onap/so/infra/orchestrationTasks/v4/{taskId}")
+       Call<ResponseBody> updateService(@Path("taskId") String taskId, @Body RequestBody body);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @POST("/onap/so/infra/orchestrationTasks/v4/{taskId}/commit")
+       Call<ResponseBody> commitTask(@Path("taskId") String taskId);
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java
new file mode 100644 (file)
index 0000000..4293c9a
--- /dev/null
@@ -0,0 +1,126 @@
+/*
+ * 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.service.slicingdomain.so;
+
+import org.onap.usecaseui.server.bean.csmf.CreateResponse;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.ActivateService;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOOperation;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOTask;
+
+import com.alibaba.fastjson.JSONArray;
+
+import okhttp3.RequestBody;
+import okhttp3.ResponseBody;
+import retrofit2.Call;
+import retrofit2.http.Body;
+import retrofit2.http.DELETE;
+import retrofit2.http.GET;
+import retrofit2.http.HTTP;
+import retrofit2.http.Headers;
+import retrofit2.http.POST;
+import retrofit2.http.PUT;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+
+public interface SOSliceService {
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/api/so-serviceInstances/v3/{serviceId}/operations/{operationId}")
+       Call<SOOperation> queryOperationProgress(@Path("serviceId") String serviceId,
+                       @Path("operationId") String operationId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @POST("/api/so-serviceInstances/v3/{serviceInstanceId}/activate")
+       Call<ActivateService> activeService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @POST("/api/so-serviceInstances/v3/{serviceInstanceId}/deactivate")
+       Call<ActivateService> deactiveService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+
+       @HTTP(method = "DELETE",path = "/api/so-serviceInstances/v3/{serviceInstanceId}",hasBody = true)
+       Call<ActivateService> terminateService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/api/so-orchestrationTasks/v4")
+       Call<JSONArray> listTask();
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/api/so-orchestrationTasks/v4")
+       Call<JSONArray> listTaskByStage(@Query("status") String status );
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/api/so-orchestrationTasks/v4/{taskId}")
+       Call<SOTask> getTaskById(@Path("taskId") String taskId);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/api/so-orchestrationTasks/v4/{taskId}")
+       Call<SOTask> getTaskByIdD(@Path("taskId") String taskId);
+       
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @PUT("/api/so-orchestrationTasks/v4/{taskId}")
+       Call<ResponseBody> updateService(@Path("taskId") String taskId, @Body RequestBody body);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @POST("/api/so-orchestrationTasks/v4/{taskId}/commit")
+       Call<ResponseBody> commitTask(@Path("taskId") String taskId);
+
+
+       @Headers({
+               "X-TransactionId: 9999",
+               "X-FromAppId: onap-cli",
+               "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+               "Accept: application/json"
+       })
+       @POST("/api/so-serviceInstances/v3")
+       Call<CreateResponse> submitOrders(@Body RequestBody body);
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.javalocal b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.javalocal
new file mode 100644 (file)
index 0000000..26f344a
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * 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.service.slicingdomain.so;
+
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.ActivateService;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOOperation;
+import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOTask;
+
+import com.alibaba.fastjson.JSONArray;
+
+import okhttp3.RequestBody;
+import okhttp3.ResponseBody;
+import retrofit2.Call;
+import retrofit2.http.Body;
+import retrofit2.http.DELETE;
+import retrofit2.http.GET;
+import retrofit2.http.Headers;
+import retrofit2.http.POST;
+import retrofit2.http.PUT;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+
+public interface SOSliceService {
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/onap/so/infra/e2eServiceInstances/v3/{serviceId}/operations/{operationId}")
+       Call<SOOperation> queryOperationProgress(@Path("serviceId") String serviceId,
+                       @Path("operationId") String operationId);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @POST("/onap/so/infra/e2eServiceInstances/v3/{serviceInstanceId}/activate")
+       Call<ActivateService> activeService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @POST("/onap/so/infra/e2eServiceInstances/v3/{serviceInstanceId}/deactivate")
+       Call<ActivateService> deactiveService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @DELETE("/onap/so/infra/e2eServiceInstances/v3/{serviceInstanceId}")
+       Call<ActivateService> terminateService(@Path("serviceInstanceId") String serviceInstanceId, @Body RequestBody body);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/onap/so/infra/orchestrationTasks/v4")
+       Call<JSONArray> listTask();
+       
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/onap/so/infra/orchestrationTasks/v4")
+       Call<JSONArray> listTaskByStage(@Query("status") String status );
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @GET("/onap/so/infra/orchestrationTasks/v4/{taskId}")
+       Call<SOTask> getTaskById(@Path("taskId") String taskId);
+
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @GET("/onap/so/infra/orchestrationTasks/v4/{taskId}")
+       Call<SOTask> getTaskByIdD(@Path("taskId") String taskId);
+       
+       @Headers({ "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==", "Accept: application/json" })
+       @PUT("/onap/so/infra/orchestrationTasks/v4/{taskId}")
+       Call<ResponseBody> updateService(@Path("taskId") String taskId, @Body RequestBody body);
+
+       @Headers({
+        "X-TransactionId: 9999",
+        "X-FromAppId: onap-cli",
+        "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+        "Accept: application/json"
+       })
+       @POST("/onap/so/infra/orchestrationTasks/v4/{taskId}/commit")
+       Call<ResponseBody> commitTask(@Path("taskId") String taskId);
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/ActivateService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/ActivateService.java
new file mode 100644 (file)
index 0000000..2e4ac9d
--- /dev/null
@@ -0,0 +1,32 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain.so.bean;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown=true)
+public class ActivateService {
+
+    private String operationId;
+
+    public String getOperationId() {
+        return operationId;
+    }
+
+    public void setOperationId(String operationId) {
+        this.operationId = operationId;
+    }
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java
new file mode 100644 (file)
index 0000000..58b04fd
--- /dev/null
@@ -0,0 +1,127 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.so.bean;
+
+import java.util.Date;
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SOOperation {
+
+    private Operation operation;
+
+    @JsonIgnoreProperties(ignoreUnknown = true)
+    public class Operation {
+
+        private String operationId;
+
+        private String operation;
+
+        private String result;
+
+        private String reason;
+
+        private String userId;
+
+        private String operationContent;
+
+        private String operateAt;
+
+        private int progress;
+
+        private String finishedAt;
+
+        public String getOperationId() {
+            return operationId;
+        }
+
+        public void setOperationId(String operationId) {
+            this.operationId = operationId;
+        }
+
+        public String getOperation() {
+            return operation;
+        }
+
+        public void setOperation(String operation) {
+            this.operation = operation;
+        }
+
+        public String getResult() {
+            return result;
+        }
+
+        public void setResult(String result) {
+            this.result = result;
+        }
+
+        public String getReason() {
+            return reason;
+        }
+
+        public void setReason(String reason) {
+            this.reason = reason;
+        }
+
+        public String getUserId() {
+            return userId;
+        }
+
+        public void setUserId(String userId) {
+            this.userId = userId;
+        }
+
+        public String getOperationContent() {
+            return operationContent;
+        }
+
+        public void setOperationContent(String operationContent) {
+            this.operationContent = operationContent;
+        }
+
+        public String getOperateAt() {
+            return operateAt;
+        }
+
+        public void setOperateAt(String operateAt) {
+            this.operateAt = operateAt;
+        }
+
+        public int getProgress() {
+            return progress;
+        }
+
+        public void setProgress(int progress) {
+            this.progress = progress;
+        }
+
+        public String getFinishedAt() {
+            return finishedAt;
+        }
+
+        public void setFinishedAt(String finishedAt) {
+            this.finishedAt = finishedAt;
+        }
+    }
+
+    public Operation getOperation() {
+        return operation;
+    }
+
+    public void setOperation(Operation operation) {
+        this.operation = operation;
+    }
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOTask.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOTask.java
new file mode 100644 (file)
index 0000000..0fd5684
--- /dev/null
@@ -0,0 +1,97 @@
+/**
+ * Copyright 2019 HUAWEI Corporation.
+ *
+ * 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.service.slicingdomain.so.bean;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class SOTask {
+
+       private String taskId;
+
+       private String requestId;
+
+       private String name;
+
+       private String createdTime;
+
+       private String status;
+
+       private String isManual;
+
+       private String params;
+
+
+       public String getStatus() {
+               return status;
+       }
+
+       public void setStatus(String status) {
+               this.status = status;
+       }
+
+       public void setTaskId(String taskId) {
+               this.taskId = taskId;
+       }
+
+       public void setRequestId(String requestId) {
+               this.requestId = requestId;
+       }
+
+       public void setName(String name) {
+               this.name = name;
+       }
+
+
+       public String getTaskId() {
+               return taskId;
+       }
+
+       public String getRequestId() {
+               return requestId;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+
+       public String getCreatedTime() {
+               return createdTime;
+       }
+
+       public void setCreatedTime(String createdTime) {
+               this.createdTime = createdTime;
+       }
+
+       public String getIsManual() {
+               return isManual;
+       }
+
+       public void setIsManual(String isManual) {
+               this.isManual = isManual;
+       }
+
+       public String getParams() {
+               return params;
+       }
+
+       public void setParams(String params) {
+               this.params = params;
+       }
+       
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOTaskRsp.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOTaskRsp.java
new file mode 100644 (file)
index 0000000..40244a4
--- /dev/null
@@ -0,0 +1,30 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ * <p>
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.service.slicingdomain.so.bean;
+
+import java.util.List;
+
+public class SOTaskRsp {
+
+    private List<SOTask> task;
+
+    public List<SOTask> getTask() {
+        return task;
+    }
+
+    public void setTask(List<SOTask> task) {
+        this.task = task;
+    }
+
+
+}
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/exception/SOException.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/exception/SOException.java
new file mode 100644 (file)
index 0000000..7e9484f
--- /dev/null
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2016-2017 ZTE Corporation.
+ *
+ * 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.service.slicingdomain.so.exception;
+
+public class SOException extends RuntimeException {
+
+    public SOException(String message) {
+        super(message);
+    }
+
+    public SOException(String message, Throwable cause) {
+        super(message, cause);
+    }
+}