The following document contains the results of PMD's CPD 6.13.0.
File | Line |
---|---|
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 226 |
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 365 |
} if ( StringUtils.isBlank( strFeedType ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_FEED_TYPE, AdminMessage.TYPE_STOP ); } if ( !getFeedTypes( ).contains( strFeedType ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_FEED_TYPE, AdminMessage.TYPE_STOP ); } if ( StringUtils.isBlank( strEncoding ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_ENCODING, AdminMessage.TYPE_STOP ); } int nMaxItems; if ( StringUtils.isBlank( strMaxItems ) ) { nMaxItems = 0; } else { try { nMaxItems = Integer.parseInt( strMaxItems ); } catch ( NumberFormatException nfe ) { AppLogService.error( nfe.getMessage( ), nfe ); return AdminMessageService.getMessageUrl( request, MESSAGE_MAX_ITEMS, AdminMessage.TYPE_STOP ); } } |
File | Line |
---|---|
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 667 |
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 865 |
} if ( StringUtils.isBlank( strFeedType ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_FEED_TYPE, AdminMessage.TYPE_STOP ); } if ( !getFeedTypes( ).contains( strFeedType ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_FEED_TYPE, AdminMessage.TYPE_STOP ); } if ( StringUtils.isBlank( strEncoding ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_ENCODING, AdminMessage.TYPE_STOP ); } int nMaxItems; if ( StringUtils.isBlank( strRssMaxItems ) ) { // set to 0 -- no limit nMaxItems = 0; } else { try { nMaxItems = Integer.parseInt( strRssMaxItems ); } catch ( NumberFormatException nfe ) { AppLogService.error( nfe.getMessage( ), nfe ); return AdminMessageService.getMessageUrl( request, MESSAGE_MAX_ITEMS, AdminMessage.TYPE_STOP ); } } |
File | Line |
---|---|
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 355 |
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 855 |
} if ( ( resourceRss != null ) && ( request.getParameter( PARAMETER_CANCEL ) == null ) ) { String strError = resourceRss.doValidateConfigForm( request, getLocale( ) ); if ( strError != null ) { return strError; } } if ( StringUtils.isBlank( strFeedType ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_FEED_TYPE, AdminMessage.TYPE_STOP ); } if ( !getFeedTypes( ).contains( strFeedType ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_FEED_TYPE, AdminMessage.TYPE_STOP ); } if ( StringUtils.isBlank( strEncoding ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_NO_ENCODING, AdminMessage.TYPE_STOP ); } int nMaxItems; if ( StringUtils.isBlank( strMaxItems ) ) |
File | Line |
---|---|
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 639 |
fr/paris/lutece/plugins/rss/web/RssJspBean.java | 828 |
request.getParameter( PARAMETER_PUSH_RSS_DESCRIPTION ).equals( "" ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } // Check the file name length String strNameMaxLength = AppPropertiesService.getProperty( PROPERTY_NAME_MAX_LENGTH ); if ( strRssFileName.length( ) > Integer.parseInt( strNameMaxLength ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_FILENAME_TOO_LONG, AdminMessage.TYPE_STOP ); } // Format the new file name strRssFileName = UploadUtil.cleanFileName( strRssFileName ); // Check the type of the name String strFileType = AppPropertiesService.getProperty( PROPERTY_FILE_TYPE ); if ( !strRssFileName.toLowerCase( ).endsWith( strFileType ) ) { strRssFileName = strRssFileName + strFileType; } // Verifies whether the file's name exists if ( RssGeneratedFileHome.checkRssFileFileName( strRssFileName ) ) { return AdminMessageService.getMessageUrl( request, MESSAGE_FILENAME_ALREADY_EXISTS, AdminMessage.TYPE_STOP ); } if ( StringUtils.isBlank( strFeedType ) ) |
File | Line |
---|---|
fr/paris/lutece/plugins/rss/business/RssFeedDAO.java | 133 |
fr/paris/lutece/plugins/rss/business/RssFeedDAO.java | 215 |
rssFeed = new RssFeed( ); rssFeed.setIsActive( bActive ); rssFeed.setId( daoUtil.getInt( 1 ) ); rssFeed.setName( daoUtil.getString( 2 ) ); rssFeed.setUrl( daoUtil.getString( 3 ) ); rssFeed.setLastFetchDate( daoUtil.getTimestamp( 4 ) ); rssFeed.setLastFetchStatus( daoUtil.getInt( 5 ) ); rssFeed.setLastFetchError( daoUtil.getString( 6 ) ); rssFeed.setWorkgroup( daoUtil.getString( 7 ) ); rssFeed.setIdIncludeStyle( daoUtil.getInt( 8 ) ); |