feat:Intent instance binding 5g slice instance information
[usecase-ui/server.git] / server / src / main / java / org / onap / usecaseui / server / service / intent / IntentInstanceService.java
1 /*
2  * Copyright (C) 2017 CTC, Inc. and others. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.usecaseui.server.service.intent;
17
18 import com.alibaba.fastjson.JSONArray;
19 import com.alibaba.fastjson.JSONObject;
20 import org.onap.usecaseui.server.bean.csmf.SlicingOrder;
21 import org.onap.usecaseui.server.bean.intent.CCVPNInstance;
22 import org.onap.usecaseui.server.bean.intent.IntentInstance;
23 import org.onap.usecaseui.server.bean.nsmf.common.ServiceResult;
24 import org.onap.usecaseui.server.util.Page;
25
26 import java.io.IOException;
27 import java.util.List;
28 import java.util.Map;
29
30 public interface IntentInstanceService {
31     Page<CCVPNInstance> queryIntentInstance(CCVPNInstance instance, int currentPage, int pageSize);
32     int createCCVPNInstance(CCVPNInstance instance);
33     void getIntentInstanceProgress();
34     void getIntentInstanceCreateStatus();
35     List<CCVPNInstance> getFinishedInstanceInfo();
36     void getIntentInstanceBandwidth() throws IOException;
37
38     void deleteIntentInstance(String instanceId);
39
40     void activeIntentInstance(String instanceId);
41
42     void invalidIntentInstance(String instanceId);
43
44     Map<String, Object> queryInstancePerformanceData(String instanceId);
45
46     Object queryAccessNodeInfo() throws IOException;
47
48     JSONObject getInstanceStatus(JSONArray ids);
49
50     String formatBandwidth(String strValue);
51
52     String formatCloudPoint(String cloudPoint);
53
54     String formatAccessPoint(String accessPoint);
55
56     void addCustomer() throws IOException;
57
58     IntentInstance createIntentInstance(Object body,String businessInstanceId, String businessInstance,  String type);
59
60     void deleteIntent(int id);
61
62     void verifyIntent(int id);
63
64     Page<IntentInstance> getIntentInstanceList(int currentPage, int pageSize);
65
66     ServiceResult createSlicingServiceWithIntent(Object slicingOrderBody);
67
68     int updateCCVPNInstance(CCVPNInstance instance);
69
70     void saveSlicingServiceToAAI(String serviceId,String operationId, SlicingOrder slicingOrder) throws IOException;
71 }