Class DefaultTravellerFacade
java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultTravellerFacade
- All Implemented Interfaces:
TravellerFacade
- Direct Known Subclasses:
DefaultShoppingTravellerFacade
Facade that provides Traveller specific services. The facade uses the TravellerService to get TravellerModel and uses
converter/populators to transfer TravellerData type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TravellerModelMethod responsible for creating an initial traveller instance with default settingscreateTraveller(String travellerType, String passengerType, String travellerCode, int passengerNumber, String travellerUidPrefix) Creates a new instance of TravellerData with relevant details populatedcreateTraveller(String travellerType, String passengerType, String travellerCode, int passengerNumber, String travellerUidPrefix, String cartOrOrderCode) Creates a new instance of TravellerData with relevant details populatedprotected TravellerModelcreateTravellerModel(TravellerData travellerData) Method responsible for creating and returning a new instance of TravellerModelfindSavedTravellersUsingFirstName(String text, String passengerType) Retrieves a list of travelers using first name text against the current customerfindSavedTravellersUsingSurname(String text, String passengerType) Retrieves a list of travelers using last name text against the current customergetAdvancePassengerInformation(String orderId, String travellerId) Gets advance passenger information.protected de.hybris.platform.store.services.BaseStoreServiceGet base store serviceprotected BookingServiceprotected de.hybris.platform.order.CartServiceGets cart service.Method returns the CustomerTravellerInstance details from the current Userprotected de.hybris.platform.commerceservices.customer.CustomerAccountServiceGet customer account serviceThis method returns the traveller data for the currentLogged in customer.protected de.hybris.platform.enumeration.EnumerationServiceGets enumeration service.protected de.hybris.platform.servicelayer.model.ModelServiceGets model service.protected OrderModelGets order.protected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData,PassengerInformationModel> Gets passenger details reverse converter.Method gets the Passenger Information from the current userprotected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationModel,PassengerInformationData> Gets passenger information data converter.protected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData,PassengerInformationModel> Gets passenger information reverse converter.protected PassengerTypeFacadeGets passenger type facade.protected PassengerTypeServiceGets passenger type service.Facade which returns a list of ReasonForTravel typesprotected de.hybris.platform.servicelayer.dto.converter.Converter<SavedSearchModel,SavedSearchData> Gets saved search converter.getSavedSearchesForUser(String userId) Returns the list of saved searches that are saved in the user profile.Method returns a list of saved travellers that are assigned to the current logged in UsergetSavedTravellersForUser(String userId) Method returns a list of saved travellers that are saved against the given uservoidgetSaveTravellerPreferences(List<TravellerPreferenceData> selectedTravellerPreferences) Method take a list of traveller preferences and saves them against the current users accountMethod gets traveller from session cart for given uid.protected SpecialRequestDetailModelgetSpecialRequestDetail(SpecialRequestDetailData specialRequestDetail) Method returns a list of SpecialServiceRequestModel for the given requests list of SpecialServiceRequestData in specialRequestDetailprotected SpecialServiceRequestServiceGets special service request service.de.hybris.platform.converters.Populator<PassengerInformationData,PassengerInformationModel> Gets travel advance passenger information reverse populator.getTraveller(String travellerId) Method returns the TravellerInstance details for the traveller idgetTraveller(String travellerId, String bookingInfo) Method returns the TravellerInstance details for the traveller id and bookingInfoprotected TravellerCheckedInValidationStrategyGets traveller already checked in validation strategy.protected TravellerModelgetTravellerById(String travellerId) Gets traveller by id.protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> Gets traveller data converter.getTravellerFromCart(String travellerUid) Method gets traveller from session cart for the given uid.getTravellerFromCurrentCart(String travellerCode) Method returns the TravellerInstance identified by the travellerCode from the current Cart SessiongetTravellerFromOrder(String orderId, String travellerUid) Method gets traveller from order for the given uid.de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceModel,TravellerPreferenceData> Gets traveller preference converter.protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceData,TravellerPreferenceModel> Gets traveller preference reverse converter.Method get a list of traveller preference for the currently logged in userprotected TravellerServiceGets traveller service.Method returns a unique list of travellers from the Cart EntriesMethod gets travellers from session cart.getTravellersFromOrder(String orderId) Method gets travellers from order.Get Travel Order Code IdentificationStrategyprotected de.hybris.platform.servicelayer.user.UserServiceGets user service.booleanMethod checks to see if the current user is a logged in User or notpopulateTravellersNamesMap(List<TravellerData> travellerDatas) This method populates a Map of Traveller Code with their display names for a given Passenger Type codeMethod removes the traveller with the uid from the current users list of saved travellers.retrieveTravellers(ReservationData reservationData, int originDestinationRefNumber) This method will return the list of travellers for the given originDestinationRefNumber in the given ReservationData.voidsaveAdvancePassengerInformation(String orderId, String travellerId, PassengerInformationData passengerInformationData) Method is used to save advance passenger details for traveller.protected TravellerDatasaveAndGetNewTravellerDetail(TravellerData travellerData) Method responsible for creating a new traveller instance and saving it against the current users account and return the sameprotected TravellerDatasaveAndGetTravellerAgainstCurrentUser(TravellerData travellerData) Method takes the travellerData and checks if these are details for an existing traveller.protected voidsaveNewTravellerDetail(TravellerData travellerData) Deprecated.Deprecated since version 2.0.protected voidsavePreferencesToCustomer(List<TravellerPreferenceModel> travellerPreferenceModels) Method which saves selected preferences to traveller instance of current customerprotected voidsaveTravellerAgainstCurrentUser(TravellerData travellerData) Deprecated.Deprecated since version 2.0.voidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Set base store servicevoidsetBookingService(BookingService bookingService) voidsetCartService(de.hybris.platform.order.CartService cartService) Sets cart service.voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Set the customer account servicevoidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetPassengerDetailsReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerDetailsReverseConverter) Sets passenger details reverse converter.voidsetPassengerInformationDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationModel, PassengerInformationData> passengerInformationDataConverter) Sets passenger information data converter.voidsetPassengerInformationReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Sets passenger information reverse converter.voidsetPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade) Sets passenger type facade.voidsetPassengerTypeService(PassengerTypeService passengerTypeService) Sets passenger type service.voidsetSavedSearchConverter(de.hybris.platform.servicelayer.dto.converter.Converter<SavedSearchModel, SavedSearchData> savedSearchConverter) Sets saved search converter.voidsetSpecialServiceRequestService(SpecialServiceRequestService specialServiceRequestService) Sets special service request service.voidsetTravelAdvancePassengerInformationReversePopulator(de.hybris.platform.converters.Populator<PassengerInformationData, PassengerInformationModel> travelAdvancePassengerInformationReversePopulator) Sets travel advance passenger information reverse populator.voidsetTravellerAlreadyCheckedInValidationStrategy(TravellerCheckedInValidationStrategy travellerAlreadyCheckedInValidationStrategy) Sets traveller already checked in validation strategy.voidsetTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel, TravellerData> travellerDataConverter) Sets traveller data converter.voidsetTravellerPreferenceConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceModel, TravellerPreferenceData> travellerPreferenceConverter) Sets traveller preference converter.voidsetTravellerPreferenceReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceData, TravellerPreferenceModel> travellerPreferenceReverseConverter) Sets traveller preference reverse converter.voidsetTravellerService(TravellerService travellerService) Sets traveller service.voidsetTravelOrderCodeIdentificationStrategy(TravelOrderCodeIdentificationStrategy travelOrderCodeIdentificationStrategy) set Travel Order Code IdentificationStrategyvoidsetUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.protected TravellerDataupdateAndGetExistingTravellerDetails(TravellerData travellerData, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method responsible for updating an existing traveller details with the data provided by travellerData and return the sameupdateAndGetExistingTravellerDetails(List<TravellerData> travellers) Update and return traveller details.protected TravellerDataupdateAndGetSavedTravellerDetails(TravellerData travellerData, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method responsible for updating an existing saved traveller details with the data provided by travellerData and return the sameprotected TravellerDataupdateAndGetTravellerDetails(TravellerData travellerData, TravellerModel travellerModel, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method responsible for updating an existing travellers details with the data provided by travellerData and return the sameprotected voidupdateCurrentUserCustomerPassengerInstance(TravellerData travellerData) Deprecated.Deprecated since version 2.0.protected voidupdateCurrentUserCustomerPassengerInstance(TravellerData travellerData, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method checks to see if the current User has a Customer Passenger Instance.voidupdateCurrentUserSpecialRequestDetails(List<String> specialServiceRequestCodes) Method retrieves a list of SpecialServiceRequestModels from the database based on the list of specialServiceRequestCode and then sets the list of SpecialServiceRequestModels against the Current Users accountvoidupdateCustomerSavedTravellers(List<TravellerData> travellers) Update customer saved travellers.protected voidupdateExistingTravellerDetails(TravellerData travellerData, boolean isSavedTraveller) Deprecated.Deprecated since version 2.0.voidupdatePassengerInformation(TravellerData travellerData) Method saves the Passenger Information against the current uservoidupdateTravellerDetails(List<TravellerData> travellers) Deprecated.Deprecated since version 6.0.voidvalidateBeforeCheckIn(String orderId, String travellerId, String boundIdentifier) Validate before check in.protected voidvalidateOrderUserAndTraveller(OrderModel orderModel, TravellerModel travellerModel) Method is used to validate order by its active status, current user and travellers association with order.
-
Constructor Details
-
DefaultTravellerFacade
public DefaultTravellerFacade()
-
-
Method Details
-
createTraveller
public TravellerData createTraveller(String travellerType, String passengerType, String travellerCode, int passengerNumber, String travellerUidPrefix) Description copied from interface:TravellerFacadeCreates a new instance of TravellerData with relevant details populated- Specified by:
createTravellerin interfaceTravellerFacade- Parameters:
travellerType- the traveller typepassengerType- the passenger typetravellerCode- the traveller codepassengerNumber- the passenger numbertravellerUidPrefix- the traveller uid prefix- Returns:
- newly created instance of Traveller
-
createTraveller
public TravellerData createTraveller(String travellerType, String passengerType, String travellerCode, int passengerNumber, String travellerUidPrefix, String cartOrOrderCode) Description copied from interface:TravellerFacadeCreates a new instance of TravellerData with relevant details populated- Specified by:
createTravellerin interfaceTravellerFacade- Parameters:
travellerType- the traveller typepassengerType- the passenger typetravellerCode- the traveller codepassengerNumber- the passenger numbertravellerUidPrefix- the traveller uid prefixcartOrOrderCode- the cartOrOrderCode- Returns:
- newly created instance of Traveller
-
getReasonForTravelTypes
Description copied from interface:TravellerFacadeFacade which returns a list of ReasonForTravel types- Specified by:
getReasonForTravelTypesin interfaceTravellerFacade- Returns:
- List
reason for travel types
-
getTravellersForCartEntries
Description copied from interface:TravellerFacadeMethod returns a unique list of travellers from the Cart Entries- Specified by:
getTravellersForCartEntriesin interfaceTravellerFacade- Returns:
- List
travellers for cart entries
-
getSavedTravellersForCurrentUser
Description copied from interface:TravellerFacadeMethod returns a list of saved travellers that are assigned to the current logged in User- Specified by:
getSavedTravellersForCurrentUserin interfaceTravellerFacade- Returns:
- List
saved travellers for current user
-
updateTravellerDetails
Deprecated.Deprecated since version 6.0. UseupdateAndGetExistingTravellerDetails(List)instead.Description copied from interface:TravellerFacadeUpdate traveller details.- Specified by:
updateTravellerDetailsin interfaceTravellerFacade- Parameters:
travellers- the travellers
-
updateAndGetExistingTravellerDetails
Description copied from interface:TravellerFacadeUpdate and return traveller details.- Specified by:
updateAndGetExistingTravellerDetailsin interfaceTravellerFacade- Parameters:
travellers- the travellers- Returns:
- the list of traveller data
-
updateCustomerSavedTravellers
Description copied from interface:TravellerFacadeUpdate customer saved travellers.- Specified by:
updateCustomerSavedTravellersin interfaceTravellerFacade- Parameters:
travellers- the travellers
-
updateCurrentUserCustomerPassengerInstance
Deprecated.Deprecated since version 2.0. UseupdateCurrentUserCustomerPassengerInstance(TravellerData, Converter)instead.Method checks to see if the current User has a Customer Passenger Instance. If one exists then it will be updated with the information from passengerInformationData otherwise a new Customer Passenger Instance will be created and set against the current Users.- Parameters:
travellerData- the traveller data
-
updateCurrentUserCustomerPassengerInstance
protected void updateCurrentUserCustomerPassengerInstance(TravellerData travellerData, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method checks to see if the current User has a Customer Passenger Instance. If one exists then it will be updated with the information from passengerInformationData otherwise a new Customer Passenger Instance will be created and set against the current Users.- Parameters:
travellerData- the traveller datapassengerInformationReverseConverter- the passenger information reverse converter
-
saveTravellerAgainstCurrentUser
Deprecated.Deprecated since version 2.0. UsesaveAndGetTravellerAgainstCurrentUser(TravellerData)instead.Method takes the travellerData and checks if these are details for an existing traveller. If so then an update will occur otherwise a new instance of traveller model will be created and populated with values from passengerInformationData users account. Travellers are then saved as savedTravellers against the current users account.- Parameters:
travellerData- the traveller data
-
saveAndGetTravellerAgainstCurrentUser
Method takes the travellerData and checks if these are details for an existing traveller. If so then an update will occur otherwise a new instance of traveller model will be created and populated with values from passengerInformationData users account. Travellers are then saved as savedTravellers against the current users account.- Parameters:
travellerData- the traveller data- Returns:
- travellerData traveller data
-
saveNewTravellerDetail
Deprecated.Deprecated since version 2.0. UsesaveAndGetNewTravellerDetail(TravellerData)instead.Method responsible for creating a new traveller instance and saving it against the current users account- Parameters:
travellerData- the traveller data
-
saveAndGetNewTravellerDetail
Method responsible for creating a new traveller instance and saving it against the current users account and return the same- Parameters:
travellerData- the traveller data- Returns:
- travellerData traveller data
-
createTravellerModel
Method responsible for creating and returning a new instance of TravellerModel- Parameters:
travellerData- the traveller data- Returns:
- traveller model
-
updateExistingTravellerDetails
@Deprecated protected void updateExistingTravellerDetails(TravellerData travellerData, boolean isSavedTraveller) Deprecated.Deprecated since version 2.0. UseupdateAndGetSavedTravellerDetails(TravellerData, Converter)orupdateAndGetExistingTravellerDetails(TravellerData, Converter)instead.Method responsible for updating an existing travellers details with the data provided by travellerData- Parameters:
travellerData- the traveller dataisSavedTraveller- the is saved traveller
-
updateAndGetSavedTravellerDetails
protected TravellerData updateAndGetSavedTravellerDetails(TravellerData travellerData, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method responsible for updating an existing saved traveller details with the data provided by travellerData and return the same- Parameters:
travellerData- the traveller datapassengerInformationReverseConverter- the passenger information reverse converter- Returns:
- travellerData traveller data
-
updateAndGetExistingTravellerDetails
protected TravellerData updateAndGetExistingTravellerDetails(TravellerData travellerData, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method responsible for updating an existing traveller details with the data provided by travellerData and return the same- Parameters:
travellerData- the traveller datapassengerInformationReverseConverter- the passenger information reverse converter- Returns:
- travellerData traveller data
-
updateAndGetTravellerDetails
protected TravellerData updateAndGetTravellerDetails(TravellerData travellerData, TravellerModel travellerModel, de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Method responsible for updating an existing travellers details with the data provided by travellerData and return the same- Parameters:
travellerData- the traveller datatravellerModel- the traveller modelpassengerInformationReverseConverter- the passenger information reverse converter- Returns:
- travellerData traveller data
-
getSpecialRequestDetail
protected SpecialRequestDetailModel getSpecialRequestDetail(SpecialRequestDetailData specialRequestDetail) Method returns a list of SpecialServiceRequestModel for the given requests list of SpecialServiceRequestData in specialRequestDetail- Parameters:
specialRequestDetail- the special request detail- Returns:
- special request detail
-
getCurrentUserDetails
Description copied from interface:TravellerFacadeMethod returns the CustomerTravellerInstance details from the current User- Specified by:
getCurrentUserDetailsin interfaceTravellerFacade- Returns:
- TravellerData current user details
-
isAnonymousUser
public boolean isAnonymousUser()Description copied from interface:TravellerFacadeMethod checks to see if the current user is a logged in User or not- Specified by:
isAnonymousUserin interfaceTravellerFacade- Returns:
- boolean boolean
-
getTraveller
Description copied from interface:TravellerFacadeMethod returns the TravellerInstance details for the traveller id- Specified by:
getTravellerin interfaceTravellerFacade- Parameters:
travellerId- the traveller id- Returns:
- TravellerData traveller
-
getTraveller
Description copied from interface:TravellerFacadeMethod returns the TravellerInstance details for the traveller id and bookingInfo- Specified by:
getTravellerin interfaceTravellerFacade- Parameters:
travellerId- the traveller idbookingInfo- the bookingInfo- Returns:
- TravellerData traveller
-
getTravellerFromCurrentCart
Description copied from interface:TravellerFacadeMethod returns the TravellerInstance identified by the travellerCode from the current Cart Session- Specified by:
getTravellerFromCurrentCartin interfaceTravellerFacade- Parameters:
travellerCode- the traveller code- Returns:
- TravellerData traveller from current cart
-
removeSavedTraveller
Description copied from interface:TravellerFacadeMethod removes the traveller with the uid from the current users list of saved travellers. If successful, the method will return the TravellerData for the traveller that has been removed otherwise it will return null if remove was unsuccessful.- Specified by:
removeSavedTravellerin interfaceTravellerFacade- Parameters:
uid- the uid- Returns:
- TravellerData traveller data
-
retrieveTravellers
public List<TravellerData> retrieveTravellers(ReservationData reservationData, int originDestinationRefNumber) Description copied from interface:TravellerFacadeThis method will return the list of travellers for the given originDestinationRefNumber in the given ReservationData. Empty list if there's no leg found with the given originDestinationRefNumber in the ReservationData- Specified by:
retrieveTravellersin interfaceTravellerFacade- Parameters:
reservationData- the ReservationData representing a bookingoriginDestinationRefNumber- the identifier of a leg- Returns:
- the List of travellers
-
updateCurrentUserSpecialRequestDetails
Description copied from interface:TravellerFacadeMethod retrieves a list of SpecialServiceRequestModels from the database based on the list of specialServiceRequestCode and then sets the list of SpecialServiceRequestModels against the Current Users account- Specified by:
updateCurrentUserSpecialRequestDetailsin interfaceTravellerFacade- Parameters:
specialServiceRequestCodes- the special service request code
-
getTravellerPreferences
Description copied from interface:TravellerFacadeMethod get a list of traveller preference for the currently logged in user- Specified by:
getTravellerPreferencesin interfaceTravellerFacade- Returns:
- List
traveller preferences
-
getSaveTravellerPreferences
Description copied from interface:TravellerFacadeMethod take a list of traveller preferences and saves them against the current users account- Specified by:
getSaveTravellerPreferencesin interfaceTravellerFacade- Parameters:
selectedTravellerPreferences- the selected traveller preferences
-
savePreferencesToCustomer
Method which saves selected preferences to traveller instance of current customer- Parameters:
travellerPreferenceModels- the traveller preference models
-
updatePassengerInformation
Description copied from interface:TravellerFacadeMethod saves the Passenger Information against the current user- Specified by:
updatePassengerInformationin interfaceTravellerFacade- Parameters:
travellerData- the traveller data
-
getPassengerInformation
Description copied from interface:TravellerFacadeMethod gets the Passenger Information from the current user- Specified by:
getPassengerInformationin interfaceTravellerFacade- Returns:
- current user's passenger information
-
getCustomerTravellerInstanceData
Description copied from interface:TravellerFacadeThis method returns the traveller data for the currentLogged in customer.- Specified by:
getCustomerTravellerInstanceDatain interfaceTravellerFacade- Returns:
- TravellerData instance of current customer
-
populateTravellersNamesMap
public Map<String,Map<String, populateTravellersNamesMapString>> (List<TravellerData> travellerDatas) Description copied from interface:TravellerFacadeThis method populates a Map of Traveller Code with their display names for a given Passenger Type code- Specified by:
populateTravellersNamesMapin interfaceTravellerFacade- Parameters:
travellerDatas- the traveller datas- Returns:
- Map
> object
-
findSavedTravellersUsingFirstName
Description copied from interface:TravellerFacadeRetrieves a list of travelers using first name text against the current customer- Specified by:
findSavedTravellersUsingFirstNamein interfaceTravellerFacade- Parameters:
text- the textpassengerType- the passenger type- Returns:
- list
-
findSavedTravellersUsingSurname
Description copied from interface:TravellerFacadeRetrieves a list of travelers using last name text against the current customer- Specified by:
findSavedTravellersUsingSurnamein interfaceTravellerFacade- Parameters:
text- the textpassengerType- the passenger type- Returns:
- list
-
getSavedTravellersForUser
Description copied from interface:TravellerFacadeMethod returns a list of saved travellers that are saved against the given user- Specified by:
getSavedTravellersForUserin interfaceTravellerFacade- Parameters:
userId- - the user Id for which saved traveller need to be retrieved- Returns:
- List
saved travellers for the given user
-
createInitialTraveller
Method responsible for creating an initial traveller instance with default settings- Returns:
- traveller model
-
getSavedSearchesForUser
Returns the list of saved searches that are saved in the user profile.- Specified by:
getSavedSearchesForUserin interfaceTravellerFacade- Parameters:
userId- the userId- Returns:
- the list of saved searches
-
saveAdvancePassengerInformation
public void saveAdvancePassengerInformation(String orderId, String travellerId, PassengerInformationData passengerInformationData) Method is used to save advance passenger details for traveller.- Specified by:
saveAdvancePassengerInformationin interfaceTravellerFacade- Parameters:
orderId- the orderIdtravellerId- the travellerIdpassengerInformationData- the passengerInformationData
-
validateBeforeCheckIn
public void validateBeforeCheckIn(String orderId, String travellerId, String boundIdentifier) throws OrderNotFoundException, de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException, InvalidOrderStatusException, InvalidUserException, InvalidTravellerException, BoundIdNotFoundException, TravellerAlreadyCheckedInException, MissingPassengerInformationException, FieldValueNotFoundException Description copied from interface:TravellerFacadeValidate before check in.- Specified by:
validateBeforeCheckInin interfaceTravellerFacade- Parameters:
orderId- the order idtravellerId- the traveller idboundIdentifier- the bound identifier- Throws:
OrderNotFoundException- the order not found exceptionde.hybris.platform.servicelayer.exceptions.UnknownIdentifierException- the when traveller not foundInvalidOrderStatusException- the when order status is not activeInvalidUserException- the when current user is not associated with orderInvalidTravellerException- the when given traveller is not associated with orderBoundIdNotFoundException- the bound id not found exceptionTravellerAlreadyCheckedInException- the traveller already checked in exceptionMissingPassengerInformationException- the missing passenger information exceptionFieldValueNotFoundException
-
validateOrderUserAndTraveller
protected void validateOrderUserAndTraveller(OrderModel orderModel, TravellerModel travellerModel) throws InvalidOrderStatusException, InvalidUserException, InvalidTravellerException Method is used to validate order by its active status, current user and travellers association with order.- Parameters:
orderModel- the order modeltravellerModel- the traveller model- Throws:
InvalidOrderStatusExceptionInvalidUserExceptionInvalidTravellerException
-
getAdvancePassengerInformation
Description copied from interface:TravellerFacadeGets advance passenger information.- Specified by:
getAdvancePassengerInformationin interfaceTravellerFacade- Parameters:
orderId- the order idtravellerId- the traveller id- Returns:
- the advance passenger information
-
getSessionCartTravellerForUid
Description copied from interface:TravellerFacadeMethod gets traveller from session cart for given uid.- Specified by:
getSessionCartTravellerForUidin interfaceTravellerFacade- Parameters:
uid- the uid of the traveller- Returns:
- the traveller data
-
getOrder
Gets order.- Parameters:
orderCode- the order id- Returns:
- the order
- Throws:
TravelModelNotFoundException- the travel model not found exception
-
getTravellersFromCart
Description copied from interface:TravellerFacadeMethod gets travellers from session cart.- Specified by:
getTravellersFromCartin interfaceTravellerFacade- Returns:
- the traveller data
-
getTravellerFromCart
Description copied from interface:TravellerFacadeMethod gets traveller from session cart for the given uid.- Specified by:
getTravellerFromCartin interfaceTravellerFacade- Parameters:
travellerUid- the uid of the traveller- Returns:
- the traveller data
-
getTravellersFromOrder
Description copied from interface:TravellerFacadeMethod gets travellers from order.- Specified by:
getTravellersFromOrderin interfaceTravellerFacade- Parameters:
orderId- the order id- Returns:
- the traveller data
-
getTravellerFromOrder
Description copied from interface:TravellerFacadeMethod gets traveller from order for the given uid.- Specified by:
getTravellerFromOrderin interfaceTravellerFacade- Parameters:
orderId- the order idtravellerUid- the uid of the traveller- Returns:
- the traveller data
-
getTravellerById
Gets traveller by id.- Parameters:
travellerId- the traveller id- Returns:
- the traveller
- Throws:
TravelModelNotFoundException- the travel model not found exception
-
getTravellerDataConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> getTravellerDataConverter()Gets traveller data converter.- Returns:
- the travellerDataConverter
-
setTravellerDataConverter
public void setTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel, TravellerData> travellerDataConverter) Sets traveller data converter.- Parameters:
travellerDataConverter- the travellerDataConverter to set
-
getTravellerService
Gets traveller service.- Returns:
- the travellerService
-
setTravellerService
Sets traveller service.- Parameters:
travellerService- the travellerService to set
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()Gets enumeration service.- Returns:
- the enumeration service
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.- Parameters:
enumerationService- the enumeration service
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService()Gets user service.- Returns:
- the user service
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.- Parameters:
userService- the user service
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()Gets model service.- Returns:
- the model service
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.- Parameters:
modelService- the model service
-
getPassengerTypeService
Gets passenger type service.- Returns:
- the passenger type service
-
setPassengerTypeService
Sets passenger type service.- Parameters:
passengerTypeService- the passenger type service
-
getSpecialServiceRequestService
Gets special service request service.- Returns:
- the special service request service
-
setSpecialServiceRequestService
public void setSpecialServiceRequestService(SpecialServiceRequestService specialServiceRequestService) Sets special service request service.- Parameters:
specialServiceRequestService- the special service request service
-
getPassengerInformationReverseConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData,PassengerInformationModel> getPassengerInformationReverseConverter()Gets passenger information reverse converter.- Returns:
- the passenger information reverse converter
-
setPassengerInformationReverseConverter
public void setPassengerInformationReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerInformationReverseConverter) Sets passenger information reverse converter.- Parameters:
passengerInformationReverseConverter- the passenger information reverse converter
-
getPassengerDetailsReverseConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData,PassengerInformationModel> getPassengerDetailsReverseConverter()Gets passenger details reverse converter.- Returns:
- the passengerDetailsReverseConverter
-
setPassengerDetailsReverseConverter
public void setPassengerDetailsReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationData, PassengerInformationModel> passengerDetailsReverseConverter) Sets passenger details reverse converter.- Parameters:
passengerDetailsReverseConverter- the passengerDetailsReverseConverter to set
-
getTravellerPreferenceConverter
public de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceModel,TravellerPreferenceData> getTravellerPreferenceConverter()Gets traveller preference converter.- Returns:
- the traveller preference converter
-
setTravellerPreferenceConverter
public void setTravellerPreferenceConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceModel, TravellerPreferenceData> travellerPreferenceConverter) Sets traveller preference converter.- Parameters:
travellerPreferenceConverter- the traveller preference converter
-
getTravellerPreferenceReverseConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceData,TravellerPreferenceModel> getTravellerPreferenceReverseConverter()Gets traveller preference reverse converter.- Returns:
- the traveller preference reverse converter
-
setTravellerPreferenceReverseConverter
public void setTravellerPreferenceReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerPreferenceData, TravellerPreferenceModel> travellerPreferenceReverseConverter) Sets traveller preference reverse converter.- Parameters:
travellerPreferenceReverseConverter- the traveller preference reverse converter
-
getPassengerInformationDataConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationModel,PassengerInformationData> getPassengerInformationDataConverter()Gets passenger information data converter.- Returns:
- the passenger information data converter
-
setPassengerInformationDataConverter
public void setPassengerInformationDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerInformationModel, PassengerInformationData> passengerInformationDataConverter) Sets passenger information data converter.- Parameters:
passengerInformationDataConverter- the passenger information data converter
-
getCartService
protected de.hybris.platform.order.CartService getCartService()Gets cart service.- Returns:
- the cart service
-
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) Sets cart service.- Parameters:
cartService- the cart service
-
getPassengerTypeFacade
Gets passenger type facade.- Returns:
- the passenger type facade
-
setPassengerTypeFacade
Sets passenger type facade.- Parameters:
passengerTypeFacade- the passenger type facade
-
getSavedSearchConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<SavedSearchModel,SavedSearchData> getSavedSearchConverter()Gets saved search converter.- Returns:
- the saved search converter
-
setSavedSearchConverter
public void setSavedSearchConverter(de.hybris.platform.servicelayer.dto.converter.Converter<SavedSearchModel, SavedSearchData> savedSearchConverter) Sets saved search converter.- Parameters:
savedSearchConverter- the saved search converter
-
getBookingService
- Returns:
- the bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-
getTravellerAlreadyCheckedInValidationStrategy
Gets traveller already checked in validation strategy.- Returns:
- the traveller already checked in validation strategy
-
setTravellerAlreadyCheckedInValidationStrategy
public void setTravellerAlreadyCheckedInValidationStrategy(TravellerCheckedInValidationStrategy travellerAlreadyCheckedInValidationStrategy) Sets traveller already checked in validation strategy.- Parameters:
travellerAlreadyCheckedInValidationStrategy- the traveller already checked in validation strategy
-
getTravelAdvancePassengerInformationReversePopulator
public de.hybris.platform.converters.Populator<PassengerInformationData,PassengerInformationModel> getTravelAdvancePassengerInformationReversePopulator()Gets travel advance passenger information reverse populator.- Returns:
- the travel advance passenger information reverse populator
-
setTravelAdvancePassengerInformationReversePopulator
public void setTravelAdvancePassengerInformationReversePopulator(de.hybris.platform.converters.Populator<PassengerInformationData, PassengerInformationModel> travelAdvancePassengerInformationReversePopulator) Sets travel advance passenger information reverse populator.- Parameters:
travelAdvancePassengerInformationReversePopulator- the travel advance passenger information reverse populator
-
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()Get customer account service- Returns:
- customerAccountService
-
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Set the customer account service- Parameters:
customerAccountService-
-
getBaseStoreService
protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()Get base store service- Returns:
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Set base store service- Parameters:
baseStoreService-
-
getTravelOrderCodeIdentificationStrategy
Get Travel Order Code IdentificationStrategy- Returns:
-
setTravelOrderCodeIdentificationStrategy
public void setTravelOrderCodeIdentificationStrategy(TravelOrderCodeIdentificationStrategy travelOrderCodeIdentificationStrategy) set Travel Order Code IdentificationStrategy- Parameters:
travelOrderCodeIdentificationStrategy-
-