84ff054a7c8f212ecaa381b568f2de07a16871d9
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.adapters.requestsdb;
22
23 import javax.jws.WebMethod;
24 import javax.jws.WebParam;
25 import javax.jws.WebService;
26 import javax.xml.bind.annotation.XmlElement;
27 import org.onap.so.adapters.requestsdb.exceptions.MsoRequestsDbException;
28 import org.onap.so.db.request.beans.InfraActiveRequests;
29 import org.onap.so.db.request.beans.InstanceNfvoMapping;
30 import org.onap.so.db.request.beans.ResourceOperationStatus;
31
32 /**
33  * MSO Request DB Adapter Web Service
34  */
35 @Deprecated
36 @WebService(name = "RequestsDbAdapter", targetNamespace = "http://org.onap.so/requestsdb")
37 public interface MsoRequestsDbAdapter {
38
39     @WebMethod
40     public void updateInfraRequest(@WebParam(name = "requestId") @XmlElement(required = true) String requestId,
41             @WebParam(name = "lastModifiedBy") @XmlElement(required = true) String lastModifiedBy,
42             @WebParam(name = "statusMessage") @XmlElement(required = false) String statusMessage,
43             @WebParam(name = "responseBody") @XmlElement(required = false) String responseBody,
44             @WebParam(name = "requestStatus") @XmlElement(required = false) RequestStatusType requestStatus,
45             @WebParam(name = "progress") @XmlElement(required = false) String progress,
46             @WebParam(name = "vnfOutputs") @XmlElement(required = false) String vnfOutputs,
47             @WebParam(name = "serviceInstanceId") @XmlElement(required = false) String serviceInstanceId,
48             @WebParam(name = "networkId") @XmlElement(required = false) String networkId,
49             @WebParam(name = "vnfId") @XmlElement(required = false) String vnfId,
50             @WebParam(name = "vfModuleId") @XmlElement(required = false) String vfModuleId,
51             @WebParam(name = "volumeGroupId") @XmlElement(required = false) String volumeGroupId,
52             @WebParam(name = "serviceInstanceName") @XmlElement(required = false) String serviceInstanceName,
53             @WebParam(name = "configurationId") @XmlElement(required = false) String configurationId,
54             @WebParam(name = "configurationName") @XmlElement(required = false) String configurationName,
55             @WebParam(name = "vfModuleName") @XmlElement(required = false) String vfModuleName)
56             throws MsoRequestsDbException;
57
58     @WebMethod
59     public void setInstanceNfvoMappingRepository(
60             @WebParam(name = "instanceId") @XmlElement(required = true) String instanceId,
61             @WebParam(name = "nfvoName") @XmlElement(required = true) String nfvoName,
62             @WebParam(name = "endpoint") @XmlElement(required = true) String endpoint,
63             @WebParam(name = "username") @XmlElement(required = true) String username,
64             @WebParam(name = "password") @XmlElement(required = true) String password,
65             @WebParam(name = "apiRoot") @XmlElement(required = false) String apiRoot) throws MsoRequestsDbException;
66
67     @WebMethod
68     public InstanceNfvoMapping getInstanceNfvoMapping(
69             @WebParam(name = "instanceId") @XmlElement(required = true) String instanceId)
70             throws MsoRequestsDbException;
71
72     @WebMethod
73     public InfraActiveRequests getInfraRequest(
74             @WebParam(name = "requestId") @XmlElement(required = true) String requestId) throws MsoRequestsDbException;
75
76     @WebMethod
77     public boolean getSiteStatus(@WebParam(name = "siteName") @XmlElement(required = true) String siteName);
78
79     @WebMethod
80     public void updateServiceOperationStatus(
81             @WebParam(name = "serviceId") @XmlElement(required = true) String serviceId,
82             @WebParam(name = "operationId") @XmlElement(required = false) String operationId,
83             @WebParam(name = "operationType") @XmlElement(required = false) String operationType,
84             @WebParam(name = "userId") @XmlElement(required = false) String userId,
85             @WebParam(name = "result") @XmlElement(required = false) String result,
86             @WebParam(name = "operationContent") @XmlElement(required = false) String operationContent,
87             @WebParam(name = "progress") @XmlElement(required = false) String progress,
88             @WebParam(name = "reason") @XmlElement(required = false) String reason) throws MsoRequestsDbException;
89
90     @WebMethod
91     public void initServiceOperationStatus(@WebParam(name = "serviceId") @XmlElement(required = true) String serviceId,
92             @WebParam(name = "operationId") @XmlElement(required = false) String operationId,
93             @WebParam(name = "operationType") @XmlElement(required = false) String operationType,
94             @WebParam(name = "userId") @XmlElement(required = false) String userId,
95             @WebParam(name = "result") @XmlElement(required = false) String result,
96             @WebParam(name = "operationContent") @XmlElement(required = false) String operationContent,
97             @WebParam(name = "progress") @XmlElement(required = false) String progress,
98             @WebParam(name = "reason") @XmlElement(required = false) String reason) throws MsoRequestsDbException;
99
100     @WebMethod
101     public void initResourceOperationStatus(@WebParam(name = "serviceId") @XmlElement(required = true) String serviceId,
102             @WebParam(name = "operationId") @XmlElement(required = true) String operationId,
103             @WebParam(name = "operationType") @XmlElement(required = true) String operationType,
104             @WebParam(name = "resourceTemplateUUIDs") @XmlElement(required = true) String resourceTemplateUUIDs)
105             throws MsoRequestsDbException;
106
107     @WebMethod
108     public ResourceOperationStatus getResourceOperationStatus(
109             @WebParam(name = "serviceId") @XmlElement(required = true) String serviceId,
110             @WebParam(name = "operationId") @XmlElement(required = true) String operationId,
111             @WebParam(name = "resourceTemplateUUID") @XmlElement(required = true) String resourceTemplateUUID)
112             throws MsoRequestsDbException;
113
114     @WebMethod
115     public void updateResourceOperationStatus(
116             @WebParam(name = "serviceId") @XmlElement(required = true) String serviceId,
117             @WebParam(name = "operationId") @XmlElement(required = true) String operationId,
118             @WebParam(name = "resourceTemplateUUID") @XmlElement(required = true) String resourceTemplateUUID,
119             @WebParam(name = "operType") @XmlElement(required = false) String operType,
120             @WebParam(name = "resourceInstanceID") @XmlElement(required = false) String resourceInstanceID,
121             @WebParam(name = "jobId") @XmlElement(required = false) String jobId,
122             @WebParam(name = "status") @XmlElement(required = false) String status,
123             @WebParam(name = "progress") @XmlElement(required = false) String progress,
124             @WebParam(name = "errorCode") @XmlElement(required = false) String errorCode,
125             @WebParam(name = "statusDescription") @XmlElement(required = false) String statusDescription)
126             throws MsoRequestsDbException;
127 }