Class DefaultTravelLocationFacade
java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultTravelLocationFacade
- All Implemented Interfaces:
TravelLocationFacade
Default implementation of
TravelLocationFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocation(String locationCode) Retrieves a location by its code.protected de.hybris.platform.servicelayer.dto.converter.Converter<LocationModel,LocationData> Gets location converter.Returns the path from source location to the parent location.protected TravelLocationServiceGets travel location service.voidsetLocationConverter(de.hybris.platform.servicelayer.dto.converter.Converter<LocationModel, LocationData> locationConverter) Sets location converter.voidsetTravelLocationService(TravelLocationService travelLocationService) Sets travel location service.voidvalidateLocationAgainstCountry(String locationCode, String countryCode) Validate if location code exists
-
Constructor Details
-
DefaultTravelLocationFacade
public DefaultTravelLocationFacade()
-
-
Method Details
-
getLocation
Description copied from interface:TravelLocationFacadeRetrieves a location by its code.- Specified by:
getLocationin interfaceTravelLocationFacade- Returns:
- LocationData
-
validateLocationAgainstCountry
Description copied from interface:TravelLocationFacadeValidate if location code exists- Specified by:
validateLocationAgainstCountryin interfaceTravelLocationFacade- Parameters:
locationCode- the location codecountryCode- the country code
-
getParentLocationPathForCode
Description copied from interface:TravelLocationFacadeReturns the path from source location to the parent location.- Specified by:
getParentLocationPathForCodein interfaceTravelLocationFacade- Parameters:
code- the location code- Returns:
- the found path
-
getTravelLocationService
Gets travel location service.- Returns:
- the travel location service
-
setTravelLocationService
Sets travel location service.- Parameters:
travelLocationService- the travel location service
-
getLocationConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<LocationModel,LocationData> getLocationConverter()Gets location converter.- Returns:
- the location converter
-
setLocationConverter
public void setLocationConverter(de.hybris.platform.servicelayer.dto.converter.Converter<LocationModel, LocationData> locationConverter) Sets location converter.- Parameters:
locationConverter- the location converter
-