com.elasticpath.service.order.impl
Class OrderShipmentStatusFactoryImpl

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

public class OrderShipmentStatusFactoryImpl
extends AbstractEpServiceImpl
implements OrderShipmentStatusFactory

Represet a default implementation of OrderShipmentStatusFactory.


Field Summary
 
Fields inherited from interface com.elasticpath.service.order.OrderShipmentStatusFactory
AWAITING, SHIPPED
 
Constructor Summary
OrderShipmentStatusFactoryImpl()
           
 
Method Summary
 java.lang.Object getObject(int code)
          Get a persistent instance with the given id.
 OrderShipmentStatus getOrderShipmentStatus(int statusCode)
          Return the OrderShipmentStatus instance based on the given status code.
 java.util.Map getOrderShipmentStatusMap()
          Returns a map of orderShipment 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

OrderShipmentStatusFactoryImpl

public OrderShipmentStatusFactoryImpl()
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

getOrderShipmentStatus

public OrderShipmentStatus getOrderShipmentStatus(int statusCode)
Return the OrderShipmentStatus instance based on the given status code.

Specified by:
getOrderShipmentStatus in interface OrderShipmentStatusFactory
Parameters:
statusCode - the status code.
Returns:
the OrderShipmentStatus instance based on the given status code.

getOrderShipmentStatusMap

public java.util.Map getOrderShipmentStatusMap()
Returns a map of orderShipment status.

Specified by:
getOrderShipmentStatusMap in interface OrderShipmentStatusFactory
Returns:
a map of orderShipment status