Restructure putData() implementation 00/107800/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Sep 2023 21:53:40 +0000 (23:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Sep 2023 22:23:22 +0000 (00:23 +0200)
commitb0310f6de9e9ea1d4771bf21736347a7628f04a6
tree0bfae91f69d07b711bc991fc96313d0b7f922c12
parentd76c19b1c5c11275e8cb443a56f13a975bb3a9ae
Restructure putData() implementation

Our new how in RestconfStrategy allows us to restructure how we go about
executing this operation. The new layout checks the paramteres before
allocating a transaction and nicely differentiates the two distinct code
paths based on insert parameter.

JIRA: NETCONF-1125
Change-Id: I20bc640b0d14f24f508f664703cd1d85d21a50cb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/WriteDataParams.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/transactions/RestconfStrategy.java