Fork me on GitHub

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/myapps/modules/database/business/MyAppsDatabaseDAO.java 237
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 300
        if ( filter != null && filter.containsCategory( ) )
        {

            daoUtil.setString( ++ncpt, filter.getCategory( ) );

        }
        daoUtil.executeQuery( );

        while ( daoUtil.next( ) )
        {
            int nIndex = 1;
            MyAppsDatabase myApps = new MyAppsDatabase( );

            myApps.setIdApplication( daoUtil.getInt( nIndex++ ) );
            myApps.setName( daoUtil.getString( nIndex++ ) );
            myApps.setDescription( daoUtil.getString( nIndex++ ) );
            myApps.setUrl( daoUtil.getString( nIndex++ ) );
            myApps.setCode( daoUtil.getString( nIndex++ ) );
            myApps.setPassword( daoUtil.getString( nIndex++ ) );
            myApps.setData( daoUtil.getString( nIndex++ ) );
            myApps.setCodeHeading( daoUtil.getString( nIndex++ ) );
            myApps.setDataHeading( daoUtil.getString( nIndex++ ) );
            myApps.setIconMimeType( daoUtil.getString( nIndex++ ) );
            myApps.setCodeCategory( daoUtil.getString( nIndex++ ) );

            myAppsList.add( myApps );
        }

        daoUtil.free( );

        return myAppsList;
    }

    /**
     * {@inheritDoc}
     */
    public List<MyApps> selectMyAppsListByFilter( MyAppsDatabaseFilter filter, boolean bIsAscSort, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 243
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 307
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 346
        daoUtil.executeQuery( );

        while ( daoUtil.next( ) )
        {
            int nIndex = 1;
            MyAppsDatabase myApps = new MyAppsDatabase( );

            myApps.setIdApplication( daoUtil.getInt( nIndex++ ) );
            myApps.setName( daoUtil.getString( nIndex++ ) );
            myApps.setDescription( daoUtil.getString( nIndex++ ) );
            myApps.setUrl( daoUtil.getString( nIndex++ ) );
            myApps.setCode( daoUtil.getString( nIndex++ ) );
            myApps.setPassword( daoUtil.getString( nIndex++ ) );
            myApps.setData( daoUtil.getString( nIndex++ ) );
            myApps.setCodeHeading( daoUtil.getString( nIndex++ ) );
            myApps.setDataHeading( daoUtil.getString( nIndex++ ) );
            myApps.setIconMimeType( daoUtil.getString( nIndex++ ) );
            myApps.setCodeCategory( daoUtil.getString( nIndex++ ) );

            myAppsList.add( myApps );
        }

        daoUtil.free( );

        return myAppsList;
    }

    /**
     * {@inheritDoc}
     */
    public List<MyApps> selectMyAppsListByFilter( MyAppsDatabaseFilter filter, boolean bIsAscSort, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 151
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 248
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 312
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 351
            myApps = new MyAppsDatabase( );

            myApps.setIdApplication( daoUtil.getInt( nIndex++ ) );
            myApps.setName( daoUtil.getString( nIndex++ ) );
            myApps.setDescription( daoUtil.getString( nIndex++ ) );
            myApps.setUrl( daoUtil.getString( nIndex++ ) );
            myApps.setCode( daoUtil.getString( nIndex++ ) );
            myApps.setPassword( daoUtil.getString( nIndex++ ) );
            myApps.setData( daoUtil.getString( nIndex++ ) );
            myApps.setCodeHeading( daoUtil.getString( nIndex++ ) );
            myApps.setDataHeading( daoUtil.getString( nIndex++ ) );
            myApps.setIconMimeType( daoUtil.getString( nIndex++ ) );
            myApps.setCodeCategory( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseUserDAO.java 240
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseUserDAO.java 275
            nIndex = 1;
            myAppsUser = new MyAppsDatabaseUser( );

            myAppsUser.setMyAppsUserId( daoUtil.getInt( nIndex++ ) );
            myAppsUser.setName( daoUtil.getString( nIndex++ ) );
            myAppsUser.setIdApplication( daoUtil.getInt( nIndex++ ) );

            // Decrypt username and password
            String KEY = CryptoService.getCryptoKey( );
            String strUsername = CryptoUtil.decrypt( daoUtil.getString( nIndex++ ), KEY );
            String strPassword = CryptoUtil.decrypt( daoUtil.getString( nIndex++ ), KEY );
            myAppsUser.setStoredUserName( strUsername );
            myAppsUser.setStoredUserPassword( strPassword );
            myAppsUser.setStoredUserData( daoUtil.getString( nIndex++ ) );
            myAppsUser.setApplicationOrder( daoUtil.getInt( nIndex++ ) );
        }

        daoUtil.free( );

        return myAppsUser;
    }

    /**
     * {@inheritDoc}
     */
    public MyAppsDatabaseUser getCredentials( int nMyAppsUserId, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/myapps/modules/database/web/MyAppsDatabaseJspBean.java 446
fr/paris/lutece/plugins/myapps/modules/database/web/MyAppsDatabaseJspBean.java 528
        String strAppName = request.getParameter( MyAppsDatabaseConstants.PARAMETER_MYAPP_NAME );
        String strUrl = request.getParameter( MyAppsDatabaseConstants.PARAMETER_MYAPP_URL );
        String strPassword = request.getParameter( MyAppsDatabaseConstants.PARAMETER_PASSWORD );
        String strCode = request.getParameter( MyAppsDatabaseConstants.PARAMETER_CODE );
        String strCodeHeading = request.getParameter( MyAppsDatabaseConstants.PARAMETER_CODE_HEADING );
        String strData = request.getParameter( MyAppsDatabaseConstants.PARAMETER_DATA );
        String strDataHeading = request.getParameter( MyAppsDatabaseConstants.PARAMETER_DATA_HEADING );
        String strDescription = request.getParameter( MyAppsDatabaseConstants.PARAMETER_MYAPP_DESCRIPTION );
        String strCodeCategory = request.getParameter( MyAppsDatabaseConstants.PARAMETER_MYAPP_CODE_CATEGORY );

        String strError = verifyFields( request );

        if ( StringUtils.isBlank( strError ) )
        {
Fichier Ligne
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseUserDAO.java 200
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseUserDAO.java 304
        DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );
        daoUtil.executeQuery( );

        while ( daoUtil.next( ) )
        {
            int nIndex = 1;
            MyAppsDatabaseUser myAppsUser = new MyAppsDatabaseUser( );

            myAppsUser.setMyAppsUserId( daoUtil.getInt( nIndex++ ) );
            myAppsUser.setName( daoUtil.getString( nIndex++ ) );
            myAppsUser.setIdApplication( daoUtil.getInt( nIndex++ ) );
            myAppsUser.setStoredUserName( daoUtil.getString( nIndex++ ) );
            myAppsUser.setStoredUserPassword( daoUtil.getString( nIndex++ ) );
            myAppsUser.setStoredUserData( daoUtil.getString( nIndex++ ) );
            myAppsUser.setApplicationOrder( daoUtil.getInt( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 112
fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java 191
        daoUtil.setString( nIndex++, myApps.getName( ) );
        daoUtil.setString( nIndex++, myApps.getDescription( ) );
        daoUtil.setString( nIndex++, myApps.getUrl( ) );
        daoUtil.setString( nIndex++, myApps.getCode( ) );
        daoUtil.setString( nIndex++, myApps.getPassword( ) );
        daoUtil.setString( nIndex++, myApps.getData( ) );
        daoUtil.setString( nIndex++, myApps.getCodeHeading( ) );
        daoUtil.setString( nIndex++, myApps.getDataHeading( ) );

        if ( ( myApps.getIconContent( ) == null ) )