Merge "Use Preconditions"
[controller.git] / opendaylight / netconf / mdsal-netconf-connector / src / main / java / org / opendaylight / controller / netconf / mdsal / connector / MdsalNetconfOperationService.java
1 /*
2  * Copyright (c) 2013 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.controller.netconf.mdsal.connector;
10
11 import java.util.Set;
12 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
13 import org.opendaylight.controller.netconf.mapping.api.NetconfOperation;
14 import org.opendaylight.controller.netconf.mapping.api.NetconfOperationService;
15
16 public class MdsalNetconfOperationService implements NetconfOperationService {
17
18     private final OperationProvider operationProvider;
19
20     public MdsalNetconfOperationService(final CurrentSchemaContext schemaContext, final String netconfSessionIdForReporting,
21                                         final DOMDataBroker dataBroker) {
22         this.operationProvider = new OperationProvider(netconfSessionIdForReporting, schemaContext, dataBroker);
23     }
24
25     @Override
26     public void close() {
27
28     }
29
30     @Override
31     public Set<NetconfOperation> getNetconfOperations() {
32         return operationProvider.getOperations();
33     }
34
35 }