2 * Copyright (C) 2017 CTC, Inc. and others. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.usecaseui.server.service.intent;
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;
26 import java.io.IOException;
27 import java.util.List;
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;
38 void deleteIntentInstance(String instanceId);
40 void activeIntentInstance(String instanceId);
42 void invalidIntentInstance(String instanceId);
44 Map<String, Object> queryInstancePerformanceData(String instanceId);
46 Object queryAccessNodeInfo() throws IOException;
48 JSONObject getInstanceStatus(JSONArray ids);
50 String formatBandwidth(String strValue);
52 String formatCloudPoint(String cloudPoint);
54 String formatAccessPoint(String accessPoint);
56 void addCustomer() throws IOException;
58 IntentInstance createIntentInstance(Object body,String businessInstanceId, String businessInstance, String type);
60 void deleteIntent(int id);
62 void verifyIntent(int id);
64 Page<IntentInstance> getIntentInstanceList(int currentPage, int pageSize);
66 ServiceResult createSlicingServiceWithIntent(Object slicingOrderBody);
68 int updateCCVPNInstance(CCVPNInstance instance);
70 void saveSlicingServiceToAAI(String serviceId,String operationId, SlicingOrder slicingOrder) throws IOException;