com.elasticpath.service.order.impl
Class OrderShipmentStatusFactoryImpl
java.lang.Object
com.elasticpath.service.impl.AbstractEpServiceImpl
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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderShipmentStatusFactoryImpl
public OrderShipmentStatusFactoryImpl()
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