2 * Copyright (c) 2018 Orange
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.nbi.apis.serviceorder.model.orchestrator;
19 import org.onap.nbi.apis.serviceorder.model.consumer.SubscriberInfo;
20 import java.util.HashMap;
23 public class ServiceOrderInfo {
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;
32 public boolean isAllItemsInAdd() {
36 public void setAllItemsInAdd(boolean allItemsInAdd) {
37 this.allItemsInAdd = allItemsInAdd;
40 public boolean isAllItemsCompleted() {
41 return allItemsCompleted;
44 public void setAllItemsCompleted(boolean allItemsCompleted) {
45 this.allItemsCompleted = allItemsCompleted;
48 public boolean isServiceOrderRejected() {
49 return serviceOrderRejected;
52 public void setIsServiceOrderRejected(boolean isServiceOrderRejected) {
53 this.serviceOrderRejected = isServiceOrderRejected;
56 public Map<String, ServiceOrderItemInfo> getServiceOrderItemInfos() {
57 return serviceOrderItemInfos;
60 public void addServiceOrderItemInfos(String id, ServiceOrderItemInfo serviceOrderItemInfo) {
61 this.serviceOrderItemInfos.put(id, serviceOrderItemInfo);
64 public SubscriberInfo getSubscriberInfo() {
65 return subscriberInfo;
68 public void setSubscriberInfo(SubscriberInfo subscriberInfo) {
69 this.subscriberInfo = subscriberInfo;
73 public boolean isUseServiceOrderCustomer() {
74 return useServiceOrderCustomer;
77 public void setUseServiceOrderCustomer(boolean useServiceOrderCustomer) {
78 this.useServiceOrderCustomer = useServiceOrderCustomer;