/** *{@inheritDoc} */ public int compareTo(ObjectMetadata o) { return (this == o) ? 0 : getKey().compareTo(o.getKey()); }
public MutableBlobMetadata apply(ObjectMetadata from) { if (from == null) return null; MutableBlobMetadata to = new MutableBlobMetadataImpl(); HttpUtils.copy(from.getContentMetadata(), to.getContentMetadata()); to.setETag(from.getETag()); to.setName(from.getKey()); to.setLastModified(from.getLastModified()); to.setUserMetadata(from.getUserMetadata()); String directoryName = ifDirectoryReturnName.execute(to); if (directoryName != null) { to.setName(directoryName); to.setType(StorageType.RELATIVE_PATH); } else { to.setType(StorageType.BLOB); } return to; } }
public MutableObjectMetadataImpl(ObjectMetadata from) { this.storageClass = StorageClass.STANDARD; this.contentMetadata = new BaseMutableContentMetadata(); HttpUtils.copy(from.getContentMetadata(), this.contentMetadata); }
/** *{@inheritDoc} */ public int compareTo(ObjectMetadata o) { return (this == o) ? 0 : getKey().compareTo(o.getKey()); }
/** *{@inheritDoc} */ public int compareTo(ObjectMetadata o) { return (this == o) ? 0 : getKey().compareTo(o.getKey()); }