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 TypeMethodDescriptioncreateGuestCustomer(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.booleanChecks if current user is a B2b customer.voidremoveOldSavedSearches(Collection<SavedSearchModel> savedSearches, CustomerModel customerModel, int number) This method removes n-number of old searches, based on creation time, saved by current customer.booleanremoveSavedSearch(String savedSearchID) This method removes search saved by current customer based on search reference ID.voidremoveSavedSearch(String savedSearchID, String userId) This method removes search saved by current customer based on search reference ID.booleansaveCustomerSearch(SavedSearchData savedSearchData) This method saves search made by Customer.voidvalidateUser(String userId) Checks if current user's uid is same as userid and if current user is not an anonymous userMethods 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
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
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
This method removes search saved by current customer based on search reference ID.- Parameters:
savedSearchID- the saved search iduserId- the user id
-
validateUser
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
-