@Override public boolean rename(String oldLayerName, String newLayerName) throws StorageException { log.debug("No need to rename layers, S3BlobStore uses layer id as key root"); if (s3Ops.prefixExists(oldLayerName)) { listeners.sendLayerRenamed(oldLayerName, newLayerName); } return true; }
@Override public boolean rename(String oldLayerName, String newLayerName) throws StorageException { log.debug("No need to rename layers, S3BlobStore uses layer id as key root"); if (s3Ops.prefixExists(oldLayerName)) { listeners.sendLayerRenamed(oldLayerName, newLayerName); } return true; }
@Override public boolean rename(String oldLayerName, String newLayerName) throws StorageException { List<File> files = fileManager.getFiles(oldLayerName); if (files.isEmpty()) { return false; } for (File currentFile : files) { String normalizedLayerName = FileManager.normalizePathValue(newLayerName); File newFile = new File(currentFile.getPath().replace(oldLayerName, normalizedLayerName)); connectionManager.rename(currentFile, newFile); } listeners.sendLayerRenamed(oldLayerName, newLayerName); return true; }
@Override public boolean rename(String oldLayerName, String newLayerName) throws StorageException { List<File> files = fileManager.getFiles(oldLayerName); if (files.isEmpty()) { return false; } for (File currentFile : files) { String normalizedLayerName = FileManager.normalizePathValue(newLayerName); File newFile = new File(currentFile.getPath().replace(oldLayerName, normalizedLayerName)); connectionManager.rename(currentFile, newFile); } listeners.sendLayerRenamed(oldLayerName, newLayerName); return true; }
this.listeners.sendLayerRenamed(oldLayerName, newLayerName); return true; this.listeners.sendLayerRenamed(oldLayerName, newLayerName); } else { throw new StorageException(