Updated implementation of broker (data services, generated code), added Integration...
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / DeprecatedDataAPISupport.xtend
1 package org.opendaylight.controller.sal.binding.impl
2
3 import org.opendaylight.controller.sal.binding.api.data.DataProviderService
4 import org.opendaylight.controller.sal.common.DataStoreIdentifier
5 import org.opendaylight.yangtools.yang.binding.DataRoot
6 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier
7 import org.opendaylight.yangtools.yang.binding.DataObject
8 import org.opendaylight.controller.sal.binding.api.data.DataChangeListener
9
10 abstract class DeprecatedDataAPISupport implements DataProviderService {
11
12     @Deprecated
13     override commit(DataStoreIdentifier store) {
14         throw new UnsupportedOperationException("Deprecated")
15     }
16
17     @Deprecated
18     override editCandidateData(DataStoreIdentifier store, DataRoot changeSet) {
19         throw new UnsupportedOperationException("Deprecated")
20     }
21
22     @Deprecated
23     override <T extends DataRoot> getCandidateData(DataStoreIdentifier store, Class<T> rootType) {
24         throw new UnsupportedOperationException("Deprecated")
25     }
26
27     @Deprecated
28     override <T extends DataRoot> T getCandidateData(DataStoreIdentifier store, T filter) {
29         throw new UnsupportedOperationException("Deprecated")
30     }
31
32     @Deprecated
33     override getConfigurationData(InstanceIdentifier<?> data) {
34         throw new UnsupportedOperationException("Deprecated")
35     }
36
37     @Deprecated
38     override <T extends DataRoot> getData(DataStoreIdentifier store, Class<T> rootType) {
39         throw new UnsupportedOperationException("Deprecated")
40     }
41
42     @Deprecated
43     override <T extends DataRoot> T getData(DataStoreIdentifier store, T filter) {
44         throw new UnsupportedOperationException("Deprecated")
45     }
46
47     @Deprecated
48     override getData(InstanceIdentifier<? extends DataObject> path) {
49         return readOperationalData(path);
50     }
51
52     override registerChangeListener(InstanceIdentifier<? extends DataObject> path, DataChangeListener changeListener) {
53     }
54
55     override unregisterChangeListener(InstanceIdentifier<? extends DataObject> path,
56         DataChangeListener changeListener) {
57     }
58
59 }