public class VendorSoftwareProductUtils extends Object
Constructor and Description |
---|
VendorSoftwareProductUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addFileNamesToUploadFileResponse(FileContentHandler fileContentMap,
UploadFileResponse uploadFileResponse)
Add file names to upload file response.
|
static Map<ComponentArtifactType,String> |
filterNonTrapOrPollArtifacts(Collection<ComponentArtifactEntity> artifacts)
Filter non trap or poll artifacts map.
|
static TranslatorOutput |
loadAndTranslateTemplateData(FileContentHandler fileNameContentMap)
Load and translate template data translator output.
|
static FileContentHandler |
loadUploadFileContent(byte[] uploadedFileData)
Load upload file content file content handler.
|
static void |
validateContentZipData(FileContentHandler contentMap,
Map<String,List<ErrorMessage>> errors)
Validate content zip data.
|
static void |
validateRawZipData(byte[] uploadedFileData,
Map<String,List<ErrorMessage>> errors)
Validate raw zip data.
|
public static FileContentHandler loadUploadFileContent(byte[] uploadedFileData) throws IOException
uploadedFileData
- the uploaded file dataIOException
- the io exceptionpublic static TranslatorOutput loadAndTranslateTemplateData(FileContentHandler fileNameContentMap)
fileNameContentMap
- the file name content mappublic static void addFileNamesToUploadFileResponse(FileContentHandler fileContentMap, UploadFileResponse uploadFileResponse)
fileContentMap
- the file content mapuploadFileResponse
- the upload file responsepublic static void validateRawZipData(byte[] uploadedFileData, Map<String,List<ErrorMessage>> errors)
uploadedFileData
- the uploaded file dataerrors
- the errorspublic static void validateContentZipData(FileContentHandler contentMap, Map<String,List<ErrorMessage>> errors)
contentMap
- the content maperrors
- the errorspublic static Map<ComponentArtifactType,String> filterNonTrapOrPollArtifacts(Collection<ComponentArtifactEntity> artifacts)
artifacts
- the artifactsCopyright © 2017. All rights reserved.