Bulk-add copyright headers to .xtend files
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / DeprecatedDataAPISupport.xtend
1 /*
2  * Copyright (c) 2014 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.controller.sal.binding.impl
9
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
16
17 abstract class DeprecatedDataAPISupport implements DataProviderService {
18
19     @Deprecated
20     override commit(DataStoreIdentifier store) {
21         throw new UnsupportedOperationException("Deprecated")
22     }
23
24     @Deprecated
25     override editCandidateData(DataStoreIdentifier store, DataRoot changeSet) {
26         throw new UnsupportedOperationException("Deprecated")
27     }
28
29     @Deprecated
30     override <T extends DataRoot> getCandidateData(DataStoreIdentifier store, Class<T> rootType) {
31         throw new UnsupportedOperationException("Deprecated")
32     }
33
34     @Deprecated
35     override <T extends DataRoot> T getCandidateData(DataStoreIdentifier store, T filter) {
36         throw new UnsupportedOperationException("Deprecated")
37     }
38
39     @Deprecated
40     override getConfigurationData(InstanceIdentifier<?> data) {
41         throw new UnsupportedOperationException("Deprecated")
42     }
43
44     @Deprecated
45     override <T extends DataRoot> getData(DataStoreIdentifier store, Class<T> rootType) {
46         throw new UnsupportedOperationException("Deprecated")
47     }
48
49     @Deprecated
50     override <T extends DataRoot> T getData(DataStoreIdentifier store, T filter) {
51         throw new UnsupportedOperationException("Deprecated")
52     }
53
54     @Deprecated
55     override getData(InstanceIdentifier<? extends DataObject> path) {
56         return readOperationalData(path);
57     }
58
59     override registerChangeListener(InstanceIdentifier<? extends DataObject> path, DataChangeListener changeListener) {
60     }
61
62     override unregisterChangeListener(InstanceIdentifier<? extends DataObject> path,
63         DataChangeListener changeListener) {
64     }
65
66 }