Bug 3866: Support for Restconf HTTP Patch
[netconf.git] / opendaylight / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / restconf / impl / 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.netconf.sal.restconf.impl;
10
11 import java.util.List;
12
13 public class PATCHStatusContext {
14
15     private final String patchId;
16     private final List<PATCHStatusEntity> editCollection;
17     private boolean ok;
18     private List<RestconfError> globalErrors;
19
20     public PATCHStatusContext(final String patchId, final List<PATCHStatusEntity> editCollection,
21                               final boolean ok, final List<RestconfError> globalErrors) {
22         this.patchId = patchId;
23         this.editCollection = editCollection;
24         this.ok = ok;
25         this.globalErrors = globalErrors;
26     }
27
28     public String getPatchId() {
29         return patchId;
30     }
31
32     public List<PATCHStatusEntity> getEditCollection() {
33         return editCollection;
34     }
35
36     public boolean isOk() {
37         return ok;
38     }
39
40     public List<RestconfError> getGlobalErrors() {
41         return globalErrors;
42     }
43 }