The following document contains the results of PMD's CPD 6.13.0.
| File | Line |
|---|---|
| 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.containsBackofficeNotificationType( ) )
{
bAddNotif = notification.getBackofficeNotification( ) != null;
}
if ( bAddNotif && notificationFilter.containsBroadcastEmailNotificationType( ) )
{
bAddNotif = notification.getBroadcastEmail( ) != null && !notification.getBroadcastEmail( ).isEmpty( );
}
if ( bAddNotif && notificationFilter.containsCustomerEmailNotificationType( ) )
{
bAddNotif = notification.getEmailNotification( ) != null;
}
if ( bAddNotif && notificationFilter.containsMyDashboardNotificationType( ) )
{
bAddNotif = notification.getMyDashboardNotification( ) != null;
}
if ( bAddNotif && notificationFilter.containsSmsNotificationType( ) )
{
bAddNotif = notification.getSmsNotification( ) != null;
}
if ( bAddNotif )
{
listResult.add( notification ); | |