Class DefaultTravelLocationFacade

java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultTravelLocationFacade
All Implemented Interfaces:
TravelLocationFacade

public class DefaultTravelLocationFacade extends Object implements TravelLocationFacade
Default implementation of TravelLocationFacade
  • Constructor Details

    • DefaultTravelLocationFacade

      public DefaultTravelLocationFacade()
  • Method Details

    • getLocation

      public LocationData getLocation(String locationCode)
      Description copied from interface: TravelLocationFacade
      Retrieves a location by its code.
      Specified by:
      getLocation in interface TravelLocationFacade
      Returns:
      LocationData
    • validateLocationAgainstCountry

      public void validateLocationAgainstCountry(String locationCode, String countryCode)
      Description copied from interface: TravelLocationFacade
      Validate if location code exists
      Specified by:
      validateLocationAgainstCountry in interface TravelLocationFacade
      Parameters:
      locationCode - the location code
      countryCode - the country code
    • getParentLocationPathForCode

      public List<String> getParentLocationPathForCode(String code)
      Description copied from interface: TravelLocationFacade
      Returns the path from source location to the parent location.
      Specified by:
      getParentLocationPathForCode in interface TravelLocationFacade
      Parameters:
      code - the location code
      Returns:
      the found path
    • getTravelLocationService

      protected TravelLocationService getTravelLocationService()
      Gets travel location service.
      Returns:
      the travel location service
    • setTravelLocationService

      public void setTravelLocationService(TravelLocationService travelLocationService)
      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