@Service @Transactional(value="herdTransactionManager") public class UploadDownloadHelperServiceImpl extends Object implements UploadDownloadHelperService
| Constructor and Description |
|---|
UploadDownloadHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertS3ObjectKeyDoesNotExist(String bucketName,
String key)
Asserts that the S3 object in the specified bucket and key does not exist.
|
void |
deleteSourceFileFromS3(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
delete the source file from S3
|
protected void |
deleteSourceFileFromS3Impl(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Delete the source file from S3
|
void |
executeFileMoveAfterSteps(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Executes the steps required to complete the processing of complete upload single message following a successful S3 file move operation.
|
void |
executeFileMoveAfterStepsImpl(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Executes the steps required to complete the processing of complete upload single message following a successful S3 file move operation.
|
void |
performFileMove(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Moves an S3 file from the source bucket to the target bucket.
|
protected void |
performFileMoveImpl(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Moves an S3 file from the source bucket to the target bucket.
|
void |
prepareForFileMove(String objectKey,
CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Prepares to move an S3 file from the source bucket to the target bucket.
|
protected void |
prepareForFileMoveImpl(String objectKey,
CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
Prepares to move an S3 file from the source bucket to the target bucket.
|
void |
updateBusinessObjectDataStatus(BusinessObjectDataKey businessObjectDataKey,
String businessObjectDataStatus)
Updates the business object data status in a new transaction.
|
protected void |
updateBusinessObjectDataStatusImpl(BusinessObjectDataKey businessObjectDataKey,
String businessObjectDataStatus)
Implementation of the update business object data status.
|
@PublishNotificationMessages @Transactional(propagation=REQUIRES_NEW) public void prepareForFileMove(String objectKey, CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
UploadDownloadHelperServiceprepareForFileMove in interface UploadDownloadHelperServiceobjectKey - the object key (i.e. filename)completeUploadSingleParamsDto - the DTO to be initialized with parameters required for complete upload single message processingprotected void prepareForFileMoveImpl(String objectKey, CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
objectKey - the object key (i.e. filename)completeUploadSingleParamsDto - the DTO to be initialized with parameters required for complete upload single message processing@Transactional(propagation=NOT_SUPPORTED) public void performFileMove(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
UploadDownloadHelperServiceperformFileMove in interface UploadDownloadHelperServicecompleteUploadSingleParamsDto - the DTO that contains complete upload single message parametersprotected void performFileMoveImpl(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
completeUploadSingleParamsDto - the DTO that contains complete upload single message parameters@PublishNotificationMessages @Transactional(propagation=REQUIRES_NEW) public void executeFileMoveAfterSteps(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
UploadDownloadHelperServiceexecuteFileMoveAfterSteps in interface UploadDownloadHelperServicecompleteUploadSingleParamsDto - the DTO that contains complete upload single message parameterspublic void executeFileMoveAfterStepsImpl(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
completeUploadSingleParamsDto - the DTO that contains complete upload single message parameters@Transactional(propagation=NOT_SUPPORTED) public void deleteSourceFileFromS3(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
UploadDownloadHelperServicedeleteSourceFileFromS3 in interface UploadDownloadHelperServicecompleteUploadSingleParamsDto - the DTO that contains complete upload single message parametersprotected void deleteSourceFileFromS3Impl(CompleteUploadSingleParamsDto completeUploadSingleParamsDto)
completeUploadSingleParamsDto - the DTO that contains complete upload single message parameters@PublishNotificationMessages @Transactional(propagation=REQUIRES_NEW) public void updateBusinessObjectDataStatus(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
UploadDownloadHelperServiceupdateBusinessObjectDataStatus in interface UploadDownloadHelperServicebusinessObjectDataKey - the business object data keybusinessObjectDataStatus - the business object data statusprotected void updateBusinessObjectDataStatusImpl(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
public void assertS3ObjectKeyDoesNotExist(String bucketName, String key)
UploadDownloadHelperServiceassertS3ObjectKeyDoesNotExist in interface UploadDownloadHelperServicebucketName - The S3 bucket namekey - The S3 keyCopyright © 2021. All rights reserved.