3 * Copyright (c) 2017 Orange. All rights reserved.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.nbi.apis.serviceorder.model.orchestrator;
20 import org.onap.nbi.apis.serviceorder.model.consumer.SubscriberInfo;
21 import java.util.HashMap;
24 public class ServiceOrderInfo {
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;
33 public boolean isAllItemsInAdd() {
37 public void setAllItemsInAdd(boolean allItemsInAdd) {
38 this.allItemsInAdd = allItemsInAdd;
41 public boolean isAllItemsCompleted() {
42 return allItemsCompleted;
45 public void setAllItemsCompleted(boolean allItemsCompleted) {
46 this.allItemsCompleted = allItemsCompleted;
49 public boolean isServiceOrderRejected() {
50 return serviceOrderRejected;
53 public void setIsServiceOrderRejected(boolean isServiceOrderRejected) {
54 this.serviceOrderRejected = isServiceOrderRejected;
57 public Map<String, ServiceOrderItemInfo> getServiceOrderItemInfos() {
58 return serviceOrderItemInfos;
61 public void addServiceOrderItemInfos(String id, ServiceOrderItemInfo serviceOrderItemInfo) {
62 this.serviceOrderItemInfos.put(id, serviceOrderItemInfo);
65 public SubscriberInfo getSubscriberInfo() {
66 return subscriberInfo;
69 public void setSubscriberInfo(SubscriberInfo subscriberInfo) {
70 this.subscriberInfo = subscriberInfo;
74 public boolean isUseServiceOrderCustomer() {
75 return useServiceOrderCustomer;
78 public void setUseServiceOrderCustomer(boolean useServiceOrderCustomer) {
79 this.useServiceOrderCustomer = useServiceOrderCustomer;