public class OrderListState extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
module |
protected Map<String,String> |
orderFilterState |
protected int |
orderListSize |
protected Map<String,String> |
orderStatusState |
protected Map<String,String> |
orderTypeState |
protected static Map<String,String> |
parameterToFilterId |
protected static Map<String,String> |
parameterToOrderStatusId |
protected static Map<String,String> |
parameterToOrderTypeId |
static String |
SESSION_KEY |
static String |
VIEW_INDEX_PARAM |
static String |
VIEW_SIZE_PARAM |
protected int |
viewIndex |
protected int |
viewSize |
Modifier | Constructor and Description |
---|---|
protected |
OrderListState()
Initializes the order list state with default values.
|
Modifier and Type | Method and Description |
---|---|
static OrderListState |
getInstance(HttpServletRequest request)
Retrieves the current user's OrderListState from the session
or creates a new one with defaults.
|
Map<String,String> |
getorderFilterState() |
List<GenericValue> |
getOrders(String facilityId,
Timestamp filterDate,
Delegator delegator)
Get the OrderHeaders corresponding to the state.
|
Map<String,String> |
getOrderStatusState() |
Map<String,String> |
getOrderTypeState() |
int |
getSize() |
int |
getViewIndex() |
int |
getViewSize() |
boolean |
hasAllStatus() |
boolean |
hasFilter(String param) |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
hasStatus(String param) |
boolean |
hasType(String param) |
void |
setStatus(String param,
boolean b) |
void |
setType(String param,
boolean b) |
String |
toString() |
void |
update(HttpServletRequest request)
Given a request, decides what state to change.
|
public static final String module
public static final String SESSION_KEY
public static final String VIEW_SIZE_PARAM
public static final String VIEW_INDEX_PARAM
protected int viewSize
protected int viewIndex
protected int orderListSize
protected OrderListState()
public static OrderListState getInstance(HttpServletRequest request)
public void update(HttpServletRequest request)
public void setStatus(String param, boolean b)
public void setType(String param, boolean b)
public boolean hasStatus(String param)
public boolean hasType(String param)
public boolean hasFilter(String param)
public boolean hasAllStatus()
public int getViewSize()
public int getViewIndex()
public int getSize()
public boolean hasPrevious()
public boolean hasNext()
public List<GenericValue> getOrders(String facilityId, Timestamp filterDate, Delegator delegator) throws GenericEntityException
GenericEntityException