X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fapi%2Fdata%2FDataBrokerService.java;h=cd04d356a22242f7675cf20e6387faf80c0cf8a9;hb=526185d061ed50c75890b31a376e9495144b660a;hp=dd055aa3820d64c6ffaa084066ed0bf22c25a5d5;hpb=4b1c94354c0396645effe64388bbefb653e29344;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java index dd055aa382..cd04d356a2 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java @@ -11,7 +11,9 @@ import java.util.concurrent.Future; import org.opendaylight.controller.sal.binding.api.BindingAwareService; import org.opendaylight.controller.sal.common.DataStoreIdentifier; +import org.opendaylight.yangtools.yang.binding.DataObject; import org.opendaylight.yangtools.yang.binding.DataRoot; +import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import org.opendaylight.yangtools.yang.common.RpcResult; /** @@ -56,6 +58,7 @@ public interface DataBrokerService extends BindingAwareService { * Data tree filter similar to the NETCONF filter * @return */ + @Deprecated T getData(DataStoreIdentifier store, T filter); /** @@ -68,6 +71,7 @@ public interface DataBrokerService extends BindingAwareService { * Identifier of the store, from which will be data retrieved * @return */ + @Deprecated T getCandidateData(DataStoreIdentifier store, Class rootType); /** @@ -90,6 +94,7 @@ public interface DataBrokerService extends BindingAwareService { * A filter data root * @return */ + @Deprecated T getCandidateData(DataStoreIdentifier store, T filter); /** @@ -104,6 +109,7 @@ public interface DataBrokerService extends BindingAwareService { * @return Result object containing the modified data tree if the operation * was successful, otherwise list of the encountered errors. */ + @Deprecated RpcResult editCandidateData(DataStoreIdentifier store, DataRoot changeSet); /** @@ -130,5 +136,17 @@ public interface DataBrokerService extends BindingAwareService { * @return Result of the commit, containing success information or list of * encountered errors, if commit was not successful. */ + @Deprecated Future> commit(DataStoreIdentifier store); + + + DataObject getData(InstanceIdentifier data); + DataObject getConfigurationData(InstanceIdentifier data); + + /** + * Creates a data modification transaction. + * + * @return new blank data modification transaction. + */ + DataModification beginTransaction(); }