Merge "Fix to pass calling application identifier to SO"
[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.mso.rest.RequestDetails;\r
24 \r
25 /**\r
26  * The Interface MsoRestInterfaceIfc.\r
27  */\r
28 public interface MsoRestInterfaceIfc {\r
29         \r
30         /**\r
31          * Inits the rest client.\r
32          */\r
33         public void initRestClient();\r
34         \r
35         /**\r
36          * Gets the.\r
37          *\r
38          * @param <T> the generic type\r
39          * @param t the t\r
40          * @param sourceId the source id\r
41          * @param path the path\r
42          * @param restObject the rest object\r
43          * @throws Exception the exception\r
44          */\r
45         public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;\r
46         \r
47         /**\r
48          * Delete.\r
49          *\r
50          * @param <T> the generic type\r
51          * @param t the t\r
52          * @param r the r\r
53          * @param sourceID the source ID\r
54          * @param path the path\r
55          * @param restObject the rest object\r
56          * @throws Exception the exception\r
57          */\r
58         public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;\r
59         \r
60         /**\r
61          * Post.\r
62          *\r
63          * @param <T> the generic type\r
64          * @param t the t\r
65          * @param r the r\r
66          * @param sourceID the source ID\r
67          * @param path the path\r
68          * @param restObject the rest object\r
69          * @throws Exception the exception\r
70          */\r
71         public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;\r
72         \r
73         /***\r
74          * Log request.\r
75          *\r
76          * @param r the r\r
77          */\r
78         public void logRequest ( RequestDetails r  );\r
79 }\r