public final class Sorting extends Object
NotificationEntry objects, either within a List
or within their NotificationCategory containers.| Modifier and Type | Field and Description |
|---|---|
static String |
SORT_ORDER_DEFAULT |
static String |
SORT_ORDER_PREFERENCE
Either ASCENDING (default) or DECENDING.
|
static String |
SORT_STRATEGY_PREFERENCE
Used to define a portlet preference that indicates the way
NotificationEntry objects should be sorted within their
NotificationCategory containers. |
| Constructor and Description |
|---|
Sorting() |
| Modifier and Type | Method and Description |
|---|---|
static List<NotificationEntry> |
sort(javax.portlet.PortletRequest req,
List<NotificationEntry> entries) |
static NotificationResponse |
sort(javax.portlet.PortletRequest req,
NotificationResponse data) |
public static final String SORT_STRATEGY_PREFERENCE
NotificationEntry objects should be sorted within their
NotificationCategory containers. Using a SortStrategy is
completely optional; if none is specified, no sorting will be applied.public static final String SORT_ORDER_PREFERENCE
public static final String SORT_ORDER_DEFAULT
public static NotificationResponse sort(javax.portlet.PortletRequest req, NotificationResponse data)
public static List<NotificationEntry> sort(javax.portlet.PortletRequest req, List<NotificationEntry> entries)
Copyright © 2016 Jasig. All Rights Reserved.