Interface TmaB2bCustomerAccountService
- All Superinterfaces:
de.hybris.platform.commerceservices.customer.CustomerAccountService
- All Known Implementing Classes:
DefaultTmaB2bCustomerAccountService
public interface TmaB2bCustomerAccountService
extends de.hybris.platform.commerceservices.customer.CustomerAccountService
Service for customer account related operations for B2B entities.
- Since:
- 2105
-
Method Summary
Modifier and TypeMethodDescriptiongetUnits(PrincipalModel user) Returns the units and all its subunits the provided user is part of.getUsersFrom(B2BUnitModel unit) Returns the users part of the provided unit and its subunits.getUsersInSameOrganizationWith(PrincipalModel principal) Returns the lists of users part of the organizations where the given principal is part of.booleanisPrincipalMemberOfOrganizations(String principalId, Set<PrincipalModel> usersInOrganization, Set<PrincipalModel> unitsInOrganization) Checks if the provided principal is a member of the organization.Methods inherited from interface de.hybris.platform.commerceservices.customer.CustomerAccountService
changePassword, changeUid, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, createPaymentSubscription, 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
-
Method Details
-
getUsersFrom
Returns the users part of the provided unit and its subunits.- Parameters:
unit- The business unit- Returns:
- List of users part of the unit
-
getUnits
Returns the units and all its subunits the provided user is part of.- Parameters:
user- The user- Returns:
- The units and its subunits for the provided principal
-
getUsersInSameOrganizationWith
Returns the lists of users part of the organizations where the given principal is part of.- Parameters:
principal- the principal- Returns:
- the list of users part of the given principal's organizations
-
isPrincipalMemberOfOrganizations
boolean isPrincipalMemberOfOrganizations(String principalId, Set<PrincipalModel> usersInOrganization, Set<PrincipalModel> unitsInOrganization) Checks if the provided principal is a member of the organization.- Parameters:
principalId- The identifier of the principalusersInOrganization- The users in the organizationunitsInOrganization- The units in the organization- Returns:
- True if the principal is member of the organization, otherwise false
-