Class DefaultTravelCustomerAccountService

java.lang.Object
de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
de.hybris.platform.travelservices.customer.impl.DefaultTravelCustomerAccountService
All Implemented Interfaces:
de.hybris.platform.commerceservices.customer.CustomerAccountService, TravelCustomerAccountService

public class DefaultTravelCustomerAccountService extends de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService implements TravelCustomerAccountService
Default implementation of TravelCustomerAccountService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changeUid(String newUid, String currentPassword)
     
    createPaymentSubscription(CustomerModel customerModel, CardInfo cardInfo, BillingInfo billingInfo, String titleCode, String paymentProvider, boolean saveInAccount)
     
    findSavedSearch(String savedSearchID)
    Finds search saved by current customer based on search reference ID.
    getAllOrdersList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData)
    Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus
    getOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel)
    Gets booking based on booking reference and base store by calling respective Dao method
    Fetches all bookings for the customer where the customer is not an owner but traveling
    getOrderUserMapping(String orderCode, CustomerModel customerModel)
    Returns a particular Order-UserAccount Mapping for the customer

    Methods inherited from class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService

    addPaymentInfo, adjustPassword, changePassword, checkUidUniqueness, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, deleteAddressEntry, deleteCCPaymentInfo, fillValuesForCustomerInfo, forgottenPassword, generateCustomerId, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getBaseSiteService, getBaseStoreService, getCommerceCommonI18NService, getCommerceConsentService, getCommonI18NService, getConfigurationService, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getCurrency, getCustomerAccountDao, getCustomerEmailResolutionService, getCustomerNameStrategy, getDefaultAddress, getDelayTime, getEventService, getFlexibleSearchService, getGuestOrderForGUID, getI18nService, getMaskedCardNumber, getModelService, getMonthsForOrderExpiry, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getPasswordEncoderService, getPasswordEncoding, getPaymentService, getReturnRequestsByCustomerAndStore, getSecureTokenService, getSessionService, getTimeService, getTitles, getTokenValiditySeconds, getTypeService, getUserService, initializeEvent, internalSaveCustomer, populateAndGetSessionConsentsToRegisteredUser, register, registerCustomer, registerGuestForAnonymousCheckout, saveAddressEntry, setBaseSiteService, setBaseStoreService, setCommerceCommonI18NService, setCommerceConsentService, setCommonI18NService, setConfigurationService, setCustomerAccountDao, setCustomerEmailResolutionService, setCustomerNameStrategy, setDefaultAddressEntry, setDefaultPaymentInfo, setEventService, setFlexibleSearchService, setI18nService, setModelService, setMonthsForOrderExpiry, setPasswordEncoderService, setPasswordEncoding, setPaymentService, setPopulatingConsentsInSessionEnabled, setSecureTokenService, setSessionService, setTimeService, setTokenValiditySeconds, setTypeService, setUserService, unlinkCCPaymentInfo, updatePassword, updateProfile

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.commerceservices.customer.CustomerAccountService

    changePassword, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, deleteAddressEntry, deleteCCPaymentInfo, forgottenPassword, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getDefaultAddress, getGuestOrderForGUID, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getReturnRequestsByCustomerAndStore, getTitles, register, registerGuestForAnonymousCheckout, saveAddressEntry, setDefaultAddressEntry, setDefaultPaymentInfo, setPopulatingConsentsInSessionEnabled, unlinkCCPaymentInfo, updatePassword, updateProfile
  • Constructor Details

    • DefaultTravelCustomerAccountService

      public DefaultTravelCustomerAccountService()
  • Method Details

    • getOrderModelByOriginalOrderCode

      public OrderModel getOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel)
      Description copied from interface: TravelCustomerAccountService
      Gets booking based on booking reference and base store by calling respective Dao method
      Specified by:
      getOrderModelByOriginalOrderCode in interface TravelCustomerAccountService
      Parameters:
      bookingReference - the booking reference
      baseStoreModel - the base store model
      Returns:
      order model by original order code
    • getOrdersFromOrderUserMapping

      public List<OrderModel> getOrdersFromOrderUserMapping(CustomerModel customerModel)
      Description copied from interface: TravelCustomerAccountService
      Fetches all bookings for the customer where the customer is not an owner but traveling
      Specified by:
      getOrdersFromOrderUserMapping in interface TravelCustomerAccountService
      Parameters:
      customerModel - the customer model
      Returns:
      orders from order user mapping
    • getOrderUserMapping

      public OrderUserAccountMappingModel getOrderUserMapping(String orderCode, CustomerModel customerModel)
      Description copied from interface: TravelCustomerAccountService
      Returns a particular Order-UserAccount Mapping for the customer
      Specified by:
      getOrderUserMapping in interface TravelCustomerAccountService
      Parameters:
      orderCode - the order code
      customerModel - the customer model
      Returns:
      order user mapping
    • findSavedSearch

      public SavedSearchModel findSavedSearch(String savedSearchID)
      Description copied from interface: TravelCustomerAccountService
      Finds search saved by current customer based on search reference ID.
      Specified by:
      findSavedSearch in interface TravelCustomerAccountService
      Parameters:
      savedSearchID - the saved search id
      Returns:
      savedSearchModel saved search model
    • changeUid

      public void changeUid(String newUid, String currentPassword) throws de.hybris.platform.commerceservices.customer.DuplicateUidException, de.hybris.platform.commerceservices.customer.PasswordMismatchException
      Specified by:
      changeUid in interface de.hybris.platform.commerceservices.customer.CustomerAccountService
      Overrides:
      changeUid in class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
      Throws:
      de.hybris.platform.commerceservices.customer.DuplicateUidException
      de.hybris.platform.commerceservices.customer.PasswordMismatchException
    • getAllOrdersList

      public SearchPageData<OrderModel> getAllOrdersList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData)
      Description copied from interface: TravelCustomerAccountService
      Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus
      Specified by:
      getAllOrdersList in interface TravelCustomerAccountService
      Parameters:
      customerModel - the user to retrieve orders for
      store - the current store
      status - one or more OrderStatuses to include in the result
      searchPageData - the searchPageData contains requested pagination and sorting information
      Returns:
      the list of orders including order user mapping
    • createPaymentSubscription

      public CreditCardPaymentInfoModel createPaymentSubscription(CustomerModel customerModel, CardInfo cardInfo, BillingInfo billingInfo, String titleCode, String paymentProvider, boolean saveInAccount)
      Specified by:
      createPaymentSubscription in interface de.hybris.platform.commerceservices.customer.CustomerAccountService
      Overrides:
      createPaymentSubscription in class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService