2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.restconf.common.patch;
11 import java.util.List;
12 import org.opendaylight.restconf.common.errors.RestconfError;
14 public class PatchStatusContext {
16 private final String patchId;
17 private final List<PatchStatusEntity> editCollection;
19 private List<RestconfError> globalErrors;
21 public PatchStatusContext(final String patchId, final List<PatchStatusEntity> editCollection,
22 final boolean ok, final List<RestconfError> globalErrors) {
23 this.patchId = patchId;
24 this.editCollection = editCollection;
26 this.globalErrors = globalErrors;
29 public String getPatchId() {
33 public List<PatchStatusEntity> getEditCollection() {
34 return editCollection;
37 public boolean isOk() {
41 public List<RestconfError> getGlobalErrors() {