Class AttachmentBinaryDataServiceImpl
- java.lang.Object
-
- com.epam.ta.reportportal.binary.impl.AttachmentBinaryDataServiceImpl
-
- All Implemented Interfaces:
AttachmentBinaryDataService
@Service public class AttachmentBinaryDataServiceImpl extends java.lang.Object implements AttachmentBinaryDataService
-
-
Constructor Summary
Constructors Constructor Description AttachmentBinaryDataServiceImpl(com.epam.reportportal.commons.ContentTypeResolver contentTypeResolver, FilePathGenerator filePathGenerator, DataStoreService dataStoreService, AttachmentRepository attachmentRepository, CreateLogAttachmentService createLogAttachmentService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachToLog(BinaryDataMetaInfo binaryDataMetaInfo, AttachmentMetaInfo attachmentMetaInfo)voiddelete(java.lang.String fileId)BinaryDataload(java.lang.Long fileId, ReportPortalUser.ProjectDetails projectDetails)java.util.Optional<BinaryDataMetaInfo>saveAttachment(AttachmentMetaInfo metaInfo, org.springframework.web.multipart.MultipartFile file)voidsaveFileAndAttachToLog(org.springframework.web.multipart.MultipartFile file, AttachmentMetaInfo attachmentMetaInfo)
-
-
-
Constructor Detail
-
AttachmentBinaryDataServiceImpl
@Autowired public AttachmentBinaryDataServiceImpl(com.epam.reportportal.commons.ContentTypeResolver contentTypeResolver, FilePathGenerator filePathGenerator, @Qualifier("attachmentDataStoreService") DataStoreService dataStoreService, AttachmentRepository attachmentRepository, CreateLogAttachmentService createLogAttachmentService)
-
-
Method Detail
-
saveAttachment
public java.util.Optional<BinaryDataMetaInfo> saveAttachment(AttachmentMetaInfo metaInfo, org.springframework.web.multipart.MultipartFile file)
- Specified by:
saveAttachmentin interfaceAttachmentBinaryDataService
-
saveFileAndAttachToLog
public void saveFileAndAttachToLog(org.springframework.web.multipart.MultipartFile file, AttachmentMetaInfo attachmentMetaInfo)- Specified by:
saveFileAndAttachToLogin interfaceAttachmentBinaryDataService
-
attachToLog
public void attachToLog(BinaryDataMetaInfo binaryDataMetaInfo, AttachmentMetaInfo attachmentMetaInfo)
- Specified by:
attachToLogin interfaceAttachmentBinaryDataService
-
load
public BinaryData load(java.lang.Long fileId, ReportPortalUser.ProjectDetails projectDetails)
- Specified by:
loadin interfaceAttachmentBinaryDataService
-
delete
public void delete(java.lang.String fileId)
- Specified by:
deletein interfaceAttachmentBinaryDataService
-
-