Split Restconf implementations (draft02 and RFC) - move
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / patch / PatchStatusContext.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.restconf.common.patch;
10
11 import java.util.List;
12 import org.opendaylight.restconf.common.errors.RestconfError;
13
14 public class PatchStatusContext {
15
16     private final String patchId;
17     private final List<PatchStatusEntity> editCollection;
18     private boolean ok;
19     private List<RestconfError> globalErrors;
20
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;
25         this.ok = ok;
26         this.globalErrors = globalErrors;
27     }
28
29     public String getPatchId() {
30         return patchId;
31     }
32
33     public List<PatchStatusEntity> getEditCollection() {
34         return editCollection;
35     }
36
37     public boolean isOk() {
38         return ok;
39     }
40
41     public List<RestconfError> getGlobalErrors() {
42         return globalErrors;
43     }
44 }