com.elasticpath.service.order
Interface OrderStatusFactory

All Superinterfaces:
EpEnumFactoryService, EpService
All Known Implementing Classes:
OrderStatusFactoryImpl

public interface OrderStatusFactory
extends EpEnumFactoryService

The factory for enum type OrderStatus object handling.


Field Summary
static OrderStatus APPROVED
          The OrderStatus instance for order approved.
static OrderStatus CANCELLED
          The OrderStatus instance for order cancelled.
static OrderStatus COMPLETED
          The OrderStatus instance for order completed.
static OrderStatus ONHOLD
          The OrderStatus instance for order on hold.
static OrderStatus PLACED
          The OrderStatus instance for order placed.
static OrderStatus REJECTED
          The OrderStatus instance for order rejected.
 
Method Summary
 OrderStatus getOrderStatus(int statusCode)
          Return the OrderStatus instance based on the given status code.
 java.util.Map getOrderStatusMap()
          Returns a map of order status.
 
Methods inherited from interface com.elasticpath.service.EpEnumFactoryService
getObject
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Field Detail

APPROVED

static final OrderStatus APPROVED
The OrderStatus instance for order approved.


CANCELLED

static final OrderStatus CANCELLED
The OrderStatus instance for order cancelled.


COMPLETED

static final OrderStatus COMPLETED
The OrderStatus instance for order completed.


ONHOLD

static final OrderStatus ONHOLD
The OrderStatus instance for order on hold.


PLACED

static final OrderStatus PLACED
The OrderStatus instance for order placed.


REJECTED

static final OrderStatus REJECTED
The OrderStatus instance for order rejected.

Method Detail

getOrderStatus

OrderStatus getOrderStatus(int statusCode)
Return the OrderStatus instance based on the given status code.

Parameters:
statusCode - the status code.
Returns:
the OrderStatus instance based on the given status code.

getOrderStatusMap

java.util.Map getOrderStatusMap()
Returns a map of order status. If a new orderStatus is added, make sure the add it to the map returned.

Returns:
a map of order status