CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/mylutece/modules/database/authentication/business/DatabaseUserDAO.java |
287 |
fr/paris/lutece/plugins/mylutece/modules/database/authentication/business/DatabaseUserDAO.java |
315 |
daoUtil.setString( 1, strLogin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
DatabaseUser databaseUser = DatabaseUserFactory.getFactory( ).newDatabaseUser( );
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.setStatus( daoUtil.getInt( 6 ) );
listDatabaseUsers.add( databaseUser );
}
}
return listDatabaseUsers;
}
/**
* {@inheritDoc}
*/
@Override
public Collection<DatabaseUser> selectDatabaseUserListForEmail( String strEmail, Plugin plugin ) |
File |
Line |
fr/paris/lutece/plugins/mylutece/modules/database/authentication/business/DatabaseUserDAO.java |
160 |
fr/paris/lutece/plugins/mylutece/modules/database/authentication/business/DatabaseUserDAO.java |
256 |
databaseUser = DatabaseUserFactory.getFactory( ).newDatabaseUser( );
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.setStatus( daoUtil.getInt( 6 ) );
long accountTime = daoUtil.getLong( 7 );
if ( accountTime > 0 )
{
databaseUser.setAccountMaxValidDate( new Timestamp( accountTime ) );
} |
File |
Line |
fr/paris/lutece/plugins/mylutece/modules/database/authentication/web/MyLuteceDatabaseApp.java |
577 |
fr/paris/lutece/plugins/mylutece/modules/database/authentication/web/MyLuteceDatabaseApp.java |
702 |
model.put( MARK_SHOW_INPUT_EMAIL, !_userFactory.isEmailUsedAsLogin( ) );
model.put( MARK_PASSWORD_FORMAT_MESSAGE, SecurityUtils.getMessageFrontPasswordFormat( _locale, _userParamService, _plugin ) );
if ( StringUtils.equals( strErrorCode, ERROR_PASSWORD_MINIMUM_LENGTH ) )
{
Object [ ] param = {
_userParamService.findByKey( MARK_PASSWORD_MINIMUM_LENGTH, _plugin ).getName( )
};
model.put( MARK_PASSWORD_MINIMUM_LENGTH, I18nService.getLocalizedString( MESSAGE_MINIMUM_PASSWORD_LENGTH, param, _locale ) );
}
if ( _userParamService.isJcaptchaEnable( _plugin ) )
{
model.put( MARK_JCAPTCHA, _captchaService.getHtmlCode( ) );
}
HtmlTemplate t = AppTemplateService.getTemplate( TEMPLATE_MODIFY_ACCOUNT_PAGE, _locale, model ); |