Interface TravelLocationFacade
- All Known Implementing Classes:
DefaultTravelLocationFacade
public interface TravelLocationFacade
Facade which provides functionality related to
LocationData such as retrieving location by its code.-
Method Summary
Modifier and TypeMethodDescriptiongetLocation(String locationCode) Retrieves a location by its code.Returns the path from source location to the parent location.voidvalidateLocationAgainstCountry(String locationCode, String countryCode) Validate if location code exists
-
Method Details
-
getLocation
Retrieves a location by its code.- Parameters:
locationCode-- Returns:
- LocationData
-
validateLocationAgainstCountry
Validate if location code exists- Parameters:
locationCode- the location codecountryCode- the country code
-
getParentLocationPathForCode
Returns the path from source location to the parent location.- Parameters:
code- the location code- Returns:
- the found path
-