|
|||||||||
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.ShippingRegionServiceImpl
public class ShippingRegionServiceImpl
Provide shipping region-related business service.
Constructor Summary | |
---|---|
ShippingRegionServiceImpl()
|
Method Summary | |
---|---|
ShippingRegion |
add(ShippingRegion shippingRegion)
Adds the given shippingRegion. |
ShippingRegion |
findByName(java.lang.String name)
Find the shipping region with the given name. |
ShippingRegion |
get(long shippingRegionUid)
Get the shippingRegion with the given UID. |
java.util.List |
getAllRegions()
Return the List of all possible Region (country/sub country combintaion) based on the country and subcountry property
configuraion. |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
PropertyService |
getPropertyService()
Return the propertyService singleton. |
java.util.List |
list()
List all shippingRegions stored in the database. |
ShippingRegion |
load(long shippingRegionUid)
Load the shippingRegion with the given UID. |
boolean |
nameExists(ShippingRegion shippingRegion)
Check if a different shipping region with the given shipping region's name exists exists or not. |
boolean |
nameExists(java.lang.String name)
Check the given shipping region's name exists or not. |
void |
remove(ShippingRegion shippingRegion)
Delete the shippingRegion. |
void |
setPropertyService(PropertyService propertyService)
Set the propertyService singleton. |
void |
update(ShippingRegion shippingRegion)
Updates the given shippingRegion. |
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 ShippingRegionServiceImpl()
Method Detail |
---|
public ShippingRegion add(ShippingRegion shippingRegion) throws ShippingRegionExistException
add
in interface ShippingRegionService
shippingRegion
- the shippingRegion to add
ShippingRegionExistException
- - If a shipping region with the same name already exists.public ShippingRegion findByName(java.lang.String name) throws EpServiceException
findByName
in interface ShippingRegionService
name
- - the shipping region name
EpServiceException
- - in case of any errorspublic ShippingRegion get(long shippingRegionUid) throws EpServiceException
get
in interface ShippingRegionService
shippingRegionUid
- the shippingRegion UID
EpServiceException
- - in case of any errorspublic java.util.List getAllRegions()
Region
(country/sub country combintaion) based on the country and subcountry property
configuraion.
getAllRegions
in interface ShippingRegionService
Region
.public java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic PropertyService getPropertyService()
getPropertyService
in interface ShippingRegionService
public java.util.List list() throws EpServiceException
list
in interface ShippingRegionService
EpServiceException
- - in case of any errorspublic ShippingRegion load(long shippingRegionUid) throws EpServiceException
load
in interface ShippingRegionService
shippingRegionUid
- the shippingRegion UID
EpServiceException
- - in case of any errorspublic boolean nameExists(ShippingRegion shippingRegion) throws EpServiceException
nameExists
in interface ShippingRegionService
shippingRegion
- - the shippingRegion to check
EpServiceException
- - in case of any errorspublic boolean nameExists(java.lang.String name) throws EpServiceException
nameExists
in interface ShippingRegionService
name
- - the shipping region's name to check
EpServiceException
- - in case of any errorspublic void remove(ShippingRegion shippingRegion) throws EpServiceException
remove
in interface ShippingRegionService
shippingRegion
- the shippingRegion to remove
EpServiceException
- - in case of any errorspublic void setPropertyService(PropertyService propertyService)
setPropertyService
in interface ShippingRegionService
propertyService
- - the propertyService singleton.public void update(ShippingRegion shippingRegion) throws ShippingRegionExistException
update
in interface ShippingRegionService
shippingRegion
- the shippingRegion to update
ShippingRegionExistException
- - If a shipping region with the same name already exists.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |