Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 6.13.0.

Duplications

File Line
fr/paris/lutece/plugins/workflow/modules/formsextend/business/MassNotificationTaskConfigDAO.java 62
fr/paris/lutece/plugins/workflow/modules/formsextend/business/MassNotificationTaskConfigDAO.java 92
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT, WorkflowFormsextendPlugin.getPlugin( ) ) )
        {
            int nIndex = 0;
            daoUtil.setInt( ++nIndex, config.getIdTask( ) );
            // Email config
            daoUtil.setString( ++nIndex, config.getMessageForEmail( ) );
            daoUtil.setString( ++nIndex, config.getSubjectForEmail( ) );
            daoUtil.setString( ++nIndex, config.getSenderNameForEmail( ) );
            daoUtil.setString( ++nIndex, config.getSenderEmailForEmail( ) );
            daoUtil.setString( ++nIndex, StringUtils.join( config.getListExtenderTypesForEmail( ), "," ) );
            daoUtil.setBoolean( ++nIndex, config.isEmailConfig( ) );

            // Dashboard config
            daoUtil.setString( ++nIndex, config.getMessageForDashboard( ) );
            daoUtil.setString( ++nIndex, config.getSubjectForDashboard( ) );
            daoUtil.setString( ++nIndex, config.getSenderForDashboard( ) );
            daoUtil.setString( ++nIndex, StringUtils.join( config.getListExtenderTypesForDashboard( ), "," ) );
            daoUtil.setBoolean( ++nIndex, config.isDashboardConfig( ) );

            daoUtil.executeUpdate( );