CPD Results
The following document contains the results of PMD's CPD 5.3.5.
Duplications
File |
Line |
fr/paris/lutece/plugins/whatsnew/business/WhatsNewDAO.java |
126 |
fr/paris/lutece/plugins/whatsnew/business/WhatsNewDAO.java |
268 |
List<IWhatsNew> list = new ArrayList<IWhatsNew>( );
while ( daoUtil.next( ) )
{
nIndex = 1;
WhatsNewTypePortlet whatsNew = new WhatsNewTypePortlet( );
whatsNew.setWhatsNewType( locale );
whatsNew.setTitle( daoUtil.getString( nIndex++ ) );
whatsNew.setDescription( StringUtils.EMPTY );
whatsNew.setDateUpdate( daoUtil.getTimestamp( nIndex++ ) );
whatsNew.setPageId( daoUtil.getInt( nIndex++ ) );
whatsNew.setPortletId( daoUtil.getInt( nIndex++ ) );
String strType = I18nService.getLocalizedString( daoUtil.getString( nIndex++ ), locale );
whatsNew.setType( strType );
whatsNew.setRefPageName( daoUtil.getString( nIndex++ ) ); |
File |
Line |
fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortletDAO.java |
134 |
fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortletDAO.java |
188 |
portlet.setId( daoUtil.getInt( nIndex++ ) );
portlet.setShowDocuments( daoUtil.getBoolean( nIndex++ ) );
portlet.setShowPortlets( daoUtil.getBoolean( nIndex++ ) );
portlet.setShowPages( daoUtil.getBoolean( nIndex++ ) );
portlet.setPeriod( daoUtil.getInt( nIndex++ ) );
portlet.setNbElementsMax( daoUtil.getInt( nIndex++ ) );
portlet.setElementsOrder( daoUtil.getInt( nIndex++ ) );
portlet.setAscSort( daoUtil.getBoolean( nIndex++ ) );
portlet.setDynamic( daoUtil.getBoolean( nIndex++ ) ); |
File |
Line |
fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortletDAO.java |
94 |
fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortletDAO.java |
160 |
daoUtil.setBoolean( nIndex++, p.getShowDocuments( ) );
daoUtil.setBoolean( nIndex++, p.getShowPortlets( ) );
daoUtil.setBoolean( nIndex++, p.getShowPages( ) );
daoUtil.setInt( nIndex++, p.getPeriod( ) );
daoUtil.setInt( nIndex++, p.getNbElementsMax( ) );
daoUtil.setInt( nIndex++, p.getElementsOrder( ) );
daoUtil.setBoolean( nIndex++, p.getAscSort( ) );
daoUtil.setBoolean( nIndex++, p.getDynamic( ) );
daoUtil.executeUpdate( ); |