storagebackends takes ids on delete
This commit is contained in:
parent
aeb434dd06
commit
8929ff579c
|
@ -64,10 +64,10 @@ public class GCubeStorageBackend implements StorageBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDelete(Content content) {
|
public void onDelete(String id) {
|
||||||
log.debug("deleting");
|
log.debug("deleting");
|
||||||
IClient storageClient = getStorageClient(AuthorizationProvider.instance.get().getClient().getId()).getClient();
|
IClient storageClient = getStorageClient(AuthorizationProvider.instance.get().getClient().getId()).getClient();
|
||||||
storageClient.remove().RFileById(content.getStorageId());
|
storageClient.remove().RFileById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static StorageClient getStorageClient(String login){
|
private static StorageClient getStorageClient(String login){
|
||||||
|
|
Loading…
Reference in New Issue