/** * Deletes an object from a bucket. * <p> * This method can be performed by anonymous services. Anonymous services * can delete objects from publicly-writable buckets. * * @param bucketName * the name of the bucket containing the object to be deleted. * @param objectKey * the key representing the object * @throws ServiceException */ public void deleteObject(String bucketName, String objectKey) throws ServiceException { assertValidObject(objectKey, "deleteObject"); MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey); deleteObjectImpl(bucketName, objectKey, null, null, null); }
/** * Deletes an object from a bucket. * <p> * This method can be performed by anonymous services. Anonymous services * can delete objects from publicly-writable buckets. * * @param bucketName * the name of the bucket containing the object to be deleted. * @param objectKey * the key representing the object * @throws ServiceException */ public void deleteObject(String bucketName, String objectKey) throws ServiceException { assertValidObject(objectKey, "deleteObject"); MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey); deleteObjectImpl(bucketName, objectKey, null, null, null); }
/** * Deletes a object version from a bucket in S3. This will delete only the specific * version identified and will not affect any other Version or DeleteMarkers related * to the object. * <p> * This operation can only be performed by the owner of the S3 bucket. * * @param versionId * the identifier of an object version that will be deleted. * @param bucketName * the name of the versioned bucket containing the object to be deleted. * @param objectKey * the key representing the object in S3. * @throws S3ServiceException */ public void deleteVersionedObject(String versionId, String bucketName, String objectKey) throws S3ServiceException { try { assertValidObject(objectKey, "deleteVersionedObject"); MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey); deleteObjectImpl(bucketName, objectKey, versionId, null, null); } catch (ServiceException se) { throw new S3ServiceException(se); } }
/** * Deletes a object version from a bucket in S3. This will delete only the specific * version identified and will not affect any other Version or DeleteMarkers related * to the object. * <p> * This operation can only be performed by the owner of the S3 bucket. * * @param versionId * the identifier of an object version that will be deleted. * @param bucketName * the name of the versioned bucket containing the object to be deleted. * @param objectKey * the key representing the object in S3. * @throws S3ServiceException */ public void deleteVersionedObject(String versionId, String bucketName, String objectKey) throws S3ServiceException { try { assertValidObject(objectKey, "deleteVersionedObject"); MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey); deleteObjectImpl(bucketName, objectKey, versionId, null, null); } catch (ServiceException se) { throw new S3ServiceException(se); } }
MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey); deleteObjectImpl(bucketName, objectKey, versionId, multiFactorSerialNumber, multiFactorAuthCode);
MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey); deleteObjectImpl(bucketName, objectKey, versionId, multiFactorSerialNumber, multiFactorAuthCode);