Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.
Fichier | Ligne |
---|---|
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( ); |