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= true;
29 private boolean allItemsCompleted;
30 private boolean serviceOrderRejected= false;
31 private String serviceOrderId;
33 public String getServiceOrderId() {
34 return serviceOrderId;
37 public void setServiceOrderId(String serviceOrderId) {
38 this.serviceOrderId = serviceOrderId;
41 public boolean isAllItemsInAdd() {
45 public void setAllItemsInAdd(boolean allItemsInAdd) {
46 this.allItemsInAdd = allItemsInAdd;
49 public boolean isAllItemsCompleted() {
50 return allItemsCompleted;
53 public void setAllItemsCompleted(boolean allItemsCompleted) {
54 this.allItemsCompleted = allItemsCompleted;
57 public boolean isServiceOrderRejected() {
58 return serviceOrderRejected;
61 public void setIsServiceOrderRejected(boolean isServiceOrderRejected) {
62 this.serviceOrderRejected = isServiceOrderRejected;
65 public Map<String, ServiceOrderItemInfo> getServiceOrderItemInfos() {
66 return serviceOrderItemInfos;
69 public void addServiceOrderItemInfos(String id, ServiceOrderItemInfo serviceOrderItemInfo) {
70 this.serviceOrderItemInfos.put(id, serviceOrderItemInfo);
73 public SubscriberInfo getSubscriberInfo() {
74 return subscriberInfo;
77 public void setSubscriberInfo(SubscriberInfo subscriberInfo) {
78 this.subscriberInfo = subscriberInfo;
82 public boolean isUseServiceOrderCustomer() {
83 return useServiceOrderCustomer;
86 public void setUseServiceOrderCustomer(boolean useServiceOrderCustomer) {
87 this.useServiceOrderCustomer = useServiceOrderCustomer;