Remove 'All rights reserved.' on apache 2 license
[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;
29     private boolean allItemsCompleted;
30     private boolean serviceOrderRejected;
31
32     public boolean isAllItemsInAdd() {
33         return allItemsInAdd;
34     }
35
36     public void setAllItemsInAdd(boolean allItemsInAdd) {
37         this.allItemsInAdd = allItemsInAdd;
38     }
39
40     public boolean isAllItemsCompleted() {
41         return allItemsCompleted;
42     }
43
44     public void setAllItemsCompleted(boolean allItemsCompleted) {
45         this.allItemsCompleted = allItemsCompleted;
46     }
47
48     public boolean isServiceOrderRejected() {
49         return serviceOrderRejected;
50     }
51
52     public void setIsServiceOrderRejected(boolean isServiceOrderRejected) {
53         this.serviceOrderRejected = isServiceOrderRejected;
54     }
55
56     public Map<String, ServiceOrderItemInfo> getServiceOrderItemInfos() {
57         return serviceOrderItemInfos;
58     }
59
60     public void addServiceOrderItemInfos(String id, ServiceOrderItemInfo serviceOrderItemInfo) {
61         this.serviceOrderItemInfos.put(id, serviceOrderItemInfo);
62     }
63
64     public SubscriberInfo getSubscriberInfo() {
65         return subscriberInfo;
66     }
67
68     public void setSubscriberInfo(SubscriberInfo subscriberInfo) {
69         this.subscriberInfo = subscriberInfo;
70     }
71
72
73     public boolean isUseServiceOrderCustomer() {
74         return useServiceOrderCustomer;
75     }
76
77     public void setUseServiceOrderCustomer(boolean useServiceOrderCustomer) {
78         this.useServiceOrderCustomer = useServiceOrderCustomer;
79     }
80
81
82 }