Fork me on GitHub

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/grubusiness/business/mock/MockNotificationDAO.java 79
fr/paris/lutece/plugins/grubusiness/business/mock/MockNotificationDAO.java 159
        List<Notification> listResult = new ArrayList<Notification>( );
        for ( Notification notification : _listMockNotification )
        {
            boolean bAddNotif = true;
            if ( notificationFilter.containsDemandId( ) )
            {
                bAddNotif = notification.getDemand( ) != null && notificationFilter.getDemandId( ).equals( notification.getDemand( ).getId( ) );
            }
            if ( bAddNotif && notificationFilter.containsDemandTypeId( ) )
            {
                bAddNotif = notification.getDemand( ) != null && notificationFilter.getDemandTypeId( ).equals( notification.getDemand( ).getTypeId( ) );
            }
            if ( bAddNotif && notificationFilter.containsHasBackofficeNotification( ) )
            {
                bAddNotif = notification.getBackofficeNotification( ) != null;
            }
            if ( bAddNotif && notificationFilter.containsHasBroadcastEmailNotification( ) )
            {
                bAddNotif =  notification.getBroadcastEmail( ) != null && !notification.getBroadcastEmail( ).isEmpty( ) ;
            }
            if ( bAddNotif && notificationFilter.containsHasCustomerEmailNotification( ) )
            {
                bAddNotif = notification.getEmailNotification( ) != null;
            }
            if ( bAddNotif && notificationFilter.containsHasMyDashboardNotification( ) )
            {
                bAddNotif = notification.getMyDashboardNotification( ) != null;
            }
            if ( bAddNotif && notificationFilter.containsHasSmsNotification( ) )
            {
                bAddNotif = notification.getSmsNotification( ) != null;
            }
            if ( bAddNotif )
            {
                listResult.add( notification );