Résultats CPD
Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.
Duplicatas
Fichier |
Ligne |
fr/paris/lutece/plugins/workflow/modules/appointment/web/AbstractNotifyAppointmentTaskComponent.java |
139 |
fr/paris/lutece/plugins/workflow/modules/appointment/web/UpdateAppointmentCancelActionTaskComponent.java |
100 |
TaskNotifyAppointmentConfig config = taskConfigService.findByPrimaryKey( task.getId( ) );
ActionFilter filter = new ActionFilter( );
filter.setAutomaticReflexiveAction( false );
Action action = _actionService.findByPrimaryKey( task.getAction( ).getId( ) );
filter.setIdStateBefore( action.getStateAfter( ).getId( ) );
List<Action> listActions = _actionService.getListActionByFilter( filter );
List<Integer> listIdStateBefore = action.getListIdStateBefore();
int stateAfterId = action.getStateAfter().getId();
int alternativeStateAfterId = action.getStateAfter().getId();
if (listIdStateBefore.contains(stateAfterId) || listIdStateBefore.contains(alternativeStateAfterId))
{
for ( Action actionFound : listActions )
{
if ( actionFound.getId( ) == action.getId( ) )
{
listActions.remove( actionFound );
break;
}
}
}
ReferenceList refListActions = new ReferenceList( listActions.size( ) + 1 );
refListActions.addItem( 0, StringUtils.EMPTY );
for ( Action actionFound : listActions )
{
refListActions.addItem( actionFound.getId( ), actionFound.getName( ) );
} |
Fichier |
Ligne |
fr/paris/lutece/plugins/workflow/modules/appointment/business/TaskNotifyAdminAppointmentConfigDAO.java |
66 |
fr/paris/lutece/plugins/workflow/modules/appointment/business/TaskNotifyAdminAppointmentConfigDAO.java |
92 |
daoUtil.setInt( nIndex++, config.getIdAdminUser( ) );
daoUtil.setString( nIndex++, config.getSenderName( ) );
daoUtil.setString( nIndex++, config.getSenderEmail( ) );
daoUtil.setString( nIndex++, config.getSubject( ) );
daoUtil.setString( nIndex++, config.getMessage( ) );
daoUtil.setString( nIndex++, config.getRecipientsCc( ) );
daoUtil.setString( nIndex++, config.getRecipientsBcc( ) );
daoUtil.setInt( nIndex++, config.getIdActionCancel( ) );
daoUtil.setInt( nIndex++, config.getIdActionValidate( ) );
daoUtil.setBoolean( nIndex++, config.getSendICalNotif( ) );
daoUtil.setBoolean( nIndex++, config.getCreateNotif( ) );
daoUtil.setString( nIndex, config.getLocation( ) ); |
Fichier |
Ligne |
fr/paris/lutece/plugins/workflow/modules/appointment/business/TaskNotifyAppointmentConfigDAO.java |
68 |
fr/paris/lutece/plugins/workflow/modules/appointment/business/TaskNotifyAppointmentConfigDAO.java |
94 |
daoUtil.setString( nIndex++, config.getSenderName( ) );
daoUtil.setString( nIndex++, config.getSenderEmail( ) );
daoUtil.setString( nIndex++, config.getSubject( ) );
daoUtil.setString( nIndex++, config.getMessage( ) );
daoUtil.setString( nIndex++, config.getRecipientsCc( ) );
daoUtil.setString( nIndex++, config.getRecipientsBcc( ) );
daoUtil.setInt( nIndex++, config.getIdActionCancel( ) );
daoUtil.setBoolean( nIndex++, config.getSendICalNotif( ) );
daoUtil.setBoolean( nIndex++, config.getCreateNotif( ) );
daoUtil.setString( nIndex++, config.getLocation( ) );
daoUtil.setBoolean( nIndex, config.getIsSms( ) ); |