2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.adapters.sdncrest;
23 import java.io.Serializable;
25 import javax.xml.bind.annotation.XmlElement;
27 import com.fasterxml.jackson.annotation.JsonProperty;
30 * Request Information specified by the SDNC "agnostic" API.
32 public class RequestInformation implements Serializable {
33 private static final long serialVersionUID = 1L;
35 // Identifies the transaction MSO has with the calling system.
36 private String requestId;
38 // Identifies the calling system, e.g. CCD.
39 private String source;
41 // The calling system's endpoint for receiving notifications from MSO.
42 private String notificationUrl;
44 // NOTE: these are defined in the SDNC AID, but not used by MSO:
48 // Identifies the request action
49 private String requestAction;
51 // Identifies the request sub action
52 private String requestSubAction;
54 @JsonProperty("orderNumber")
55 @XmlElement(name = "orderNumber")
56 private String orderNumber;
58 @JsonProperty("orderVersion")
59 @XmlElement(name = "orderVersion")
60 private String orderVersion;
62 public RequestInformation(String requestId, String source, String notificationUrl) {
63 this.requestId = requestId;
65 this.notificationUrl = notificationUrl;
68 public RequestInformation() {
71 @JsonProperty("requestId")
72 @XmlElement(name = "requestId")
73 public String getRequestId() {
77 @JsonProperty("requestId")
78 public void setRequestId(String requestId) {
79 this.requestId = requestId;
82 @JsonProperty("source")
83 @XmlElement(name = "source")
84 public String getSource() {
88 @JsonProperty("source")
89 public void setSource(String source) {
93 @JsonProperty("notificationUrl")
94 @XmlElement(name = "notificationUrl")
95 public String getNotificationUrl() {
96 return notificationUrl;
99 @JsonProperty("notificationUrl")
100 public void setNotificationUrl(String notificationUrl) {
101 this.notificationUrl = notificationUrl;
104 @JsonProperty("requestAction")
105 @XmlElement(name = "requestAction")
106 public String getRequestAction() {
107 return requestAction;
110 @JsonProperty("requestAction")
111 public void setRequestAction(String requestAction) {
112 this.requestAction = requestAction;
115 @JsonProperty("requestSubAction")
116 @XmlElement(name = "requestSubAction")
117 public String getRequestSubAction() {
118 return requestSubAction;
121 @JsonProperty("requestSubAction")
122 public void setRequestSubAction(String requestSubAction) {
123 this.requestSubAction = requestSubAction;
126 public String getOrderNumber() {
130 public void setOrderNumber(String orderNumber) {
131 this.orderNumber = orderNumber;
134 public String getOrderVersion() {
138 public void setOrderVersion(String orderVersion) {
139 this.orderVersion = orderVersion;