public void forwardNotifications ( Collection < Notification > notifications , Collection < Recipient > recipients , String comment ) { List < String > lst1 = new ArrayList <> ( ) ; for ( Notification notification : notifications ) { lst1 . add ( notification . getAlertId ( ) ) ; } List < Long > lst2 = prepareRecipients ( recipients ) ; if ( ! lst1 . isEmpty ( ) && ! lst2 . isEmpty ( ) ) { broker . callRPC ( "RGCWXQ FORWARD" , lst1 , lst2 , comment ) ; } }
Forward multiple notifications .