@Service @Transactional(value="herdTransactionManager") public class StorageUnitServiceImpl extends Object implements StorageUnitService
| Constructor and Description |
|---|
StorageUnitServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
S3KeyPrefixInformation |
getS3KeyPrefix(BusinessObjectDataKey businessObjectDataKey,
String businessObjectFormatPartitionKey,
String storageName,
Boolean createNewVersion)
Gets the S3 key prefix.
|
protected S3KeyPrefixInformation |
getS3KeyPrefixImpl(BusinessObjectDataKey businessObjectDataKey,
String businessObjectFormatPartitionKey,
String storageName,
Boolean createNewVersion)
Gets the S3 key prefix.
|
StorageUnitDownloadCredential |
getStorageUnitDownloadCredential(BusinessObjectDataKey businessObjectDataKey,
String storageName)
Gets the AWS credential to download to the specified storage unit.
|
StorageUnitUploadCredential |
getStorageUnitUploadCredential(BusinessObjectDataKey businessObjectDataKey,
Boolean createNewVersion,
String storageName)
Gets the AWS credential to upload to the specified storage unit.
|
@NamespacePermission(fields="#businessObjectDataKey.namespace", permissions=READ) @Transactional(propagation=REQUIRES_NEW) public S3KeyPrefixInformation getS3KeyPrefix(BusinessObjectDataKey businessObjectDataKey, String businessObjectFormatPartitionKey, String storageName, Boolean createNewVersion)
StorageUnitServicegetS3KeyPrefix in interface StorageUnitServicebusinessObjectDataKey - the business object data keybusinessObjectFormatPartitionKey - the business object format partition keystorageName - the storage namecreateNewVersion - specifies if it is OK to return an S3 key prefix for a new business object data version that is not an initial version. This
parameter is ignored, when the business object data version is specified.@NamespacePermission(fields="#businessObjectDataKey?.namespace", permissions=WRITE) public StorageUnitUploadCredential getStorageUnitUploadCredential(BusinessObjectDataKey businessObjectDataKey, Boolean createNewVersion, String storageName)
StorageUnitServicegetStorageUnitUploadCredential in interface StorageUnitServicebusinessObjectDataKey - The business object data keycreateNewVersion - Flag to indicate whether to return the next version or notstorageName - The storage name@NamespacePermission(fields="#businessObjectDataKey?.namespace", permissions=READ) public StorageUnitDownloadCredential getStorageUnitDownloadCredential(BusinessObjectDataKey businessObjectDataKey, String storageName)
StorageUnitServicegetStorageUnitDownloadCredential in interface StorageUnitServicebusinessObjectDataKey - The business object data keystorageName - The storage nameprotected S3KeyPrefixInformation getS3KeyPrefixImpl(BusinessObjectDataKey businessObjectDataKey, String businessObjectFormatPartitionKey, String storageName, Boolean createNewVersion)
businessObjectDataKey - the business object data keybusinessObjectFormatPartitionKey - the business object format partition keystorageName - the storage namecreateNewVersion - specifies if it is OK to return an S3 key prefix for a new business object data version that is not an initial version. This
parameter is ignored, when the business object data version is specified.Copyright © 2021. All rights reserved.