use of org.finra.herd.model.dto.DataBridgeBaseManifestDto in project herd by FINRAOS.
the class DownloaderWebClient method getS3KeyPrefix.
/**
* Retrieves S3 key prefix from the herd registration server.
*
* @param businessObjectData the business object data
*
* @return the S3 key prefix
* @throws JAXBException if a JAXB error was encountered.
* @throws IOException if an I/O error was encountered.
* @throws URISyntaxException if a URI syntax error was encountered.
*/
public S3KeyPrefixInformation getS3KeyPrefix(BusinessObjectData businessObjectData) throws IOException, JAXBException, URISyntaxException {
DataBridgeBaseManifestDto dataBridgeBaseManifestDto = new DataBridgeBaseManifestDto();
dataBridgeBaseManifestDto.setNamespace(businessObjectData.getNamespace());
dataBridgeBaseManifestDto.setBusinessObjectDefinitionName(businessObjectData.getBusinessObjectDefinitionName());
dataBridgeBaseManifestDto.setBusinessObjectFormatUsage(businessObjectData.getBusinessObjectFormatUsage());
dataBridgeBaseManifestDto.setBusinessObjectFormatFileType(businessObjectData.getBusinessObjectFormatFileType());
dataBridgeBaseManifestDto.setBusinessObjectFormatVersion(String.valueOf(businessObjectData.getBusinessObjectFormatVersion()));
dataBridgeBaseManifestDto.setPartitionKey(businessObjectData.getPartitionKey());
dataBridgeBaseManifestDto.setPartitionValue(businessObjectData.getPartitionValue());
dataBridgeBaseManifestDto.setSubPartitionValues(businessObjectData.getSubPartitionValues());
dataBridgeBaseManifestDto.setStorageName(businessObjectData.getStorageUnits().get(0).getStorage().getName());
return super.getS3KeyPrefix(dataBridgeBaseManifestDto, businessObjectData.getVersion(), Boolean.FALSE);
}
Aggregations