public class DefaultPointOfServiceService extends java.lang.Object implements PointOfServiceService
| Constructor and Description |
|---|
DefaultPointOfServiceService() |
| Modifier and Type | Method and Description |
|---|---|
protected StoreCountInfo |
buildStoreCountInfo(StoreCountType type,
java.lang.Integer count,
java.lang.String isoCode,
java.lang.String name)
Builds a
StoreCountInfo object |
java.util.List<StoreCountInfo> |
getPointOfServiceCounts(BaseStoreModel baseStore)
Returns a list of
StoreCountInfo for all countries that have stores PointOfServiceModel
and a list of StoreCountInfo for each region (if any) within a country case that region have stores PointOfServiceModel |
protected PointOfServiceDao |
getPointOfServiceDao() |
PointOfServiceModel |
getPointOfServiceForName(java.lang.String name)
Returns point of service by its name.
|
protected java.util.List<StoreCountInfo> |
populateRegionStoreCountInfo(CountryModel country,
BaseStoreModel currentBaseStore)
Populates a list of
StoreCountInfo with the region information given a country
Return an empty list if the country have no regions |
void |
setPointOfServiceDao(PointOfServiceDao pointOfServiceDao) |
public PointOfServiceModel getPointOfServiceForName(java.lang.String name) throws UnknownIdentifierException
PointOfServiceServicegetPointOfServiceForName in interface PointOfServiceServicename - the name of POSUnknownIdentifierException - the unknown identifier exception when no POS with given name was foundpublic java.util.List<StoreCountInfo> getPointOfServiceCounts(BaseStoreModel baseStore)
PointOfServiceServiceStoreCountInfo for all countries that have stores PointOfServiceModel
and a list of StoreCountInfo for each region (if any) within a country case that region have stores PointOfServiceModelgetPointOfServiceCounts in interface PointOfServiceServicebaseStore - BaseStoreModelprotected java.util.List<StoreCountInfo> populateRegionStoreCountInfo(CountryModel country, BaseStoreModel currentBaseStore)
StoreCountInfo with the region information given a country
Return an empty list if the country have no regionscountry - given CountryModelStoreCountInfo for a given countryprotected StoreCountInfo buildStoreCountInfo(StoreCountType type, java.lang.Integer count, java.lang.String isoCode, java.lang.String name)
StoreCountInfo objecttype - Either a StoreCountType.COUNTRY or StoreCountType.REGIONcount - the store countisoCode - the region or the country's given isoCodename - the region or the country's given nameStoreCountInfo built with the given informationprotected PointOfServiceDao getPointOfServiceDao()
public void setPointOfServiceDao(PointOfServiceDao pointOfServiceDao)
Copyright © 2018 SAP SE. All Rights Reserved.