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