use of org.finra.herd.model.api.xml.BusinessObjectDataStorageFilesCreateResponse in project herd by FINRAOS.
the class BusinessObjectDataStorageFileServiceImpl method createBusinessObjectDataStorageFilesCreateResponse.
/**
* Creates and populates the business object data storage files create response.
*
* @param storageEntity the storage entity
* @param businessObjectDataEntity the business object data entity
* @param storageFiles the list of storage files
*
* @return the business object data storage files create response
*/
private BusinessObjectDataStorageFilesCreateResponse createBusinessObjectDataStorageFilesCreateResponse(StorageEntity storageEntity, BusinessObjectDataEntity businessObjectDataEntity, List<StorageFile> storageFiles) {
BusinessObjectDataStorageFilesCreateResponse response = new BusinessObjectDataStorageFilesCreateResponse();
response.setNamespace(businessObjectDataEntity.getBusinessObjectFormat().getBusinessObjectDefinition().getNamespace().getCode());
response.setBusinessObjectDefinitionName(businessObjectDataEntity.getBusinessObjectFormat().getBusinessObjectDefinition().getName());
response.setBusinessObjectFormatUsage(businessObjectDataEntity.getBusinessObjectFormat().getUsage());
response.setBusinessObjectFormatFileType(businessObjectDataEntity.getBusinessObjectFormat().getFileType().getCode());
response.setBusinessObjectFormatVersion(businessObjectDataEntity.getBusinessObjectFormat().getBusinessObjectFormatVersion());
response.setPartitionValue(businessObjectDataEntity.getPartitionValue());
response.setSubPartitionValues(businessObjectDataHelper.getSubPartitionValues(businessObjectDataEntity));
response.setBusinessObjectDataVersion(businessObjectDataEntity.getVersion());
response.setStorageName(storageEntity.getName());
response.setStorageFiles(storageFiles);
return response;
}
Aggregations