|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShippingRegionService
Provide shipping service level-related business service.
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. |
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 interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
ShippingRegion add(ShippingRegion shippingRegion) throws ShippingRegionExistException
shippingRegion
- the shippingRegion to add
ShippingRegionExistException
- - If a shipping region with the same name already exists.ShippingRegion findByName(java.lang.String name) throws EpServiceException
name
- - the shipping region name
EpServiceException
- - in case of any errorsShippingRegion get(long shippingRegionUid) throws EpServiceException
shippingRegionUid
- the shippingRegion UID
EpServiceException
- - in case of any errorsjava.util.List getAllRegions()
Region
(country/sub country combintaion) based on the country and
subcountry property configuraion.
Region
.PropertyService getPropertyService()
java.util.List list() throws EpServiceException
EpServiceException
- - in case of any errorsShippingRegion load(long shippingRegionUid) throws EpServiceException
shippingRegionUid
- the shippingRegion UID
EpServiceException
- - in case of any errorsboolean nameExists(ShippingRegion shippingRegion) throws EpServiceException
shippingRegion
- - the shippingRegion to check
EpServiceException
- - in case of any errorsboolean nameExists(java.lang.String name) throws EpServiceException
name
- - the group name to check
EpServiceException
- - in case of any errorsvoid remove(ShippingRegion shippingRegion) throws EpServiceException
shippingRegion
- the shippingRegion to remove
EpServiceException
- - in case of any errorsvoid setPropertyService(PropertyService propertyService)
propertyService
- - the propertyService singleton.void update(ShippingRegion shippingRegion) throws ShippingRegionExistException
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 |