Résultats CPD
Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.
Duplicatas
Fichier |
Ligne |
fr/paris/lutece/plugins/identityexport/business/ExtractStoreDAO.java |
181 |
fr/paris/lutece/plugins/identityexport/business/ExtractionDAO.java |
227 |
fr/paris/lutece/plugins/identityexport/business/ProfilDAO.java |
228 |
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()) { |
Fichier |
Ligne |
fr/paris/lutece/plugins/identityexport/business/ProfilDAO.java |
161 |
fr/paris/lutece/plugins/identityexport/business/ProfilDAO.java |
249 |
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
Profile profil = new Profile( );
int nIndex = 1;
profil.setId( daoUtil.getInt( nIndex++ ) );
profil.setName( daoUtil.getString( nIndex++ ) );
profil.setCertification( daoUtil.getString( nIndex++ ) );
profil.setFileName( daoUtil.getString( nIndex++ ) );
profil.setMonParis( daoUtil.getBoolean( nIndex++ ) );
profil.setAutoExtract( daoUtil.getBoolean( nIndex++ ) );
profil.setPassword( daoUtil.getString( nIndex++ ) );
profilList.add( profil );
} |
Fichier |
Ligne |
fr/paris/lutece/plugins/identityexport/web/ProfilJspBean.java |
207 |
fr/paris/lutece/plugins/identityexport/web/ProfilJspBean.java |
355 |
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() ); |