Skip to content

Commit 19e17c7

Browse files
committed
Final implementations for HttpClient in save&restore
1 parent 90e5832 commit 19e17c7

File tree

5 files changed

+347
-105
lines changed

5 files changed

+347
-105
lines changed

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/client/SaveAndRestoreClient.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ public interface SaveAndRestoreClient {
107107
*/
108108
List<Tag> getAllTags();
109109

110-
/**
111-
* @return All snapshot {@link Node}s persisted on the remote service
112-
*/
113-
List<Node> getAllSnapshots();
114110

115111
/**
116112
* Move a set of {@link Node}s to a new parent {@link Node}
@@ -130,6 +126,11 @@ public interface SaveAndRestoreClient {
130126
*/
131127
Node copyNodes(List<String> sourceNodeIds, String targetNodeId);
132128

129+
/**
130+
* Constructs a path like string to facilitate location of a {@link Node} in the tree structure.
131+
* @param uniqueNodeId Unique id
132+
* @return Path like /Root folder/foo/bar/my/favourite/node
133+
*/
133134
String getFullPath(String uniqueNodeId);
134135

135136
ConfigurationData getConfigurationData(String nodeId);
@@ -149,6 +150,12 @@ public interface SaveAndRestoreClient {
149150

150151
SnapshotData getSnapshotData(String uniqueId);
151152

153+
/**
154+
* Creates a {@link Snapshot}
155+
* @param parentNodeId The unique id of the configuration {@link Node} associated with the {@link Snapshot}
156+
* @param snapshot The {@link Snapshot} data object.
157+
* @return The new {@link Snapshot} as persisted by the service
158+
*/
152159
Snapshot createSnapshot(String parentNodeId, Snapshot snapshot);
153160

154161
Snapshot updateSnapshot(Snapshot snapshot);

0 commit comments

Comments
 (0)