38fedb9c739f8463f10e768f489b5ca04149638b
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / scheduler / policy / PolicyRestInterfaceIfc.java
1
2 package org.openecomp.portalapp.portal.scheduler.policy;
3
4 import org.json.simple.JSONObject;
5 import org.openecomp.portalapp.portal.scheduler.policy.rest.RequestDetails;
6
7 public interface PolicyRestInterfaceIfc {       
8         /**
9          * Inits the rest client.
10          */
11         public void initRestClient();
12         
13         /**
14          * Gets the.
15          *
16          * @param <T> the generic type
17          * @param t the t
18          * @param sourceId the source id
19          * @param path the path
20          * @param restObject the rest object
21          * @throws Exception the exception
22          */
23         public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
24         
25         /**
26          * Delete.
27          *
28          * @param <T> the generic type
29          * @param t the t
30          * @param r the r
31          * @param sourceID the source ID
32          * @param path the path
33          * @param restObject the rest object
34          * @throws Exception the exception
35          */
36         public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
37         
38         /**
39          * Post.
40          *
41          * @param <T> the generic type
42          * @param t the t
43          * @param r the r
44          * @param sourceID the source ID
45          * @param path the path
46          * @param restObject the rest object
47          * @throws Exception the exception
48          */
49         public <T> void Post(T t, JSONObject r, String sourceID, String path, RestObject<T> restObject) throws Exception;
50         
51         /***
52          * Log request.
53          *
54          * @param r the r
55          */
56         public void logRequest ( RequestDetails r  );
57         
58 }