Interface TravelCustomerFacade

All Superinterfaces:
de.hybris.platform.commercefacades.customer.CustomerFacade
All Known Subinterfaces:
ShoppingTravelCustomerFacade
All Known Implementing Classes:
DefaultShoppingTravelCustomerFacade, DefaultTravelCustomerFacade

public interface TravelCustomerFacade extends de.hybris.platform.commercefacades.customer.CustomerFacade
TravelCustomerFacade interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    createGuestCustomer(String email, String lastName)
    This method creates a GuestCustomer and returns the Uid.
    Gets address book.
    This method is used to get the list of searches saved by current customer.
    boolean
    Checks if current user is a B2b customer.
    void
    removeOldSavedSearches(Collection<SavedSearchModel> savedSearches, CustomerModel customerModel, int number)
    This method removes n-number of old searches, based on creation time, saved by current customer.
    boolean
    removeSavedSearch(String savedSearchID)
    This method removes search saved by current customer based on search reference ID.
    void
    removeSavedSearch(String savedSearchID, String userId)
    This method removes search saved by current customer based on search reference ID.
    boolean
    This method saves search made by Customer.
    void
    Checks if current user's uid is same as userid and if current user is not an anonymous user

    Methods inherited from interface de.hybris.platform.commercefacades.customer.CustomerFacade

    changeGuestToCustomer, changePassword, changeUid, closeAccount, createGuestUserForAnonymousCheckout, forgottenPassword, generateGUID, getCurrentCustomer, getCurrentCustomerUid, getUserForUID, loginSuccess, nextDummyCustomerData, publishLoginSuccessEvent, register, rememberMeLoginSuccessWithUrlEncoding, setPassword, updateCartWithGuestForAnonymousCheckout, updateFullProfile, updatePassword, updateProfile
  • Method Details

    • createGuestCustomer

      String createGuestCustomer(String email, String lastName) throws de.hybris.platform.commerceservices.customer.DuplicateUidException
      This method creates a GuestCustomer and returns the Uid.
      Parameters:
      email - String representing the email id of the customer.
      lastName - String representing the lastName of the guest customer.
      Returns:
      a String
      Throws:
      de.hybris.platform.commerceservices.customer.DuplicateUidException - the duplicate uid exception
    • saveCustomerSearch

      boolean saveCustomerSearch(SavedSearchData savedSearchData)
      This method saves search made by Customer.
      Parameters:
      savedSearchData - SavedSearchData holding information about the Fare-Search made by customer.
      Returns:
      a boolean true(SUCCESS)/ false(FAILURE).
    • getCustomerSearches

      List<SavedSearchData> getCustomerSearches()
      This method is used to get the list of searches saved by current customer.
      Returns:
      a List of SavedSearchData.
    • removeSavedSearch

      boolean removeSavedSearch(String savedSearchID)
      This method removes search saved by current customer based on search reference ID.
      Parameters:
      savedSearchID - the saved search id
      Returns:
      a boolean true(SUCCESS)/ false(FAILURE).
    • removeOldSavedSearches

      void removeOldSavedSearches(Collection<SavedSearchModel> savedSearches, CustomerModel customerModel, int number)
      This method removes n-number of old searches, based on creation time, saved by current customer.
      Parameters:
      savedSearches - Collection of SavedSearchModel- representation of all the searches saved against Customer.
      customerModel - Object of CustomerModel representing current customer.
      number - Number of saved searches to be removed.
    • isCurrentUserB2bCustomer

      boolean isCurrentUserB2bCustomer()
      Checks if current user is a B2b customer.
      Returns:
      true, if current user is B2b customer
    • removeSavedSearch

      void removeSavedSearch(String savedSearchID, String userId)
      This method removes search saved by current customer based on search reference ID.
      Parameters:
      savedSearchID - the saved search id
      userId - the user id
    • validateUser

      void validateUser(String userId)
      Checks if current user's uid is same as userid and if current user is not an anonymous user
      Parameters:
      userId - the user id
    • getAddressBook

      List<AddressData> getAddressBook()
      Gets address book.
      Returns:
      the address book