Removed unused imports in AAIClient.java
[ccsdk/sli/adaptors.git] / aai-service / provider / src / main / java / org / onap / ccsdk / sli / adaptors / aai / AAIClient.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : SDN-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *             reserved.
7  * Modifications Copyright © 2018 IBM.
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.ccsdk.sli.adaptors.aai;
24
25 import java.io.IOException;
26 import java.net.MalformedURLException;
27 import java.net.URL;
28 import java.util.Map;
29
30 import org.onap.aai.inventory.v14.*;
31 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
32 import org.onap.ccsdk.sli.core.sli.SvcLogicException;
33 import org.onap.ccsdk.sli.core.sli.SvcLogicJavaPlugin;
34 import org.onap.ccsdk.sli.core.sli.SvcLogicResource;
35 import org.onap.ccsdk.sli.adaptors.aai.data.notify.NotifyEvent;
36
37 public interface AAIClient extends SvcLogicResource, SvcLogicJavaPlugin {
38
39     public SearchResults requestServiceInstanceURL(String svcInstanceId) throws AAIServiceException;
40
41     // VServers
42     public Vserver requestVServerData(String tenantId, String vserverId, String cloudOwner, String cloudRegionId) throws AAIServiceException;
43
44     public URL requestVserverURLNodeQuery(String vserverName) throws AAIServiceException;
45     public String getTenantIdFromVserverUrl(URL url);
46     public String getCloudOwnerFromVserverUrl(URL url);
47     public String getCloudRegionFromVserverUrl(URL url);
48     public String getVServerIdFromVserverUrl(URL url, String tennantId);
49     public Vserver requestVServerDataByURL(URL url) throws AAIServiceException;
50
51
52
53     // ----------------- Release 1510 ----------------------
54     //    // GenericVNF
55     public GenericVnf requestGenericVnfData(String vnfId) throws AAIServiceException;
56     public boolean postGenericVnfData(String vnfId, GenericVnf request) throws AAIServiceException;
57
58     // Physical Link
59     public PhysicalLink requestPhysicalLinkData(String vnfId) throws AAIServiceException;
60     public boolean postPhysicalLinkData(String vnfId, PhysicalLink request) throws AAIServiceException;
61     public boolean deletePhysicalLinkData(String vnfId, String resourceVersion) throws AAIServiceException;
62
63     // UBB Notify
64     public boolean sendNotify(NotifyEvent event, String serviceInstanceId, String pathCode) throws AAIServiceException;
65
66     // Node Query - 1602
67     public SearchResults requestNodeQuery(String type, String entityIdentifier, String entityName) throws AAIServiceException;
68     public String requestDataByURL(URL url) throws AAIServiceException;
69     public GenericVnf requestGenericVnfeNodeQuery(String vnfName) throws AAIServiceException;
70
71     public QueryStatus backup(Map<String, String> params, SvcLogicContext ctx) throws SvcLogicException;
72     public QueryStatus restore(Map<String, String> params, SvcLogicContext ctx) throws SvcLogicException;
73
74     public void logKeyError(String keys);
75
76     public QueryStatus processResponseData(String rv, String resource, AAIRequest request, String prefix,  SvcLogicContext ctx, Map<String, String> nameValues, String modifier) throws IOException, AAIServiceException ;
77     public String getPathTemplateForResource(String resoourceName, String join, SvcLogicContext ctx) throws MalformedURLException;
78     public boolean isDeprecatedFormat(String resource, Map<String, String> nameValues);
79
80     String query(AAIRequest request) throws AAIServiceException;
81     String save(AAIRequest request) throws AAIServiceException;
82     boolean delete(AAIRequest request, String resourceVersion) throws AAIServiceException;
83     boolean update(AAIRequest request, String resourceVersion) throws AAIServiceException;
84
85 }