} else { mpu = MultipartUpload.create(containerName, blobName, uploadId, new MutableBlobMetadataImpl(), new PutOptions());
public MutableContentMetadata apply(BlobMetadata base) { MutableBlobMetadataImpl to = new MutableBlobMetadataImpl(); HttpUtils.copy(base.getContentMetadata(), to.getContentMetadata()); return new DelegatingMutableContentMetadata(base.getUri(), base.getName(), base.getUri() != null ? base.getUri() .getPath() : null, to.getContentMetadata()); }
public MutableBlobMetadataImpl() { this.setType(StorageType.BLOB); this.contentMetadata = new BaseMutableContentMetadata(); }
public StorageMetadata apply(DirectoryEntry from) { StorageType type = from.getType() == FileType.DIRECTORY ? StorageType.FOLDER : StorageType.BLOB; if (type == StorageType.FOLDER) return new StorageMetadataImpl(type, from.getObjectID(), from.getObjectName(), defaultLocation .get(), null, null, null, null, ImmutableMap.<String, String>of()); else { BlobMetadataImpl metadata = new BlobMetadataImpl(from.getObjectID(), from.getObjectName(), defaultLocation.get(), null, null, null, null, ImmutableMap.<String, String>of(), null, null, new BaseMutableContentMetadata()); MutableBlobMetadataImpl mutable = new MutableBlobMetadataImpl(metadata); mutable.setSize(from.getSize()); return mutable; } }
public StorageMetadata apply(DirectoryEntry from) { StorageType type = from.getType() == FileType.DIRECTORY ? StorageType.FOLDER : StorageType.BLOB; if (type == StorageType.FOLDER) return new StorageMetadataImpl(type, from.getObjectID(), from.getObjectName(), defaultLocation .get(), null, null, null, null, ImmutableMap.<String, String>of()); else { BlobMetadataImpl metadata = new BlobMetadataImpl(from.getObjectID(), from.getObjectName(), defaultLocation.get(), null, null, null, null, ImmutableMap.<String, String>of(), null, null, new BaseMutableContentMetadata()); MutableBlobMetadataImpl mutable = new MutableBlobMetadataImpl(metadata); mutable.setSize(from.getSize()); return mutable; } }
public static MutableBlobMetadata copy(MutableBlobMetadata in) { MutableBlobMetadata metadata = new MutableBlobMetadataImpl(in); convertUserMetadataKeysToLowercase(metadata); return metadata; }
public MutableContentMetadata apply(BlobMetadata base) { MutableBlobMetadataImpl to = new MutableBlobMetadataImpl(); HttpUtils.copy(base.getContentMetadata(), to.getContentMetadata()); return new DelegatingMutableContentMetadata(base.getUri(), base.getName(), base.getUri() != null ? base.getUri() .getPath() : null, to.getContentMetadata()); }
public StorageMetadata apply(DirectoryEntry from) { StorageType type = from.getType() == FileType.DIRECTORY ? StorageType.FOLDER : StorageType.BLOB; if (type == StorageType.FOLDER) return new StorageMetadataImpl(type, from.getObjectID(), from.getObjectName(), defaultLocation .get(), null, null, null, null, ImmutableMap.<String, String>of()); else { BlobMetadataImpl metadata = new BlobMetadataImpl(from.getObjectID(), from.getObjectName(), defaultLocation.get(), null, from.getObjectID(), null, from.getModifiedTime(), ImmutableMap.<String, String>of(), null, null, new BaseMutableContentMetadata()); MutableBlobMetadataImpl mutable = new MutableBlobMetadataImpl(metadata); mutable.setSize(from.getSize()); return mutable; } }
public MutableBlobMetadataImpl() { this.setType(StorageType.BLOB); this.contentMetadata = new BaseMutableContentMetadata(); }
public MutableBlobMetadata get() { return new MutableBlobMetadataImpl(); }
public MutableContentMetadata apply(BlobMetadata base) { MutableBlobMetadataImpl to = new MutableBlobMetadataImpl(); HttpUtils.copy(base.getContentMetadata(), to.getContentMetadata()); return new DelegatingMutableContentMetadata(base.getUri(), base.getName(), base.getUri() != null ? base.getUri() .getPath() : null, to.getContentMetadata()); }
public StorageMetadata apply(DirectoryEntry from) { StorageType type = from.getType() == FileType.DIRECTORY ? StorageType.FOLDER : StorageType.BLOB; if (type == StorageType.FOLDER) return new StorageMetadataImpl(type, from.getObjectID(), from.getObjectName(), defaultLocation .get(), null, null, null, null, ImmutableMap.<String, String>of()); else { BlobMetadataImpl metadata = new BlobMetadataImpl(from.getObjectID(), from.getObjectName(), defaultLocation.get(), null, from.getObjectID(), null, from.getModifiedTime(), ImmutableMap.<String, String>of(), null, null, new BaseMutableContentMetadata()); MutableBlobMetadataImpl mutable = new MutableBlobMetadataImpl(metadata); mutable.setSize(from.getSize()); return mutable; } }
public MutableBlobMetadataImpl() { this.setType(StorageType.BLOB); this.contentMetadata = new BaseMutableContentMetadata(); }
public MutableBlobMetadata get() { return new MutableBlobMetadataImpl(); }
public MutableContentMetadata apply(BlobMetadata base) { MutableBlobMetadataImpl to = new MutableBlobMetadataImpl(); HttpUtils.copy(base.getContentMetadata(), to.getContentMetadata()); return new DelegatingMutableContentMetadata(base.getUri(), base.getName(), base.getUri() != null ? base.getUri() .getPath() : null, to.getContentMetadata()); }
public MutableBlobMetadataImpl() { this.setType(StorageType.BLOB); this.contentMetadata = new BaseMutableContentMetadata(); }
public static MutableBlobMetadata copy(MutableBlobMetadata in) { MutableBlobMetadata metadata = new MutableBlobMetadataImpl(in); convertUserMetadataKeysToLowercase(metadata); return metadata; }
public MutableContentMetadata apply(BlobMetadata base) { MutableBlobMetadataImpl to = new MutableBlobMetadataImpl(); HttpUtils.copy(base.getContentMetadata(), to.getContentMetadata()); return new DelegatingMutableContentMetadata(base.getUri(), base.getName(), base.getUri() != null ? base.getUri() .getPath() : null, to.getContentMetadata()); }
public MutableBlobMetadataImpl() { this.setType(StorageType.BLOB); this.contentMetadata = new BaseMutableContentMetadata(); }
public static MutableBlobMetadata copy(MutableBlobMetadata in) { MutableBlobMetadata metadata = new MutableBlobMetadataImpl(in); convertUserMetadataKeysToLowercase(metadata); return metadata; }