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