1057c3039ea967045704a3770c38c61ecdd5fd8c
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / data / DataProviderService.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.controller.sal.binding.api.data;
9
10 import java.util.Map;
11 import java.util.Set;
12
13 import org.opendaylight.controller.sal.common.DataStoreIdentifier;
14 import org.opendaylight.yangtools.yang.binding.DataObject;
15 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
16
17 public interface DataProviderService extends DataBrokerService {
18
19     /**
20      * Adds {@link DataValidator} for specified Data Store
21      * 
22      * @param store
23      *            Data Store
24      * @param validator
25      *            Validator
26      */
27     @Deprecated
28     public void addValidator(DataStoreIdentifier store, DataValidator validator);
29
30     /**
31      * Removes {@link DataValidator} from specified Data Store
32      * 
33      * @param store
34      * @param validator
35      *            Validator
36      */
37     
38     @Deprecated
39     public void removeValidator(DataStoreIdentifier store, DataValidator validator);
40
41     /**
42      * Adds {@link DataCommitHandler} for specified data store
43      * 
44      * @param store
45      * @param provider
46      */
47     @Deprecated
48     void addCommitHandler(DataStoreIdentifier store, DataCommitHandler provider);
49
50     /**
51      * Removes {@link DataCommitHandler} from specified data store
52      * 
53      * @param store
54      * @param provider
55      */
56     @Deprecated
57     void removeCommitHandler(DataStoreIdentifier store, DataCommitHandler provider);
58
59     /**
60      * Adds {@link DataRefresher} for specified data store
61      * 
62      * @param store
63      * @param refresher
64      */
65     void addRefresher(DataStoreIdentifier store, DataRefresher refresher);
66
67     /**
68      * Removes {@link DataRefresher} from specified data store
69      * 
70      * @param store
71      * @param refresher
72      */
73     void removeRefresher(DataStoreIdentifier store, DataRefresher refresher);
74
75     public void registerCommitHandler(InstanceIdentifier path, DataCommitHandler commitHandler);
76     
77     public void registerValidator(InstanceIdentifier path, DataValidator validator);
78
79 }