2 * Copyright (c) 2014 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
8 package org.opendaylight.controller.sal.binding.impl
10 import org.opendaylight.controller.sal.binding.api.data.DataProviderService
11 import org.opendaylight.controller.sal.common.DataStoreIdentifier
12 import org.opendaylight.yangtools.yang.binding.DataRoot
13 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier
14 import org.opendaylight.yangtools.yang.binding.DataObject
15 import org.opendaylight.controller.sal.binding.api.data.DataChangeListener
17 abstract class DeprecatedDataAPISupport implements DataProviderService {
20 override commit(DataStoreIdentifier store) {
21 throw new UnsupportedOperationException("Deprecated")
25 override editCandidateData(DataStoreIdentifier store, DataRoot changeSet) {
26 throw new UnsupportedOperationException("Deprecated")
30 override <T extends DataRoot> getCandidateData(DataStoreIdentifier store, Class<T> rootType) {
31 throw new UnsupportedOperationException("Deprecated")
35 override <T extends DataRoot> T getCandidateData(DataStoreIdentifier store, T filter) {
36 throw new UnsupportedOperationException("Deprecated")
40 override getConfigurationData(InstanceIdentifier<?> data) {
41 throw new UnsupportedOperationException("Deprecated")
45 override <T extends DataRoot> getData(DataStoreIdentifier store, Class<T> rootType) {
46 throw new UnsupportedOperationException("Deprecated")
50 override <T extends DataRoot> T getData(DataStoreIdentifier store, T filter) {
51 throw new UnsupportedOperationException("Deprecated")
55 override getData(InstanceIdentifier<? extends DataObject> path) {
56 return readOperationalData(path);
59 override registerChangeListener(InstanceIdentifier<? extends DataObject> path, DataChangeListener changeListener) {
62 override unregisterChangeListener(InstanceIdentifier<? extends DataObject> path,
63 DataChangeListener changeListener) {