Fork me on GitHub

Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 5.5.1.

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/phraseanet/web/PhraseanetJspBean.java 794
fr/paris/lutece/plugins/phraseanet/web/PhraseanetJspBean.java 1001
        String strAccountName = request.getParameter( PARAMETER_NAME );
        String strDescription = request.getParameter( PARAMETER_DESCRIPTION );        
        String strAccessUrl = request.getParameter( PARAMETER_ACCESS_URL );
        String strCustomerId = request.getParameter( PARAMETER_CUSTOMER_ID );
        String strCustomerSecret = request.getParameter( PARAMETER_CUSTOMER_SECRET );
        String strAuthorizeEndPoint = request.getParameter( PARAMETER_AUTHORIZE_END_POINT );
        String strAccessEndPoint = request.getParameter( PARAMETER_ACCESS_END_POINT );
        String strPhraseanetId = request.getParameter( PARAMETER_PHRASEANET_ID );
        String strPassword = request.getParameter( PARAMETER_PASSWORD );
        String strToken = request.getParameter( PARAMETER_TOKEN );

        if ( StringUtils.isNotBlank( strAccountName ) && 
                StringUtils.isNotBlank( strDescription ) &&
                StringUtils.isNotBlank( strAccessUrl ) && 
                StringUtils.isNotBlank( strCustomerId ) &&
                //StringUtils.isNotBlank( strCustomerSecret ) && 
                StringUtils.isNotBlank( strAuthorizeEndPoint ) &&
                StringUtils.isNotBlank( strAccessEndPoint ) && 
                StringUtils.isNotBlank( strPhraseanetId ) &&
                StringUtils.isNotBlank( strPassword ) )
        {
Fichier Ligne
fr/paris/lutece/plugins/phraseanet/business/account/AccountDAO.java 125
fr/paris/lutece/plugins/phraseanet/business/account/AccountDAO.java 212
            account = new Account(  );

            account.setId( daoUtil.getInt( 1 ) );
            account.setName( daoUtil.getString( 2 ) );
            account.setDescription( daoUtil.getString( 3 ) );
            account.setAccessURL( daoUtil.getString( 4 ) );
            account.setCustomerId( daoUtil.getString( 5 ) );
            account.setCustomerSecret( daoUtil.getString( 6 ) );
            account.setAuthorizeEndPoint( daoUtil.getString( 7 ) );
            account.setAccessEndPoint( daoUtil.getString( 8 ) );
            account.setPhraseanetId( daoUtil.getString( 9 ) );
            account.setPassword( daoUtil.getString( 10 ) );
            account.setToken( daoUtil.getString( 11 ) );