X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2FBrokerFacade.java;h=861aaac3d81552957b5798c3b775501d830fadce;hp=ead1740ffd8befb557d85688b4a443f7edfd1134;hb=0eb621d29daaf08979c356e2148e99c48458e169;hpb=5700d3fd27b5a76671b595822cf2dad9274acd2f diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.java index ead1740ffd..861aaac3d8 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.java @@ -28,11 +28,11 @@ import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.common.RpcResult; import org.opendaylight.yangtools.yang.common.RpcResultBuilder; import org.opendaylight.yangtools.yang.data.api.CompositeNode; -import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier; +import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class BrokerFacade implements DataReader { +public class BrokerFacade implements DataReader { private final static Logger LOG = LoggerFactory.getLogger(BrokerFacade.class); private final static BrokerFacade INSTANCE = new BrokerFacade(); @@ -62,7 +62,7 @@ public class BrokerFacade implements DataReader> commitConfigurationDataPut(final InstanceIdentifier path, + public Future> commitConfigurationDataPut(final YangInstanceIdentifier path, final CompositeNode payload) { this.checkPreconditions(); @@ -114,7 +114,7 @@ public class BrokerFacade implements DataReader> commitConfigurationDataPutBehindMountPoint( - final MountInstance mountPoint, final InstanceIdentifier path, final CompositeNode payload) { + final MountInstance mountPoint, final YangInstanceIdentifier path, final CompositeNode payload) { this.checkPreconditions(); final DataModificationTransaction transaction = mountPoint.beginTransaction(); @@ -123,7 +123,7 @@ public class BrokerFacade implements DataReader> commitConfigurationDataPost(final InstanceIdentifier path, + public Future> commitConfigurationDataPost(final YangInstanceIdentifier path, final CompositeNode payload) { this.checkPreconditions(); @@ -143,7 +143,7 @@ public class BrokerFacade implements DataReader> commitConfigurationDataPostBehindMountPoint( - final MountInstance mountPoint, final InstanceIdentifier path, final CompositeNode payload) { + final MountInstance mountPoint, final YangInstanceIdentifier path, final CompositeNode payload) { this.checkPreconditions(); final DataModificationTransaction transaction = mountPoint.beginTransaction(); @@ -161,18 +161,18 @@ public class BrokerFacade implements DataReader> commitConfigurationDataDelete(final InstanceIdentifier path) { + public Future> commitConfigurationDataDelete(final YangInstanceIdentifier path) { this.checkPreconditions(); return deleteDataAtTarget(path, dataService.beginTransaction()); } public Future> commitConfigurationDataDeleteBehindMountPoint( - final MountInstance mountPoint, final InstanceIdentifier path) { + final MountInstance mountPoint, final YangInstanceIdentifier path) { this.checkPreconditions(); return deleteDataAtTarget(path, mountPoint.beginTransaction()); } - private Future> deleteDataAtTarget(final InstanceIdentifier path, + private Future> deleteDataAtTarget(final YangInstanceIdentifier path, final DataModificationTransaction transaction) { LOG.info("Delete Configuration via Restconf: {}", path); CompositeNode redDataAtPath = transaction.readConfigurationData(path); @@ -191,7 +191,7 @@ public class BrokerFacade implements DataReader registration = dataService.registerDataChangeListener(path, listener);