2 * ============LICENSE_START=======================================================
\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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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
21 package org.openecomp.vid.mso;
\r
23 import org.openecomp.vid.changeManagement.ChangeManagementRequest;
\r
24 import org.openecomp.vid.mso.rest.RequestDetails;
\r
27 * The Interface MsoRestInterfaceIfc.
\r
29 public interface MsoRestInterfaceIfc {
\r
32 * Inits the rest client.
\r
34 public void initMsoClient();
\r
39 * @param <T> the generic type
\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
46 public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
\r
51 * @param <T> the generic type
\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
59 public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
\r
64 * @param <T> the generic type
\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
72 public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
\r
77 * @param <T> the generic type
\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
85 public <T> void Put(T t, ChangeManagementRequest r, String sourceID, String path, RestObject<T> restObject) throws Exception ;
\r
91 public void logRequest ( RequestDetails r );
\r