From 6fafe992bac4edcf1d348a7324de849f91768dce Mon Sep 17 00:00:00 2001 From: lucio Date: Wed, 21 Jul 2021 17:31:51 +0200 Subject: [PATCH 1/2] changed StorageBackend interface to get only id on delete --- .../gcube/common/storagehub/model/storages/StorageBackend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java b/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java index c5ffb7b..49e1657 100644 --- a/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java +++ b/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java @@ -13,7 +13,7 @@ public interface StorageBackend { String onMove(AbstractFileItem item); - void onDelete(Content item); + void onDelete(String id); MetaInfo upload(InputStream stream, String relativePath, String name); From dbc2e9e82ec655b880ab5bbf25161a29bf53f98c Mon Sep 17 00:00:00 2001 From: lucio Date: Mon, 26 Jul 2021 10:21:54 +0200 Subject: [PATCH 2/2] change reverted --- .../gcube/common/storagehub/model/storages/StorageBackend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java b/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java index 49e1657..b69c0e0 100644 --- a/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java +++ b/src/main/java/org/gcube/common/storagehub/model/storages/StorageBackend.java @@ -13,7 +13,7 @@ public interface StorageBackend { String onMove(AbstractFileItem item); - void onDelete(String id); + void onDelete(Content id); MetaInfo upload(InputStream stream, String relativePath, String name);