notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/util/NotificationResponseFlattener.java
private void addAndCategorizeEntries(List<NotificationEntry> allEntries, NotificationCategory notificationCategory) {
        for (NotificationEntry entry : notificationCategory.getEntries()) {
            List<NotificationAttribute> attrs = new ArrayList<>(entry.getAttributes());
            attrs.add(new NotificationAttribute("category", notificationCategory.getTitle()));
            entry.setAttributes(attrs);
            allEntries.add(entry);
        }
    }
private void addAndCategorizeEntries(List<NotificationEntry> allEntries, NotificationCategory notificationCategory) {
        for (NotificationEntry entry : notificationCategory.getEntries()) {
            List<NotificationAttribute> attrs = new ArrayList<>(entry.getAttributes());
            attrs.add(new NotificationAttribute("category", notificationCategory.getTitle()));
            entry.setAttributes(attrs);
            allEntries.add(entry);
        }
    }
private void addAndCategorizeEntries ( List < NotificationEntry > allEntries , NotificationCategory notificationCategory ) { for ( NotificationEntry entry : notificationCategory . getEntries ( ) ) { List < NotificationAttribute > attrs = new ArrayList <> ( entry . getAttributes ( ) ) ; attrs . add ( new NotificationAttribute ( "category" , notificationCategory . getTitle ( ) ) ) ; entry . setAttributes ( attrs ) ; allEntries . add ( entry ) ; } }
Add all entries from the notification category to the <code>allEntries</code> list after adding an attribute 'category' that contains
the category.  That allows UIs that want the convenience of an uncategorized list, such as dataTables, to obtain the data in a simple
format that requires no additional processing but maintains the knowledge of the category of the entries.

@param allEntries List of all entries
@param notificationCategory <code>NotificationCategory</code> to add its entries to the <code>allEntries</code> list
Add all entries from the notification category to the <code > allEntries< / code > list after adding an attribute category that contains the category . That allows UIs that want the convenience of an uncategorized list such as dataTables to obtain the data in a simple format that requires no additional processing but maintains the knowledge of the category of the entries .