SIGNER_OVERRIDE_V4| Constructor and Description |
|---|
S3DaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
abortMultipartUploads(S3FileTransferRequestParamsDto params,
Date thresholdDate)
Aborts any multipart uploads that were initiated in the specified S3 storage older than threshold date.
|
S3FileTransferResultsDto |
copyFile(S3FileCopyRequestParamsDto params)
Copies an S3 object from the source S3 bucket to the same path in target bucket.
|
void |
createDirectory(S3FileTransferRequestParamsDto params)
Creates an S3 object of 0 byte size that represents a directory.
|
void |
createEmptyDirectory(S3FileTransferRequestParamsDto params)
Creates an S3 object of 0 byte size that represents an empty directory.
|
void |
deleteDirectory(S3FileTransferRequestParamsDto params)
Deletes keys/key versions from specified bucket with matching prefix.
|
void |
deleteFileList(S3FileTransferRequestParamsDto params)
Deletes a list of keys from specified bucket.
|
S3FileTransferResultsDto |
downloadDirectory(S3FileTransferRequestParamsDto params)
Downloads a directory from S3 to the local file system.
|
S3FileTransferResultsDto |
downloadFile(S3FileTransferRequestParamsDto params)
Downloads a file from S3 to the local file system.
|
String |
generateGetObjectPresignedUrl(String bucketName,
String key,
Date expiration,
S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto)
Generates a GET pre-signed URL for the given object in S3 identified by its bucket name and key.
|
com.amazonaws.services.s3.model.ObjectMetadata |
getObjectMetadata(S3FileTransferRequestParamsDto params)
Gets the metadata for the specified Amazon S3 object without actually fetching the object itself.
|
Properties |
getProperties(String bucketName,
String key,
S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto)
Gets an object from S3 and parses it as a
Properties. |
protected boolean |
isRootKeyPrefix(String s3KeyPrefix)
Returns true is S3 key prefix is a root.
|
List<com.amazonaws.services.s3.model.S3ObjectSummary> |
listDirectory(S3FileTransferRequestParamsDto params)
Lists all S3 objects matching the S3 key prefix in the given bucket (S3 bucket name).
|
List<com.amazonaws.services.s3.model.S3ObjectSummary> |
listDirectory(S3FileTransferRequestParamsDto params,
boolean ignoreZeroByteDirectoryMarkers)
Lists all S3 objects matching the S3 key prefix in the given bucket (S3 bucket name).
|
List<com.amazonaws.services.s3.model.S3VersionSummary> |
listVersions(S3FileTransferRequestParamsDto params)
Lists all S3 versions matching the S3 key prefix in the given bucket (S3 bucket name).
|
void |
restoreObjects(S3FileTransferRequestParamsDto params,
int expirationInDays,
String archiveRetrievalOption)
Requests to restore a list of keys in the specified bucket.
|
boolean |
s3FileExists(S3FileTransferRequestParamsDto params)
Validates that file exists in S3 using S3Client.getObject() method.
|
void |
tagObjects(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3ObjectSummary> s3ObjectSummaries,
com.amazonaws.services.s3.model.Tag tag)
Tags S3 objects with the specified S3 object tag.
|
void |
tagVersions(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3VersionSummary> s3VersionSummaries,
com.amazonaws.services.s3.model.Tag tag)
Tags S3 versions with the specified S3 object tag.
|
S3FileTransferResultsDto |
uploadDirectory(S3FileTransferRequestParamsDto params)
Uploads a local directory of files into S3.
|
S3FileTransferResultsDto |
uploadFile(S3FileTransferRequestParamsDto params)
Uploads a local file into S3.
|
S3FileTransferResultsDto |
uploadFileList(S3FileTransferRequestParamsDto params)
Uploads a list of local files into S3.
|
void |
validateGlacierS3FilesRestored(S3FileTransferRequestParamsDto params)
Validates that all specified Glacier storage class files are restored.
|
void |
validateS3File(S3FileTransferRequestParamsDto params,
Long fileSizeInBytes)
Validates that file exists in S3 and has size that equals to a specified value.
|
public int abortMultipartUploads(S3FileTransferRequestParamsDto params,
Date thresholdDate)
S3DaoabortMultipartUploads in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name specifies the name of the bucket containing the
multipart uploads to abort.thresholdDate - the date indicating which multipart uploads should be abortedpublic S3FileTransferResultsDto copyFile(S3FileCopyRequestParamsDto params)
throws InterruptedException
S3DaocopyFile in interface S3Daoparams - the S3 file copy request parameters.InterruptedException - if any problems were encountered.public void createDirectory(S3FileTransferRequestParamsDto params)
S3DaocreateDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 object to be
created.public void createEmptyDirectory(S3FileTransferRequestParamsDto params)
S3DaocreateEmptyDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 object to be
created.public void deleteDirectory(S3FileTransferRequestParamsDto params)
S3DaodeleteDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to be
deleted.public void deleteFileList(S3FileTransferRequestParamsDto params)
S3DaodeleteFileList in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and the file list identify the S3 objects to be
deleted.public S3FileTransferResultsDto downloadDirectory(S3FileTransferRequestParamsDto params)
throws InterruptedException
S3DaodownloadDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The
local path is the local file to be copied.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto downloadFile(S3FileTransferRequestParamsDto params)
throws InterruptedException
S3DaodownloadFile in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The
local path is the local file to be copied.InterruptedException - if any problems were encountered.public String generateGetObjectPresignedUrl(String bucketName, String key, Date expiration, S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto)
S3DaoS3FileTransferRequestParamsDto.generateGetObjectPresignedUrl in interface S3DaobucketName - The bucket name of the objectkey - The S3 key to the objectexpiration - The expiration date at which point the new pre-signed URL will no longer be accepted by Amazon S3.s3FileTransferRequestParamsDto - The parameters which contain information on how to use S3public com.amazonaws.services.s3.model.ObjectMetadata getObjectMetadata(S3FileTransferRequestParamsDto params)
S3DaogetObjectMetadata in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 object's whose
metadata is being retrieved.public Properties getProperties(String bucketName, String key, S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto)
S3DaoProperties.getProperties in interface S3DaobucketName - The S3 bucket namekey - The S3 object keys3FileTransferRequestParamsDto - S3FileTransferRequestParamsDto with proxy informationPropertiespublic List<com.amazonaws.services.s3.model.S3ObjectSummary> listDirectory(S3FileTransferRequestParamsDto params)
S3DaolistDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to get
listed.public List<com.amazonaws.services.s3.model.S3ObjectSummary> listDirectory(S3FileTransferRequestParamsDto params, boolean ignoreZeroByteDirectoryMarkers)
S3DaolistDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to get
listed.ignoreZeroByteDirectoryMarkers - specifies whether to ignore 0 byte objects that represent S3 directories.public List<com.amazonaws.services.s3.model.S3VersionSummary> listVersions(S3FileTransferRequestParamsDto params)
S3DaolistVersions in interface S3Daoparams - the S3 file transfer request parameterspublic void restoreObjects(S3FileTransferRequestParamsDto params,
int expirationInDays,
String archiveRetrievalOption)
S3DaorestoreObjects in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and the file list identify the S3 objects to be
restoredexpirationInDays - the time, in days, between when an object is restored to the bucket and when it expiresarchiveRetrievalOption - the archive retrieval option when restoring an archived objectpublic boolean s3FileExists(S3FileTransferRequestParamsDto params)
throws RuntimeException
S3Daos3FileExists in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 fileRuntimeException - if file existence check failspublic void tagObjects(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3ObjectSummary> s3ObjectSummaries,
com.amazonaws.services.s3.model.Tag tag)
S3DaotagObjects in interface S3Daos3FileTransferRequestParamsDto - the S3 file transfer request parameters. This set of parameters contains the S3 bucket names3ObjectTaggerParamsDto - the S3 file transfer request parameters to be used for tagging S3 objectss3ObjectSummaries - the list of S3 objects to be taggedtag - the S3 object tagpublic void tagVersions(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3VersionSummary> s3VersionSummaries,
com.amazonaws.services.s3.model.Tag tag)
S3DaotagVersions in interface S3Daos3FileTransferRequestParamsDto - the S3 file transfer request parameters. This set of parameters contains the S3 bucket names3ObjectTaggerParamsDto - the S3 file transfer request parameters to be used for tagging S3 objectss3VersionSummaries - the list of S3 versions to be taggedtag - the S3 object tagpublic S3FileTransferResultsDto uploadDirectory(S3FileTransferRequestParamsDto params)
throws InterruptedException
S3DaouploadDirectory in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The
local path is the local file to be copied.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto uploadFile(S3FileTransferRequestParamsDto params)
throws InterruptedException
S3DaouploadFile in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The
local path is the local file to be copied.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto uploadFileList(S3FileTransferRequestParamsDto params)
throws InterruptedException
S3DaouploadFileList in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name, S3 key prefix, and the file list (files) are for the
target of the copy. The local path and the file list (files) are the local files to be copied. The keys of the files are calculated relative to the
common parent directory (local path) and the S3 key prefix.InterruptedException - if any problems were encountered.public void validateGlacierS3FilesRestored(S3FileTransferRequestParamsDto params)
throws RuntimeException
S3DaovalidateGlacierS3FilesRestored in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and the file list identify the S3 objects to be
validatedRuntimeException - if file validation failspublic void validateS3File(S3FileTransferRequestParamsDto params,
Long fileSizeInBytes)
throws RuntimeException
S3DaovalidateS3File in interface S3Daoparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 file.fileSizeInBytes - the expected file size in bytesRuntimeException - if file validation failsprotected boolean isRootKeyPrefix(String s3KeyPrefix)
s3KeyPrefix - the S3 key prefix to be validatedCopyright © 2021. All rights reserved.