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<NotificationEntry> |
sort(javax.portlet.PortletRequest req,
java.util.List<NotificationEntry> entries) |
static NotificationResponse |
sort(javax.portlet.PortletRequest req,
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 NotificationResponse sort(javax.portlet.PortletRequest req, NotificationResponse data)
public static java.util.List<NotificationEntry> sort(javax.portlet.PortletRequest req, java.util.List<NotificationEntry> entries)
Copyright © 2018 Jasig. All Rights Reserved.