Résultats CPD
Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.
Duplicatas
Fichier |
Ligne |
fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUserDAO.java |
252 |
fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUserDAO.java |
283 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
OpenIdDatabaseUser databaseUser = new OpenIdDatabaseUser( );
databaseUser.setUserId( daoUtil.getInt( 1 ) );
databaseUser.setLogin( daoUtil.getString( 2 ) );
databaseUser.setLastName( daoUtil.getString( 3 ) );
databaseUser.setFirstName( daoUtil.getString( 4 ) );
databaseUser.setEmail( daoUtil.getString( 5 ) );
databaseUser.setAuthentificationType( daoUtil.getString( 6 ) );
listDatabaseUsers.add( databaseUser );
}
daoUtil.free( );
return listDatabaseUsers;
}
/**
* Load the list of DatabaseUsers for a login
* @param strLogin The login of DatabaseUser
* @param plugin The Plugin using this data access service
* @return The Collection of the DatabaseUsers
*/
public Collection<OpenIdDatabaseUser> selectDatabaseUserListForLogin( String strLogin, Plugin plugin ) |
Fichier |
Ligne |
fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUserDAO.java |
133 |
fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUserDAO.java |
357 |
daoUtil.setInt( 1, nUserId );
daoUtil.executeQuery( );
OpenIdDatabaseUser databaseUser = null;
if ( daoUtil.next( ) )
{
databaseUser = new OpenIdDatabaseUser( );
databaseUser.setUserId( daoUtil.getInt( 1 ) );
databaseUser.setLogin( daoUtil.getString( 2 ) );
databaseUser.setLastName( daoUtil.getString( 3 ) );
databaseUser.setFirstName( daoUtil.getString( 4 ) );
databaseUser.setEmail( daoUtil.getString( 5 ) );
databaseUser.setAuthentificationType( daoUtil.getString( 6 ) );
}
daoUtil.free( );
return databaseUser;
} |