com.elasticpath.service.order.impl
Class OrderStatusFactoryImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.order.impl.OrderStatusFactoryImpl
All Implemented Interfaces:
EpEnumFactoryService, EpService, OrderStatusFactory

public class OrderStatusFactoryImpl
extends AbstractEpServiceImpl
implements OrderStatusFactory

Represet a default implementation of OrderStatusFactory.


Field Summary
 
Fields inherited from interface com.elasticpath.service.order.OrderStatusFactory
APPROVED, CANCELLED, COMPLETED, ONHOLD, PLACED, REJECTED
 
Constructor Summary
OrderStatusFactoryImpl()
           
 
Method Summary
 java.lang.Object getObject(int code)
          Get a persistent instance with the given id.
 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 class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

OrderStatusFactoryImpl

public OrderStatusFactoryImpl()
Method Detail

getObject

public java.lang.Object getObject(int code)
                           throws EpServiceException
Get a persistent instance with the given id.

Specified by:
getObject in interface EpEnumFactoryService
Parameters:
code - the enum instance code
Returns:
the enum instance if exists, otherwise null
Throws:
EpServiceException - - in case of any errors

getOrderStatus

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

Specified by:
getOrderStatus in interface OrderStatusFactory
Parameters:
statusCode - the status code.
Returns:
the OrderStatus instance based on the given status code.

getOrderStatusMap

public java.util.Map getOrderStatusMap()
Returns a map of order status.

Specified by:
getOrderStatusMap in interface OrderStatusFactory
Returns:
a map of order status