CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/util/LdapBrowser.java |
156 |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/util/LdapBrowser.java |
259 |
while ( ( userResults != null ) && userResults.hasMore( ) )
{
sr = (SearchResult) userResults.next( );
Attributes attributes = sr.getAttributes( );
String strWssoId = "";
if ( attributes.get( ATTRIBUTE_GUID ) != null )
{
strWssoId = attributes.get( ATTRIBUTE_GUID ).get( ).toString( );
}
String strLastName = "";
if ( attributes.get( ATTRIBUTE_FAMILY_NAME ) != null )
{
strLastName = attributes.get( ATTRIBUTE_FAMILY_NAME ).get( ).toString( );
}
String strFirstName = "";
if ( attributes.get( ATTRIBUTE_GIVEN_NAME ) != null )
{
strFirstName = attributes.get( ATTRIBUTE_GIVEN_NAME ).get( ).toString( );
}
String strEmail = "";
if ( attributes.get( ATTRIBUTE_EMAIL ) != null )
{
strEmail = attributes.get( ATTRIBUTE_EMAIL ).get( ).toString( );
} |
File |
Line |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserDAO.java |
195 |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserDAO.java |
226 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
WssoUser wssoUser = new WssoUser( );
wssoUser.setMyluteceWssoUserId( daoUtil.getInt( 1 ) );
wssoUser.setGuid( daoUtil.getString( 2 ) );
wssoUser.setLastName( daoUtil.getString( 3 ) );
wssoUser.setFirstName( daoUtil.getString( 4 ) );
wssoUser.setEmail( daoUtil.getString( 5 ) );
wssoUser.setDateLastLogin( daoUtil.getDate( 6 ) );
listWssoUsers.add( wssoUser );
}
daoUtil.free( );
return listWssoUsers;
}
/**
* Load the list of wssoUsers for a role
* @param nIdRole The role of WssoUser
* @param plugin The Plugin using this data access service
* @return The Collection of the WssoUsers
*/
public Collection<WssoUser> selectWssoUsersListForRole( int nIdRole, Plugin plugin ) |
File |
Line |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserDAO.java |
195 |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserDAO.java |
226 |
fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserDAO.java |
257 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
WssoUser wssoUser = new WssoUser( );
wssoUser.setMyluteceWssoUserId( daoUtil.getInt( 1 ) );
wssoUser.setGuid( daoUtil.getString( 2 ) );
wssoUser.setLastName( daoUtil.getString( 3 ) );
wssoUser.setFirstName( daoUtil.getString( 4 ) );
wssoUser.setEmail( daoUtil.getString( 5 ) );
wssoUser.setDateLastLogin( daoUtil.getDate( 6 ) );
listWssoUsers.add( wssoUser );
}
daoUtil.free( );
return listWssoUsers;
} |