fd0eed5e53a86ab6303b867c3961267653c0b1d1
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / orchestrator / ServiceOrderInfo.java
1 /**
2  *     Copyright (c) 2018 Orange
3  *
4  *     Licensed under the Apache License, Version 2.0 (the "License");
5  *     you may not use this file except in compliance with the License.
6  *     You may obtain a copy of the License at
7  *
8  *         http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *     Unless required by applicable law or agreed to in writing, software
11  *     distributed under the License is distributed on an "AS IS" BASIS,
12  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *     See the License for the specific language governing permissions and
14  *     limitations under the License.
15  */
16 package org.onap.nbi.apis.serviceorder.model.orchestrator;
17
18
19 import org.onap.nbi.apis.serviceorder.model.consumer.SubscriberInfo;
20 import java.util.HashMap;
21 import java.util.Map;
22
23 public class ServiceOrderInfo {
24
25     private boolean useServiceOrderCustomer;
26     private SubscriberInfo subscriberInfo;
27     private Map<String, ServiceOrderItemInfo> serviceOrderItemInfos = new HashMap<>();
28     private boolean allItemsInAdd= true;
29     private boolean allItemsCompleted;
30     private boolean serviceOrderRejected= false;
31     private String serviceOrderId;
32
33     public String getServiceOrderId() {
34         return serviceOrderId;
35     }
36
37     public void setServiceOrderId(String serviceOrderId) {
38         this.serviceOrderId = serviceOrderId;
39     }
40
41     public boolean isAllItemsInAdd() {
42         return allItemsInAdd;
43     }
44
45     public void setAllItemsInAdd(boolean allItemsInAdd) {
46         this.allItemsInAdd = allItemsInAdd;
47     }
48
49     public boolean isAllItemsCompleted() {
50         return allItemsCompleted;
51     }
52
53     public void setAllItemsCompleted(boolean allItemsCompleted) {
54         this.allItemsCompleted = allItemsCompleted;
55     }
56
57     public boolean isServiceOrderRejected() {
58         return serviceOrderRejected;
59     }
60
61     public void setIsServiceOrderRejected(boolean isServiceOrderRejected) {
62         this.serviceOrderRejected = isServiceOrderRejected;
63     }
64
65     public Map<String, ServiceOrderItemInfo> getServiceOrderItemInfos() {
66         return serviceOrderItemInfos;
67     }
68
69     public void addServiceOrderItemInfos(String id, ServiceOrderItemInfo serviceOrderItemInfo) {
70         this.serviceOrderItemInfos.put(id, serviceOrderItemInfo);
71     }
72
73     public SubscriberInfo getSubscriberInfo() {
74         return subscriberInfo;
75     }
76
77     public void setSubscriberInfo(SubscriberInfo subscriberInfo) {
78         this.subscriberInfo = subscriberInfo;
79     }
80
81
82     public boolean isUseServiceOrderCustomer() {
83         return useServiceOrderCustomer;
84     }
85
86     public void setUseServiceOrderCustomer(boolean useServiceOrderCustomer) {
87         this.useServiceOrderCustomer = useServiceOrderCustomer;
88     }
89
90
91 }