CPD Results
The following document contains the results of PMD's CPD 5.3.5.
Duplications
File |
Line |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
165 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
316 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_ALL_BY_ADMIN_USER, plugin );
daoUtil.setInt( 1, nIdAdminUser );
daoUtil.setInt( 2, nIdDirectory );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
ZipBasket zipBasket = new ZipBasket( );
zipBasket.setIdZip( daoUtil.getInt( 1 ) );
zipBasket.setZipName( daoUtil.getString( 2 ) );
zipBasket.setZipUrl( daoUtil.getString( 3 ) );
zipBasket.setZipStatus( daoUtil.getString( 4 ) );
zipBasket.setIdAdminUser( daoUtil.getInt( 5 ) );
zipBasket.setIdDirectory( daoUtil.getInt( 6 ) );
zipBasket.setIdRecord( daoUtil.getInt( 7 ) );
zipBasket.setArchiveItemKey( daoUtil.getInt( 8 ) );
zipBasket.setDateZipAdded( daoUtil.getTimestamp( 9 ) );
if ( zipBasket != null )
{
lisZipBasket.add( zipBasket );
}
}
daoUtil.free( );
return lisZipBasket;
} |
File |
Line |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
131 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
167 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_ALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
ZipBasket zipBasket = new ZipBasket( );
zipBasket.setIdZip( daoUtil.getInt( 1 ) );
zipBasket.setZipName( daoUtil.getString( 2 ) );
zipBasket.setZipUrl( daoUtil.getString( 3 ) );
zipBasket.setZipStatus( daoUtil.getString( 4 ) );
zipBasket.setIdAdminUser( daoUtil.getInt( 5 ) );
zipBasket.setIdDirectory( daoUtil.getInt( 6 ) );
zipBasket.setIdRecord( daoUtil.getInt( 7 ) );
zipBasket.setArchiveItemKey( daoUtil.getInt( 8 ) );
zipBasket.setDateZipAdded( daoUtil.getTimestamp( 9 ) );
if ( zipBasket != null )
{
lisZipBasket.add( zipBasket );
}
}
daoUtil.free( );
return lisZipBasket;
}
/**
* {@inheritDoc}
*/
public List<ZipBasket> loadAllZipBasketByAdminUser( Plugin plugin, int nIdAdminUser, int nIdDirectory ) |
File |
Line |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
131 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
318 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_ALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
ZipBasket zipBasket = new ZipBasket( );
zipBasket.setIdZip( daoUtil.getInt( 1 ) );
zipBasket.setZipName( daoUtil.getString( 2 ) );
zipBasket.setZipUrl( daoUtil.getString( 3 ) );
zipBasket.setZipStatus( daoUtil.getString( 4 ) );
zipBasket.setIdAdminUser( daoUtil.getInt( 5 ) );
zipBasket.setIdDirectory( daoUtil.getInt( 6 ) );
zipBasket.setIdRecord( daoUtil.getInt( 7 ) );
zipBasket.setArchiveItemKey( daoUtil.getInt( 8 ) );
zipBasket.setDateZipAdded( daoUtil.getTimestamp( 9 ) );
if ( zipBasket != null )
{
lisZipBasket.add( zipBasket );
}
}
daoUtil.free( );
return lisZipBasket;
} |
File |
Line |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
131 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
167 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
251 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java |
318 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_ALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
ZipBasket zipBasket = new ZipBasket( );
zipBasket.setIdZip( daoUtil.getInt( 1 ) );
zipBasket.setZipName( daoUtil.getString( 2 ) );
zipBasket.setZipUrl( daoUtil.getString( 3 ) );
zipBasket.setZipStatus( daoUtil.getString( 4 ) );
zipBasket.setIdAdminUser( daoUtil.getInt( 5 ) );
zipBasket.setIdDirectory( daoUtil.getInt( 6 ) );
zipBasket.setIdRecord( daoUtil.getInt( 7 ) );
zipBasket.setArchiveItemKey( daoUtil.getInt( 8 ) );
zipBasket.setDateZipAdded( daoUtil.getTimestamp( 9 ) ); |
File |
Line |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/web/action/MassExportZipAction.java |
80 |
fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/web/action/ZipBasketAction.java |
79 |
private static final String MARK_PERMISSION_GENERATE_ZIP = "permission_generate_zip";
/**
* {@inheritDoc}
*/
public void fillModel( HttpServletRequest request, AdminUser adminUser, Map<String, Object> model )
{
String strIdDirectory = request.getParameter( DirectoryUtils.PARAMETER_ID_DIRECTORY );
String strIdResource = StringUtils.isNotBlank( strIdDirectory ) ? strIdDirectory : RBAC.WILDCARD_RESOURCES_ID;
model.put( MARK_PERMISSION_GENERATE_ZIP,
RBACService.isAuthorized( Directory.RESOURCE_TYPE, strIdResource,
DirectoryPDFProducerArchiveResourceIdService.PERMISSION_GENERATE_ZIP, adminUser ) );
}
/**
* {@inheritDoc}
*/
public String getButtonTemplate( )
{
return TEMPLATE_BUTTON;
}
/**
* {@inheritDoc}
*/
public String getName( )
{
return ACTION_NAME;
}
/**
* {@inheritDoc}
*/
public boolean isInvoked( HttpServletRequest request )
{ |