Résultats CPD
Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.
Duplicatas
Fichier |
Ligne |
fr/paris/lutece/plugins/form/modules/exportdirectory/utils/ExportDirectoryUtils.java |
717 |
fr/paris/lutece/plugins/form/modules/exportdirectory/utils/ExportDirectoryUtils.java |
761 |
if ( isDirectoryFileType( entryDirectory.getEntryType( ).getIdType( ) ) )
{
Response responseFile = responseService.findByPrimaryKey( response.getIdResponse( ), true );
if ( ( responseFile.getFile( ) != null ) && ( responseFile.getFile( ).getPhysicalFile( ) != null )
&& ( responseFile.getFile( ).getPhysicalFile( ).getValue( ) != null ) )
{
File file = new File( );
file.setTitle( responseFile.getFile( ).getTitle( ) );
file.setExtension( FilenameUtils.getExtension( responseFile.getFile( ).getTitle( ) ) );
file.setMimeType( responseFile.getFile( ).getMimeType( ) );
PhysicalFile physicalFile = new PhysicalFile( );
physicalFile.setValue( responseFile.getFile( ).getPhysicalFile( ).getValue( ) );
file.setPhysicalFile( physicalFile );
file.setSize( responseFile.getFile( ).getSize( ) );
recordField.setFile( file ); |
Fichier |
Ligne |
fr/paris/lutece/plugins/form/modules/exportdirectory/business/ProcessorExportdirectory.java |
569 |
fr/paris/lutece/plugins/form/modules/exportdirectory/business/ProcessorExportdirectory.java |
682 |
}
if ( ( request.getParameter( PARAMETER_EXPORT_ALL ) != null )
&& ( DirectoryUtils.convertStringToInt( request.getParameter( PARAMETER_EXPORT_ALL ) ) == 1 ) )
{
ResponseFilter responseFilter = new ResponseFilter( );
responseFilter.setIdResource( form.getIdForm( ) );
for ( FormSubmit formSubmit : FormSubmitHome.getFormSubmitList( responseFilter, pluginForm ) )
{
ResponseFilter responseFilterFormSubmit = new ResponseFilter( );
List<Integer> responseId = FormSubmitHome.getResponseListFromIdFormSubmit( formSubmit.getIdFormSubmit( ), plugin );
responseFilterFormSubmit.setListId( responseId );
IResponseService responseService = SpringContextService.getBean( FormUtils.BEAN_FORM_RESPONSE_SERVICE );
formSubmit.setListResponse( responseService.getResponseList( responseFilterFormSubmit, false ) );
try
{
ExportDirectoryUtils.createDirectoryRecord( request, FormConfigurationHome.findByPrimaryKey( form.getIdForm( ), pluginExportdirectory ),
formSubmit, pluginForm, pluginDirectory );
}
catch( UnsupportedEncodingException e )
{
return null;
}
}
} |