public void run() { try { result = storageService.copyObject(sourceBucketName, sourceObjectKey, destinationBucketName, destinationObject, replaceMetadata); } catch (ServiceException e) { result = e; } }
public void run() { try { result = storageService.copyObject(sourceBucketName, sourceObjectKey, destinationBucketName, destinationObject, replaceMetadata); } catch (ServiceException e) { result = e; } }
boolean replaceMetadata) throws ServiceException return copyObject(sourceBucketName, sourceObjectKey, destinationBucketName, destinationObject, replaceMetadata, null, null, null, null);
boolean replaceMetadata) throws ServiceException return copyObject(sourceBucketName, sourceObjectKey, destinationBucketName, destinationObject, replaceMetadata, null, null, null, null);
/** * Update an object's metadata. This method works by invoking the * {@link #copyObject(String, String, String, StorageObject, boolean)} method to * copy the original object over itself, applying the new metadata in the * process. * * @param bucketName * the name of the bucket containing the object that will be updated. * @param object * the object that will be updated. If this item includes an * AccessControlList setting the copied object will be assigned * that ACL, otherwise the copied object will be assigned the default private * ACL setting. * * @return * a map of the header and result information after the object * copy. The map includes the object's MD5 hash value (ETag), its size * (Content-Length), and update timestamp (Last-Modified). * * @throws ServiceException */ public Map<String, Object> updateObjectMetadata(String bucketName, StorageObject object) throws ServiceException { return copyObject(bucketName, object.getKey(), bucketName, object, true); }
/** * Update an object's metadata. This method works by invoking the * {@link #copyObject(String, String, String, StorageObject, boolean)} method to * copy the original object over itself, applying the new metadata in the * process. * * @param bucketName * the name of the bucket containing the object that will be updated. * @param object * the object that will be updated. If this item includes an * AccessControlList setting the copied object will be assigned * that ACL, otherwise the copied object will be assigned the default private * ACL setting. * * @return * a map of the header and result information after the object * copy. The map includes the object's MD5 hash value (ETag), its size * (Content-Length), and update timestamp (Last-Modified). * * @throws ServiceException */ public Map<String, Object> updateObjectMetadata(String bucketName, StorageObject object) throws ServiceException { return copyObject(bucketName, object.getKey(), bucketName, object, true); }
boolean replaceMetadata) throws ServiceException Map<String, Object> copyResult = copyObject(sourceBucketName, sourceObjectKey, destinationBucketName, destinationObject, replaceMetadata);
boolean replaceMetadata) throws ServiceException Map<String, Object> copyResult = copyObject(sourceBucketName, sourceObjectKey, destinationBucketName, destinationObject, replaceMetadata);