CPD Results
The following document contains the results of PMD's CPD 5.3.5.
Duplications
File |
Line |
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 ) |
File |
Line |
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;
} |