Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / mso / rest / RestInterface.java
1 package org.openecomp.vid.mso.rest;
2
3 import org.openecomp.vid.mso.RestObject;
4
5 /**
6  * Created by pickjonathan on 26/06/2017.
7  */
8 public interface RestInterface {
9
10     /**
11      * Inits the rest client.
12      */
13     public void initMsoClient();
14
15     /**
16      * Gets the.
17      *
18      * @param <T> the generic type
19      * @param t the t
20      * @param sourceId the source id
21      * @param path the path
22      * @param restObject the rest object
23      * @throws Exception the exception
24      */
25     public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
26
27     /**
28      * Delete.
29      *
30      * @param <T> the generic type
31      * @param t the t
32      * @param r the r
33      * @param sourceID the source ID
34      * @param path the path
35      * @param restObject the rest object
36      * @throws Exception the exception
37      */
38     public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
39
40     /**
41      * Post.
42      *
43      * @param <T> the generic type
44      * @param t the t
45      * @param r the r
46      * @param sourceID the source ID
47      * @param path the path
48      * @param restObject the rest object
49      * @throws Exception the exception
50      */
51     public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
52     
53     /**
54      * Put.
55      *
56      * @param <T> the generic type
57      * @param t the t
58      * @param r the r
59      * @param sourceID the source ID
60      * @param path the path
61      * @param restObject the rest object
62      * @throws Exception the exception
63      */
64     public <T> void Put(T t, org.openecomp.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception;
65
66
67     /***
68      * Log request.
69      *
70      * @param r the r
71      */
72     public void logRequest ( RequestDetails r  );
73     /***
74      * Log request.
75      *
76      * @param r the r
77      */
78     public void logRequest(org.openecomp.vid.changeManagement.RequestDetails r);
79
80
81 }