ae7ff27bed5a929f2fd9ae6aeb85b9d3c6ff60b2
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / sdncrest / RequestInformation.java
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.sdncrest;
22
23 import java.io.Serializable;
24
25 import javax.xml.bind.annotation.XmlElement;
26
27 import com.fasterxml.jackson.annotation.JsonProperty;
28
29 /**
30  * Request Information specified by the SDNC "agnostic" API.
31  */
32 public class RequestInformation implements Serializable {
33         private static final long serialVersionUID = 1L;
34
35         // Identifies the transaction MSO has with the calling system.
36         private String requestId;
37
38         // Identifies the calling system, e.g. CCD.
39         private String source;
40
41         // The calling system's endpoint for receiving notifications from MSO.
42         private String notificationUrl;
43
44         // NOTE: these are defined in the SDNC AID, but not used by MSO:
45         //     request-action
46         //     request-sub-action
47
48         // Identifies the request action
49         private String requestAction;
50
51         // Identifies the request sub action
52         private String requestSubAction;
53
54         @JsonProperty("orderNumber")
55         @XmlElement(name = "orderNumber")
56         private String orderNumber;
57         
58         @JsonProperty("orderVersion")
59         @XmlElement(name = "orderVersion")
60         private String orderVersion;
61
62         public RequestInformation(String requestId, String source, String notificationUrl) {
63                 this.requestId = requestId;
64                 this.source = source;
65                 this.notificationUrl = notificationUrl;
66         }
67
68         public RequestInformation() {
69         }
70
71         @JsonProperty("requestId")
72         @XmlElement(name = "requestId")
73         public String getRequestId() {
74                 return requestId;
75         }
76
77         @JsonProperty("requestId")
78         public void setRequestId(String requestId) {
79                 this.requestId = requestId;
80         }
81
82         @JsonProperty("source")
83         @XmlElement(name = "source")
84         public String getSource() {
85                 return source;
86         }
87
88         @JsonProperty("source")
89         public void setSource(String source) {
90                 this.source = source;
91         }
92
93         @JsonProperty("notificationUrl")
94         @XmlElement(name = "notificationUrl")
95         public String getNotificationUrl() {
96                 return notificationUrl;
97         }
98
99         @JsonProperty("notificationUrl")
100         public void setNotificationUrl(String notificationUrl) {
101                 this.notificationUrl = notificationUrl;
102         }
103
104         @JsonProperty("requestAction")
105         @XmlElement(name = "requestAction")
106         public String getRequestAction() {
107                 return requestAction;
108         }
109
110         @JsonProperty("requestAction")
111         public void setRequestAction(String requestAction) {
112                 this.requestAction = requestAction;
113         }
114
115         @JsonProperty("requestSubAction")
116         @XmlElement(name = "requestSubAction")
117         public String getRequestSubAction() {
118                 return requestSubAction;
119         }
120
121         @JsonProperty("requestSubAction")
122         public void setRequestSubAction(String requestSubAction) {
123                 this.requestSubAction = requestSubAction;
124         }
125
126         public String getOrderNumber() {
127                 return orderNumber;
128         }
129
130         public void setOrderNumber(String orderNumber) {
131                 this.orderNumber = orderNumber;
132         }
133
134         public String getOrderVersion() {
135                 return orderVersion;
136         }
137
138         public void setOrderVersion(String orderVersion) {
139                 this.orderVersion = orderVersion;
140         }
141         
142         
143 }