The following document contains the results of PMD's CPD 5.3.5.
File | Line |
---|---|
fr/paris/lutece/plugins/fileexport/web/FileexportJspBean.java | 172 |
fr/paris/lutece/plugins/fileexport/web/FileexportJspBean.java | 284 |
FileExport fileexport = new FileExport( ); if ( request.getParameter( PARAMETER_FILEEXPORT_DESC ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } fileexport.setDesc( request.getParameter( PARAMETER_FILEEXPORT_DESC ) ); if ( request.getParameter( PARAMETER_FILEEXPORT_POOL_NAME ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } String strPoolName = request.getParameter( PARAMETER_FILEEXPORT_POOL_NAME ) ; fileexport.setPoolName( strPoolName ); if ( request.getParameter( PARAMETER_FILEEXPORT_SQL_QUERY ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } fileexport.setSqlQuery( request.getParameter( PARAMETER_FILEEXPORT_SQL_QUERY ) ); if ( request.getParameter( PARAMETER_FILEEXPORT_FILE_SQL_FIELD ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } fileexport.setFileSqlField( request.getParameter( PARAMETER_FILEEXPORT_FILE_SQL_FIELD ) ); if ( request.getParameter( PARAMETER_FILEEXPORT_DIRECTORY_FIELD ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } fileexport.setDirectoryField( request.getParameter( PARAMETER_FILEEXPORT_DIRECTORY_FIELD ) ); if ( request.getParameter( PARAMETER_FILEEXPORT_FILENAME_INDEX ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } fileexport.setFilenameIndex( request.getParameter( PARAMETER_FILEEXPORT_FILENAME_INDEX ) ); FileExportHome.create( fileexport, getPlugin( ) ); |