public final class Sorting
extends java.lang.Object
NotificationEntry objects, either within a List
or within their NotificationCategory containers.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SORT_ORDER_DEFAULT |
static java.lang.String |
SORT_ORDER_PREFERENCE
Either ASCENDING (default) or DECENDING.
|
static java.lang.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 java.util.List<org.jasig.portlet.notice.NotificationEntry> |
sort(javax.portlet.PortletRequest req,
java.util.List<org.jasig.portlet.notice.NotificationEntry> entries) |
static org.jasig.portlet.notice.NotificationResponse |
sort(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse data) |
public static final java.lang.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 java.lang.String SORT_ORDER_PREFERENCE
public static final java.lang.String SORT_ORDER_DEFAULT
public static org.jasig.portlet.notice.NotificationResponse sort(javax.portlet.PortletRequest req,
org.jasig.portlet.notice.NotificationResponse data)
public static java.util.List<org.jasig.portlet.notice.NotificationEntry> sort(javax.portlet.PortletRequest req,
java.util.List<org.jasig.portlet.notice.NotificationEntry> entries)