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 Type
    Method
    Description
    Returns the units and all its subunits the provided user is part of.
    Returns the users part of the provided unit and its subunits.
    Returns the lists of users part of the organizations where the given principal is part of.
    boolean
    isPrincipalMemberOfOrganizations(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

      Set<PrincipalModel> getUsersFrom(B2BUnitModel unit)
      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

      Set<PrincipalModel> getUsersInSameOrganizationWith(PrincipalModel principal)
      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 principal
      usersInOrganization - The users in the organization
      unitsInOrganization - The units in the organization
      Returns:
      True if the principal is member of the organization, otherwise false