CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
| File |
Line |
| fr/paris/lutece/plugins/identityexport/business/ExtractStoreDAO.java |
185 |
| fr/paris/lutece/plugins/identityexport/business/ExtractionDAO.java |
227 |
| fr/paris/lutece/plugins/identityexport/business/ProfilDAO.java |
234 |
List<ExportRequest> extractDaemonList = new ArrayList<>();
StringBuilder builder = new StringBuilder();
if (!listIds.isEmpty()) {
for (int i = 0; i < listIds.size(); i++) {
builder.append("?,");
}
String placeHolders = builder.deleteCharAt(builder.length() - 1).toString();
String stmt = SQL_QUERY_SELECTALL_BY_IDS + placeHolders + ")";
try (DAOUtil daoUtil = new DAOUtil(stmt, plugin)) {
int index = 1;
for (Integer n : listIds) {
daoUtil.setInt(index++, n);
}
daoUtil.executeQuery();
while (daoUtil.next()) { |
| File |
Line |
| fr/paris/lutece/plugins/identityexport/business/ProfilDAO.java |
87 |
| fr/paris/lutece/plugins/identityexport/business/ProfilDAO.java |
148 |
try( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT, Statement.RETURN_GENERATED_KEYS, plugin ) )
{
int nIndex = 1;
daoUtil.setString( nIndex++ , profil.getName( ) );
daoUtil.setString( nIndex++ , profil.getCertification( ) );
daoUtil.setString( nIndex++ , profil.getFileName( ) );
daoUtil.setBoolean( nIndex++, profil.isMonParis( ) );
daoUtil.setBoolean( nIndex++, profil.isAutoExtract() );
if (profil.getAutoExtractInterval() == null) {
daoUtil.setIntNull(nIndex++);
} else {
daoUtil.setInt(nIndex++, profil.getAutoExtractInterval());
}
daoUtil.setString(nIndex, profil.getPassword()); |
| File |
Line |
| fr/paris/lutece/plugins/identityexport/web/ProfilJspBean.java |
216 |
| fr/paris/lutece/plugins/identityexport/web/ProfilJspBean.java |
368 |
ReferentialService ref = SpringContextService.getBean( "referential.identityService" );
ReferenceList lstCertifLevel = new ReferenceList();
try {
RequestAuthor author = new RequestAuthor( );
author.setType( AuthorType.admin );
author.setName( "TEST" );
ProcessusSearchResponse processList = ref.getProcessList( AppPropertiesService.getProperty( Constants.PROPERTY_CODE_CLIENT ), author);
List<AttributeCertificationProcessusDto> processusCertif = processList.getProcessus();
for ( AttributeCertificationProcessusDto attrCertif : processusCertif )
{
System.out.println("Processus : " + attrCertif.getCode( ) + ", label : " + attrCertif.getLabel( ) );
lstCertifLevel.addItem( attrCertif.getCode(), attrCertif.getLabel() ); |