Interface B2BCustomerService<U,​C>

  • Type Parameters:
    U - the customer
    C - the b2b unit
    All Known Implementing Classes:
    DefaultB2BCustomerService

    public interface B2BCustomerService<U,​C>
    A service around B2BCustomerModel
    Spring Bean ID:
    b2bCustomerService
    • Method Detail

      • getUserForUID

        U getUserForUID​(java.lang.String userId)
        Delegates to UserService.getUserForUID(String, Class) if the user was not found return null rather than throwing up de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException
        Parameters:
        userId - The unique identifier of the user
        Returns:
        A hybris user typed T
      • getCurrentB2BCustomer

        U getCurrentB2BCustomer()
        Gets the current b2b customer.
        Returns:
        current session user, if B2BCustomer. If not B2BCustomer it returns null
      • principalExists

        @Deprecated(since="4.4",
                    forRemoval=true)
        boolean principalExists​(java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns true is principalExists with this uid, Visibility restrictions do no apply in query.
        Parameters:
        uid -
        Returns:
        true if principal exists with this uid.
      • getAllUsers

        java.util.List<U> getAllUsers()
        Gets all users
        Returns:
        the List of users