Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / mso / MsoRestInterfaceIfc.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * VID\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.mso;\r
22 \r
23 import org.openecomp.vid.changeManagement.ChangeManagementRequest;\r
24 import org.openecomp.vid.mso.rest.RequestDetails;\r
25 \r
26 /**\r
27  * The Interface MsoRestInterfaceIfc.\r
28  */\r
29 public interface MsoRestInterfaceIfc {\r
30         \r
31         /**\r
32          * Inits the rest client.\r
33          */\r
34         public void initMsoClient();\r
35         \r
36         /**\r
37          * Gets the.\r
38          *\r
39          * @param <T> the generic type\r
40          * @param t the t\r
41          * @param sourceId the source id\r
42          * @param path the path\r
43          * @param restObject the rest object\r
44          * @throws Exception the exception\r
45          */\r
46         public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;\r
47         \r
48         /**\r
49          * Delete.\r
50          *\r
51          * @param <T> the generic type\r
52          * @param t the t\r
53          * @param r the r\r
54          * @param sourceID the source ID\r
55          * @param path the path\r
56          * @param restObject the rest object\r
57          * @throws Exception the exception\r
58          */\r
59         public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;\r
60         \r
61         /**\r
62          * Post.\r
63          *\r
64          * @param <T> the generic type\r
65          * @param t the t\r
66          * @param r the r\r
67          * @param sourceID the source ID\r
68          * @param path the path\r
69          * @param restObject the rest object\r
70          * @throws Exception the exception\r
71          */\r
72         public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;\r
73         \r
74         /**\r
75          * Put.\r
76          *\r
77          * @param <T> the generic type\r
78          * @param t the t\r
79          * @param r the r\r
80          * @param sourceID the source ID\r
81          * @param path the path\r
82          * @param restObject the rest object\r
83          * @throws Exception the exception\r
84          */\r
85         public <T> void Put(T t, ChangeManagementRequest r, String sourceID, String path, RestObject<T> restObject) throws Exception ;\r
86         /***\r
87          * Log request.\r
88          *\r
89          * @param r the r\r
90          */\r
91         public void logRequest ( RequestDetails r  );\r
92 }\r