public class OrderListDataBean extends OrderListDataBeanBase implements com.ibm.commerce.order.beans.OrderListInputDataBean, com.ibm.commerce.order.beans.OrderListSmartDataBean
Mode 1: when order_state is specified.
This DataBean when populated will give a list of Order access beans/databeans. They for those orders that are of the specified status,user, and/or the specified stores. If relType is specified, only orders of the specified relType(initial/selection/final/submission)and status belonging to the specified user will be returned. Note: The scope of orders returned can be limited by date using setStartEndDateAndScopeMethod()
Mode 2: when channelStoreId is specified.
The OrderListDataBean can also be used to retrieve Order access beans by Channel Store Order status(channelStoreOrderStatus) and Channel Store ID (channelStoreId). Channel Store Order status is described below:
Mode 3: when the fetchCurrentPendingOrder property is set to true.
The DataBean when populated will return a list of Orders access beans/databeans for the orders that belong to the specified user and store. Note: setStartEndDateAndScopeMethod() will have no effect in Mode 3.
Mode 4: when the resolveCurrentPendingOrders property is set to true.
The DataBean when populated will return a list of Orders access beans/databeans for the orders. These orders belong to the specified user and store, as determined by resolving the ResolveOrdersCmd.CURRENT_PENDING_ORDERS order abbreviation. Note: setStartEndDateAndScopeMethod() and setFetchCurrentPendingOrder() will have no effect in Mode 4.
Sorting: There is no sorting by default. To enable sorting setSortMethodId(int sortMethodId) to one of the following values:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
OrderListDataBean()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean | fulfills(java.lang.Long member, java.lang.String relationship)
Access control - fulfills
|
java.lang.Integer | getChannelStoreId()
This method returns the ChannelStoreId.
|
java.lang.String | getChannelStoreOrderStatus()
This method returns the ChannelStoreOrderStatus.
|
java.lang.String[] | getChannelStoreOrderStatusList()
This method returns the ChannelStoreOrderStatus.
|
CommandContext | getCommandContext()
This method returns the command context.
|
PriceDataBean | getDiscountAdjustedOrdersTotalPrice()
This method returns the subtotal across all the orders in the order list.
|
FormattedQuantityAmountDataBean | getFormattedOrderItemQuantityTotal()
This method returns the total quantity of all orderitems across all the orders in the orderlist
|
java.util.Vector | getNonEmptyOrders()
This method returns the list of orders containing one or more order items.
|
int | getNumberOfOrders()
This method returns the number of orders.
|
OrderDataBean[] | getOrderDataBeans()
This method returns the list of order data beans.
|
OrderDataBean[] | getOrderDataBeans(int startIndex, int endIndex)
This method returns a view of the portion of the list of orders between the specified startIndex, inclusive, and endIndex, exclusive.
|
OrderDataBean[] | getOrderDataBeansByPageNumber()
Deprecated.
Replaced by getOrderDataBeansForCurrentPage()
|
OrderDataBean[] | getOrderDataBeansByPageNumber(int page)
Deprecated.
Replaced by getOrderDataBeansForPage(int pageNumber)
|
OrderDataBean[] | getOrderDataBeansForCurrentPage()
This method returns a list of order databeans by the page number set in currentPage.
|
OrderDataBean[] | getOrderDataBeansForPage(int pageNumber)
This method returns a list of order databeans by the page number.
|
OrderListDataBean[] | getOrderListDataBeanSortByDisplayName()
This method returns Vector of orderlist databeans grouped by distributor display name Side Effect: SortMethodId will be set to 6, and the orders will be sorted by display name
|
java.util.Vector | getOrders()
This method returns the list of order access beans.
|
java.lang.String | getOrderStatus()
This method returns the status of the order.
|
java.lang.String[] | getOrderStatusList()
This method returns the list of order status.
|
java.lang.Long | getOwner()
This method returns the owner.
|
int | getPageSize()
This method returns page size.
|
java.lang.String | getRelType()
This method returns the relType.
|
TypedProperty | getRequestProperties()
This method returns the request properties.
|
int | getSortMethodId()
This method returns he inSortMethodId.
|
java.lang.Integer | getStoreId()
This method returns store Id.
|
java.lang.Long | getUserId()
This method returns user Id.
|
protected void | initializePageSize()
Initialize the page size according to maximum and default page size.
|
boolean | isEmptyShopCart()
Determines whether the orders contain any order items.
|
boolean | isFilterExcludeOrdersBlocked()
This method indicates that the list will exclude blocked orders.
|
boolean | isFilterExcludeOrdersWaitingApproval()
This method indicates where the list of returned orders will exclude orders waiting for approval
|
boolean | isFilterIncludeOrdersWaitingApproval()
This method indicates that the list of returned orders will include orders waiting for approval
|
boolean | isFilterOrdersWithNoDescription()
This method returns the filterOrdersWithNoDescription.
|
void | populate()
This method is used to populate the OrderListDataBean.
|
void | setAscendingSortOrder()
This method sets ascending sort order.
|
void | setChannelStoreId(java.lang.Integer paraChannelStoreId)
This method sets the ChannelStoreId.
|
void | setChannelStoreOrderStatus(java.lang.String istrChannelStoreOrderStatus)
This method sets the ChannelStoreOrderStatus.
|
void | setChannelStoreOrderStatus(java.lang.String[] astrChannelStoreOrderStatusList)
This method sets the ChannelStoreOrderStatus.
|
void | setCommandContext(CommandContext acommandContext)
This method sets the command context.
|
void | setCurrentPage(int pageNumber)
This method sets the current page number.
|
void | setDescendingSortOrder()
This method sets ascending sort order.
|
void | setFetchCurrentPendingOrder(boolean trueFalse)
This method specifies whether the databean should be populated with current.
|
void | setFilterExcludeOrdersBlocked(boolean b)
This method enables/disables a filter that exclude blocked orders from the order list.
|
void | setFilterExcludeOrdersWaitingApproval(boolean b)
This method enables/disables a filter that will exclude orders waiting for approval from the order list
|
void | setFilterIncludeOrdersWaitingApproval(boolean b)
This method enables/disables a filter that will include orders waiting for approval
|
void | setFilterOrdersWithNoDescription(boolean paraFilterOrdersWithNoDescription)
This method sets the filterOrdersWithNoDescription.
|
void | setMaxRows(int aMaxRows)
This method specifies the maximum number of rows to be returned.
|
void | setOrderStatus(java.lang.String aStatus)
This method sets the status for retrieving those order of that status.
|
void | setOrderStatus(java.lang.String[] aStatusList)
This method sets the list of status for retrieving those order.
|
void | setPageSize(int aPageSize)
This method specifies the page size for getOrderDataBeansByPageNumber(int pageNumber).
|
void | setRelType(java.lang.String paraIstrRelType)
This method sets the relType.
|
void | setRequestProperties(TypedProperty aParam)
This method sets the request properties.
|
void | setResolveCurrentPendingOrders(boolean trueFalse)
This method specifies whether the databean should be populated with current pending orders resolved from the ResolveOrdersCmd.CURRENT_PENDING_ORDERS order abbreviation.
|
void | setRetrievalOrderStatus(java.lang.String aStatus)
This method sets the status for retrieving those order of that status.
|
void | setSortMethodId(int paraInSortMethodId)
This method sets the inSortMethodId.
|
void | setStartEndDateAndScopeMethod(java.sql.Timestamp argStartDate, java.sql.Timestamp argEndDate, int argScopeMethod)
This method specifies the start and end date to be used to limit the scope of Orders retrieval.
|
void | setStoreId(java.lang.Integer aStoreId)
This method sets the store Id for retrieving those order of that store.
|
void | setStoreId(java.lang.Integer[] aStoreIdList)
This method sets the store Id for retrieving those order of that store.
|
void | setUserId(java.lang.Long aUserId)
This method sets the user Id for retrieving those order of that user.
|
public static final java.lang.String COPYRIGHT
public CommandContext getCommandContext()
public java.util.Vector getOrders()
public java.util.Vector getNonEmptyOrders()
public int getNumberOfOrders()
public OrderDataBean[] getOrderDataBeans()
public OrderDataBean[] getOrderDataBeans(int startIndex, int endIndex)
public void setPageSize(int aPageSize)
public OrderDataBean[] getOrderDataBeansByPageNumber(int page)
public OrderListDataBean[] getOrderListDataBeanSortByDisplayName()
public java.lang.String getOrderStatus()
public java.lang.String[] getOrderStatusList()
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public TypedProperty getRequestProperties()
public PriceDataBean getDiscountAdjustedOrdersTotalPrice()
public FormattedQuantityAmountDataBean getFormattedOrderItemQuantityTotal()
public void populate() throws java.lang.Exception
public void setCommandContext(CommandContext acommandContext)
public void setOrderStatus(java.lang.String aStatus)
public void setRetrievalOrderStatus(java.lang.String aStatus)
public void setOrderStatus(java.lang.String[] aStatusList)
public void setRequestProperties(TypedProperty aParam)
public void setStoreId(java.lang.Integer aStoreId)
public java.lang.Integer getStoreId()
public void setStoreId(java.lang.Integer[] aStoreIdList)
public java.lang.Long getUserId()
public int getPageSize()
public void setUserId(java.lang.Long aUserId)
public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getChannelStoreOrderStatus()
public void setChannelStoreOrderStatus(java.lang.String istrChannelStoreOrderStatus)
public java.lang.String[] getChannelStoreOrderStatusList()
public void setChannelStoreOrderStatus(java.lang.String[] astrChannelStoreOrderStatusList)
public java.lang.Integer getChannelStoreId()
public void setChannelStoreId(java.lang.Integer paraChannelStoreId)
public java.lang.String getRelType()
public void setRelType(java.lang.String paraIstrRelType)
public int getSortMethodId()
public void setSortMethodId(int paraInSortMethodId)
public void setAscendingSortOrder()
public void setDescendingSortOrder()
public void setResolveCurrentPendingOrders(boolean trueFalse)
public void setFetchCurrentPendingOrder(boolean trueFalse)
public void setStartEndDateAndScopeMethod(java.sql.Timestamp argStartDate, java.sql.Timestamp argEndDate, int argScopeMethod)
public void setMaxRows(int aMaxRows)
public boolean isFilterOrdersWithNoDescription()
public void setFilterOrdersWithNoDescription(boolean paraFilterOrdersWithNoDescription)
public boolean isEmptyShopCart()
public void setCurrentPage(int pageNumber)
public OrderDataBean[] getOrderDataBeansByPageNumber()
public OrderDataBean[] getOrderDataBeansForCurrentPage()
public OrderDataBean[] getOrderDataBeansForPage(int pageNumber)
public boolean isFilterExcludeOrdersBlocked()
public boolean isFilterExcludeOrdersWaitingApproval()
public boolean isFilterIncludeOrdersWaitingApproval()
public void setFilterExcludeOrdersBlocked(boolean b)
public void setFilterExcludeOrdersWaitingApproval(boolean b)
public void setFilterIncludeOrdersWaitingApproval(boolean b)
protected void initializePageSize()