com.elasticpath.service.order.impl
Class OrderPaymentStatusFactoryImpl

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

public class OrderPaymentStatusFactoryImpl
extends AbstractEpServiceImpl
implements OrderPaymentStatusFactory

Represet a default implementation of OrderPaymentStatusFactory.


Field Summary
 
Fields inherited from interface com.elasticpath.service.order.OrderPaymentStatusFactory
APPROVED, FAILED, PENDING
 
Constructor Summary
OrderPaymentStatusFactoryImpl()
           
 
Method Summary
 java.lang.Object getObject(int code)
          Get a persistent instance with the given id.
 OrderPaymentStatus getOrderPaymentStatus(int statusCode)
          Return the OrderPaymentStatus instance based on the given status code.
 java.util.Map getOrderPaymentStatusMap()
          Returns a map of orderPayment 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

OrderPaymentStatusFactoryImpl

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

getOrderPaymentStatus

public OrderPaymentStatus getOrderPaymentStatus(int statusCode)
Return the OrderPaymentStatus instance based on the given status code.

Specified by:
getOrderPaymentStatus in interface OrderPaymentStatusFactory
Parameters:
statusCode - the status code.
Returns:
the OrderPaymentStatus instance based on the given status code.

getOrderPaymentStatusMap

public java.util.Map getOrderPaymentStatusMap()
Returns a map of orderPayment status. If a new orderShipmentStatus is added, make sure the add it to the map returned.

Specified by:
getOrderPaymentStatusMap in interface OrderPaymentStatusFactory
Returns:
a map of orderPayment status