d0595ce645387b7d53f07a7879b2470667299fdb
[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.intent.CCVPNInstance;
21 import org.onap.usecaseui.server.bean.intent.IntentInstance;
22 import org.onap.usecaseui.server.bean.nsmf.common.ServiceResult;
23 import org.onap.usecaseui.server.util.Page;
24
25 import java.io.IOException;
26 import java.util.List;
27 import java.util.Map;
28
29 public interface IntentInstanceService {
30     Page<CCVPNInstance> queryIntentInstance(CCVPNInstance instance, int currentPage, int pageSize);
31     int createCCVPNInstance(CCVPNInstance instance);
32     void getIntentInstanceProgress();
33     void getIntentInstanceCreateStatus();
34     List<CCVPNInstance> getFinishedInstanceInfo();
35     void getIntentInstanceBandwidth() throws IOException;
36
37     void deleteIntentInstance(String instanceId);
38
39     void activeIntentInstance(String instanceId);
40
41     void invalidIntentInstance(String instanceId);
42
43     Map<String, Object> queryInstancePerformanceData(String instanceId);
44
45     Object queryAccessNodeInfo() throws IOException;
46
47     JSONObject getInstanceStatus(JSONArray ids);
48
49     String formatBandwidth(String strValue);
50
51     String formatCloudPoint(String cloudPoint);
52
53     String formatAccessPoint(String accessPoint);
54
55     void addCustomer() throws IOException;
56
57     IntentInstance createIntentInstance(Object body,String businessInstanceId, String businessInstance,  String type);
58
59     void deleteIntent(int id);
60
61     void verifyIntent(int id);
62
63     Page<IntentInstance> getIntentInstanceList(int currentPage, int pageSize);
64
65     ServiceResult createSlicingServiceWithIntent(Object slicingOrderBody);
66
67     int updateCCVPNInstance(CCVPNInstance instance);
68 }