Migrate netconf to MD-SAL APIs
[netconf.git] / netconf / mdsal-netconf-connector / src / main / java / org / opendaylight / 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 package org.opendaylight.netconf.mdsal.connector;
9
10 import java.util.Set;
11 import org.opendaylight.mdsal.dom.api.DOMDataBroker;
12 import org.opendaylight.mdsal.dom.api.DOMRpcService;
13 import org.opendaylight.netconf.mapping.api.NetconfOperation;
14 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
15
16 public class MdsalNetconfOperationService implements NetconfOperationService {
17
18     private final OperationProvider operationProvider;
19
20     public MdsalNetconfOperationService(final CurrentSchemaContext schemaContext,
21                                         final String netconfSessionIdForReporting,
22                                         final DOMDataBroker dataBroker, final DOMRpcService rpcService) {
23         this.operationProvider = new OperationProvider(netconfSessionIdForReporting, schemaContext, dataBroker,
24                 rpcService);
25     }
26
27     @Override
28     public void close() {
29
30     }
31
32     @Override
33     public Set<NetconfOperation> getNetconfOperations() {
34         return operationProvider.getOperations();
35     }
36
37 }