|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl com.elasticpath.service.shipping.impl.ShippingServiceLevelServiceImpl
public class ShippingServiceLevelServiceImpl
Provide shipping service level-related business service.
Constructor Summary | |
---|---|
ShippingServiceLevelServiceImpl()
|
Method Summary | |
---|---|
ShippingServiceLevel |
add(ShippingServiceLevel shippingServiceLevel)
Adds the given shippingServiceLevel. |
ShippingServiceLevel |
get(long shippingServiceLevelUid)
Get the shippingServiceLevel with the given UID. |
java.util.List |
getAllShippingCostCalculationMethods()
Get all the available shipping cost calculation methods configured in the system. |
java.util.Map |
getCountrySubCountryMapWithShippingService()
Get the list of countryCode which has ShippingServiceLevel configure at country level or subCountry level. |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
java.util.List |
getShippingRegionInUseUidList()
Get the list of uids of ShippingRegion used by existing ShippingServiceLevel s. |
java.util.List |
getShippingServiceLevelInUseUidList()
Get the list of uids of ShippingServiceLevel used by existing shipping related promotion rules. |
java.util.List |
list()
List all shippingServiceLevels stored in the database. |
ShippingServiceLevel |
load(long shippingServiceLevelUid)
Load the shippingServiceLevel with the given UID. |
void |
remove(ShippingServiceLevel shippingServiceLevel)
Delete the shippingServiceLevel. |
java.util.List |
retrieveShippingServiceLevel(ShoppingCart shoppingCart)
Retrieve the list of valid ShippingServiceLevel based on the region info inside the given ShoppingCart . |
void |
setAllShippingCostCalculationMethods(java.util.List allShippingCostCalculationMethodsName)
Set all the available shipping cost calculation methods configured in the system. |
void |
setRuleParameterService(RuleParameterService ruleParameterService)
Set the RuleParameterService . |
void |
update(ShippingServiceLevel shippingServiceLevel)
Updates the given shippingServiceLevel. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
---|
getPersistenceEngine, setPersistenceEngine |
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.EpPersistenceService |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public ShippingServiceLevelServiceImpl()
Method Detail |
---|
public ShippingServiceLevel add(ShippingServiceLevel shippingServiceLevel) throws EpServiceException
add
in interface ShippingServiceLevelService
shippingServiceLevel
- the shippingServiceLevel to add
EpServiceException
- - in case of any errorspublic ShippingServiceLevel get(long shippingServiceLevelUid) throws EpServiceException
get
in interface ShippingServiceLevelService
shippingServiceLevelUid
- the shippingServiceLevel UID
EpServiceException
- - in case of any errorspublic java.util.List getAllShippingCostCalculationMethods()
getAllShippingCostCalculationMethods
in interface ShippingServiceLevelService
public java.util.Map getCountrySubCountryMapWithShippingService()
ShippingServiceLevel
configure at country level or subCountry level.
getCountrySubCountryMapWithShippingService
in interface ShippingServiceLevelService
public java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic java.util.List getShippingRegionInUseUidList()
ShippingRegion
used by existing ShippingServiceLevel
s.
getShippingRegionInUseUidList
in interface ShippingServiceLevelService
ShippingRegion
s in use.public java.util.List getShippingServiceLevelInUseUidList()
ShippingServiceLevel
used by existing shipping related promotion rules.
getShippingServiceLevelInUseUidList
in interface ShippingServiceLevelService
ShippingServiceLevel
s in use.public java.util.List list() throws EpServiceException
list
in interface ShippingServiceLevelService
EpServiceException
- - in case of any errorspublic ShippingServiceLevel load(long shippingServiceLevelUid) throws EpServiceException
load
in interface ShippingServiceLevelService
shippingServiceLevelUid
- the shippingServiceLevel UID
EpServiceException
- - in case of any errorspublic void remove(ShippingServiceLevel shippingServiceLevel) throws EpServiceException
remove
in interface ShippingServiceLevelService
shippingServiceLevel
- the shippingServiceLevel to remove
EpServiceException
- - in case of any errorspublic java.util.List retrieveShippingServiceLevel(ShoppingCart shoppingCart)
ShippingServiceLevel
based on the region info inside the given ShoppingCart
.
retrieveShippingServiceLevel
in interface ShippingServiceLevelService
shoppingCart
- -- the shoppingCart to be used to retrieve shippingServiceLevel info.
ShippingServiceLevel
for the given shoppingCart.public void setAllShippingCostCalculationMethods(java.util.List allShippingCostCalculationMethodsName)
setAllShippingCostCalculationMethods
in interface ShippingServiceLevelService
allShippingCostCalculationMethodsName
- - names of the available shipping cost calculation methods.public void setRuleParameterService(RuleParameterService ruleParameterService)
RuleParameterService
.
ruleParameterService
- the RuleParameterService
instance.public void update(ShippingServiceLevel shippingServiceLevel) throws EpServiceException
update
in interface ShippingServiceLevelService
shippingServiceLevel
- the shippingServiceLevel to update
EpServiceException
- - in case of any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |