Extract interface.

This commit is contained in:
David Kocher
2025-11-28 15:29:52 +01:00
parent f5fb8906ff
commit 5babfa78b3
131 changed files with 1795 additions and 1130 deletions
@@ -15,6 +15,7 @@ package ch.cyberduck.core.brick;
* GNU General Public License for more details.
*/
import ch.cyberduck.core.DefaultPathAttributes;
import ch.cyberduck.core.ListProgressListener;
import ch.cyberduck.core.Path;
import ch.cyberduck.core.PathAttributes;
@@ -64,7 +65,7 @@ public class BrickAttributesFinderFeature implements AttributesFinder, Attribute
@Override
public PathAttributes toAttributes(final FileEntity entity) {
final PathAttributes attr = new PathAttributes();
final PathAttributes attr = new DefaultPathAttributes();
attr.setChecksum(Checksum.parse(entity.getMd5()));
attr.setRegion(entity.getRegion());
if(entity.getSize() != null) {
@@ -16,6 +16,7 @@ package ch.cyberduck.core.brick;
*/
import ch.cyberduck.core.ConnectionCallback;
import ch.cyberduck.core.DefaultPathAttributes;
import ch.cyberduck.core.Path;
import ch.cyberduck.core.PathAttributes;
import ch.cyberduck.core.brick.io.swagger.client.ApiException;
@@ -62,7 +63,7 @@ public class BrickCopyFeature extends BrickFileMigrationFeature implements Copy
if(entity.getFileMigrationId() != null) {
this.poll(client, entity);
}
return new Path(target).withAttributes(new PathAttributes(file.attributes()).setVault(null));
return new Path(target).withAttributes(new DefaultPathAttributes(file.attributes()).setVault(null));
}
catch(ApiException e) {
throw new BrickExceptionMappingService().map("Cannot copy {0}", e, file);
@@ -17,6 +17,7 @@ package ch.cyberduck.core.brick;
import ch.cyberduck.core.CaseInsensitivePathPredicate;
import ch.cyberduck.core.ConnectionCallback;
import ch.cyberduck.core.DefaultPathAttributes;
import ch.cyberduck.core.Path;
import ch.cyberduck.core.PathAttributes;
import ch.cyberduck.core.brick.io.swagger.client.ApiException;
@@ -60,7 +61,7 @@ public class BrickMoveFeature extends BrickFileMigrationFeature implements Move
if(entity.getFileMigrationId() != null) {
this.poll(client, entity);
}
return new Path(target).withAttributes(new PathAttributes(file.attributes()).setVault(null));
return new Path(target).withAttributes(new DefaultPathAttributes(file.attributes()).setVault(null));
}
catch(ApiException e) {
throw new BrickExceptionMappingService().map("Cannot rename {0}", e, file);