2 * Copyright (c) 2013 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.netconf.confignetconfconnector.osgi;
12 import org.opendaylight.controller.config.facade.xml.ConfigSubsystemFacade;
13 import org.opendaylight.netconf.mapping.api.NetconfOperation;
14 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
16 public class NetconfOperationServiceImpl implements NetconfOperationService {
18 private final NetconfOperationProvider operationProvider;
19 private final ConfigSubsystemFacade configSubsystemFacade;
21 public NetconfOperationServiceImpl(final ConfigSubsystemFacade configSubsystemFacade,
22 final String netconfSessionIdForReporting) {
23 this.configSubsystemFacade = configSubsystemFacade;
24 this.operationProvider = new NetconfOperationProvider(configSubsystemFacade, netconfSessionIdForReporting);
28 public Set<NetconfOperation> getNetconfOperations() {
29 return operationProvider.getOperations();
34 configSubsystemFacade.close();