protected < P extends ParsedResume > P addFileThenHandleParseResume ( Class < ? extends FileEntity > type , Integer entityId , MultipartFile multipartFile , String externalId , FileParams fileParams , ResumeFileParseParams params ) { FileWrapper fileWrapper = handleAddFileWithMultipartFile ( type , entityId , multipartFile , externalId , fileParams , true ) ; P parsedResume = this . handleParseResumeFile ( multipartFile , params ) ; if ( ! parsedResume . isError ( ) ) { parsedResume . setFileWrapper ( fileWrapper ) ; } return parsedResume ; }
Makes the api call to both parse the resume and then attach the file . File is only attached if the resume parse was successful .