Tabnine Logo
StorageService.copyObject
Code IndexAdd Tabnine to your IDE (free)

How to use
copyObject
method
in
org.jets3t.service.StorageService

Best Java code snippets using org.jets3t.service.StorageService.copyObject (Showing top 8 results out of 315)

origin: net.java.dev.jets3t/jets3t

public void run() {
  try {
    result = storageService.copyObject(sourceBucketName, sourceObjectKey,
      destinationBucketName, destinationObject, replaceMetadata);
  } catch (ServiceException e) {
    result = e;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

public void run() {
  try {
    result = storageService.copyObject(sourceBucketName, sourceObjectKey,
      destinationBucketName, destinationObject, replaceMetadata);
  } catch (ServiceException e) {
    result = e;
  }
}
origin: net.java.dev.jets3t/jets3t

boolean replaceMetadata) throws ServiceException
return copyObject(sourceBucketName, sourceObjectKey, destinationBucketName,
  destinationObject, replaceMetadata, null, null, null, null);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

boolean replaceMetadata) throws ServiceException
return copyObject(sourceBucketName, sourceObjectKey, destinationBucketName,
  destinationObject, replaceMetadata, null, null, null, null);
origin: net.java.dev.jets3t/jets3t

/**
 * 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);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

/**
 * 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);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

boolean replaceMetadata) throws ServiceException
Map<String, Object> copyResult = copyObject(sourceBucketName, sourceObjectKey,
  destinationBucketName, destinationObject, replaceMetadata);
origin: net.java.dev.jets3t/jets3t

boolean replaceMetadata) throws ServiceException
Map<String, Object> copyResult = copyObject(sourceBucketName, sourceObjectKey,
  destinationBucketName, destinationObject, replaceMetadata);
org.jets3t.serviceStorageServicecopyObject

Javadoc

Copy an object. You can copy an object within a single bucket or between buckets, and can optionally update the object's metadata at the same time.

This method cannot be performed by anonymous services. You must have read access to the source object and write access to the destination bucket.

An object can be copied over itself, in which case you can update its metadata without making any other changes.

Popular methods of StorageService

  • getObject
    Returns an object representing the details and data of an item that meets any given preconditions.Im
  • getObjectDetails
    Returns an object representing the details of an item that meets any given preconditions. The object
  • putObject
    Puts an object inside an existing bucket, creating a new object or overwriting an existing one with
  • assertAuthenticatedConnection
    Throws an exception if this service is anonymous (that is, it was created without an ProviderCredent
  • assertValidBucket
    Throws an exception if a bucket is null or contains a null/empty name.
  • assertValidObject
    Throws an exception if an object is null or contains a null/empty key.
  • copyObjectImpl
    Copy an object within your account. Copies within a single bucket or between buckets, and optionally
  • createBucket
    Create a bucket with the Access Control List settings of the bucket object (if any).Caution: Perform
  • createBucketImpl
  • deleteBucketImpl
  • deleteObject
    Deletes an object from a bucket. This method can be performed by anonymous services. Anonymous servi
  • deleteObjectImpl
  • deleteObject,
  • deleteObjectImpl,
  • getAccountOwnerImpl,
  • getBucket,
  • getBucketAclImpl,
  • getHttpsOnly,
  • getJetS3tProperties,
  • getObjectAcl,
  • getObjectAclImpl

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ImageIO (javax.imageio)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now