Added storageHubClient getter
This commit is contained in:
parent
38c684bb6a
commit
8bde27d0b7
|
@ -33,6 +33,10 @@ public class StorageHubManagement {
|
|||
|
||||
protected final StorageHubClient storageHubClient;
|
||||
|
||||
public StorageHubClient getStorageHubClient() {
|
||||
return storageHubClient;
|
||||
}
|
||||
|
||||
protected FileContainer persitedFile;
|
||||
protected String mimeType;
|
||||
|
||||
|
@ -280,7 +284,7 @@ public class StorageHubManagement {
|
|||
persitedFile = getPersistedFile(filename, mimeType);
|
||||
if(persitedFile !=null) {
|
||||
logger.info("Persited file with mimetype {} and name {} was found (id={}). Goign to remove it.", mimeType, filename, persitedFile.getId());
|
||||
persitedFile.delete();
|
||||
persitedFile.forceDelete();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -293,7 +297,7 @@ public class StorageHubManagement {
|
|||
persitedFile = getFileContainer(shubPublicLink);
|
||||
if(persitedFile !=null) {
|
||||
logger.info("Persited file available at {} was found (id={}). Goign to remove it.", shubPublicLink, persitedFile.getId());
|
||||
persitedFile.delete();
|
||||
persitedFile.forceDelete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue