bc89b7e249df80f81f43d5c3e3c6202228aec608
[appc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright (C) 2017 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21  */
22
23 package org.openecomp.appc.adapter.netconf;
24
25 import org.openecomp.appc.adapter.netconf.exception.DataAccessException;
26 import org.openecomp.sdnc.sli.resource.dblib.DbLibService;
27
28
29 @SuppressWarnings("JavaDoc")
30 public interface NetconfDataAccessService {
31
32     /**
33      *
34      * @param schema
35      */
36     void setSchema(String schema);
37
38     /**
39      *
40      * @param dbLibService
41      */
42     void setDbLibService(DbLibService dbLibService);
43
44     /**
45      *
46      * @param xmlID
47      * @return
48      * @throws DataAccessException
49      */
50     String retrieveConfigFileName(String xmlID) throws DataAccessException;
51
52     /**
53      *
54      * @param vnfType
55      * @param connectionDetails
56      * @return
57      * @throws DataAccessException
58      */
59     boolean retrieveConnectionDetails(String vnfType, ConnectionDetails connectionDetails) throws DataAccessException;
60
61     /**
62      *
63      * @param vnfType
64      * @param connectionDetails
65      * @return
66      * @throws DataAccessException
67      */
68     boolean retrieveNetconfConnectionDetails(String vnfType, NetconfConnectionDetails connectionDetails) throws
69                     DataAccessException;
70
71     /**
72      *
73      * @param instanceId
74      * @param requestId
75      * @param creationDate
76      * @param logText
77      * @return
78      * @throws DataAccessException
79      */
80     boolean logDeviceInteraction(String instanceId, String requestId, String creationDate, String logText) throws
81                     DataAccessException;
82
83 }